Wine的安装方法

、在终端输入sudo apt-get install wine;
2、在新立得软件管理器中找到wine,选上点应用就开始安装了

这两种方法很简单,在此我就不多说了,Wine 0.9.35刚刚发布,目前仅有此版本的源码包可用,适用于各发行版的二进制包还尚需时日。借此机会我重点说说明一下怎么利用wine的源码进行编译安装。这也是Linux很常见的一种安装方法。
1、tar xvfz wine-0.9.35.tar.bz2                          (解压缩)
2、cd  wine                                                           (切换到wine录下)  
3、./configure --prefix=/usr/local/wine  (进行编译配置)
4、make                                                                  (对源码包进行编译,这个过程会很长,根cpu的性能有关)
5、sudo make install                                         (安装到系统)
测试你的 wine :
  运行 /usr/local/wine/bin/notepad (注意,这个前面不需要 加 wine ),如果一切正常,则说明 wine 已经可以正常工作了。
用wine的安装工具进行安装
./tools/wineinstall
在安装过程中它要你回答yes/no,你选择yes就可以了。wine自动搜索windows的目录的,等你你编译完了,它要让你输入root的密码进入安装,这是就快安装完了,如果安装成功,就会有good lucky的提示。

然后双击exe文件就可以运行Windows程序了。因为exe文件和wine建立了关联,也可以在终端输入 wine +软件名来运行。

在shell下运行wine,第一次运行不成功,这是正常,因为没有在/root/.wine/config文件里配置好.找到这些吧。

  [Drive C]
  "Path" = "/usr/share/win_c"
  "Type" = "hd"
  "Label" = "MS-DOS"                   <++++++这里改为你挂载的windows目录
  "Filesystem" = "win95"
  改为:[Drive C]
  "Path" = "/winc"
  "Type" = "hd"
  "Label" = "MS-DOS"
  "Filesystem" = "win95"

  就可以了,如果你安装了simsun字体.wine默认就会找到这个字体的,下边就是我的/root/.wine/config。

  WINE REGISTRY Version 2
  ;; All keys relative to MachineSoftwareWineWineConfig

  ;;
  ;; MS-DOS drives configuration
  ;;
  ;; Each section has the following format:
  ;; [Drive X]
  ;; "Path"="xxx" (Unix path for drive root)
  ;; "Type"="xxx" (supported types are 'floppy', 'hd', 'cdrom' and 'network')
  ;; "Label"="xxx" (drive label, at most 11 characters)
  ;; "Serial"="xxx" (serial number, 8 characters hexadecimal number)
  ;; "Filesystem"="xxx" (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 'unix')
  ;; This is the FS Wine is supposed to emulate on a certain
  ;; directory structure.
  ;; Recommended:
  ;; - "win95" for ext2fs, VFAT and FAT32
  ;; - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended)
  ;; DON'T use "unix" unless you intend to port programs using Winelib !
  ;; "Device"="/dev/xx" (only if you want to allow raw device access)
  ;;
  [Drive A]
  "Path" = "/mnt/floppy"
  "Type" = "floppy"
  "Label" = "Floppy"
  "Serial" = "87654321"
  "Device" = "/dev/fd0"

  [Drive C]
  "Path" = "/winc"
  "Type" = "hd"
  "Label" = "MS-DOS"
  "Filesystem" = "win95"

  [Drive D]
  "Path" = "/mnt/cdrom"
  "Type" = "cdrom"
  "Label" = "CD-Rom"
  "Filesystem" = "win95"
  ; make sure that device is correct and has proper permissions !
  "Device" = "/dev/cdrom"

  [Drive E]
  "Path" = "/tmp"
  "Type" = "hd"
  "Label" = "Tmp Drive"
  "Filesystem" = "win95"

  [Drive F]
  "Path" = "${HOME}"
  "Type" = "network"
  "Label" = "Home"
  "Filesystem" = "win95"

  [Drive Z]
  "Path" = "/"
  "Type" = "network"
  "Label" = "Root"
  "Filesystem" = "win95"

  [wine]
  "Windows" = "c:windows"
  "System" = "c:windowssystem"
  "Temp" = "e:"                                      
  "Path" = "c:windows;c:windowssystem;e:;e: est;f:"
  "Profile" = "c:windowsProfilesAdministrator"
  "GraphicsDriver" = "x11drv"
  ; Wine doesn't pass directory symlinks to Windows programs by default.
  ; Enabling this may crash some programs that do recursive lookups of a whole
  ; subdir tree in case of a symlink pointing back to itself.
  ;"ShowDirSymlinks" = "1"
  "ShellLinker" = "wineshelllink"

  # 〈wineconf〉

  [DllDefaults]
  ; "EXTRA_LD_LIBRARY_PATH" = "${HOME}/wine/cvs/lib"
  "DefaultLoadOrder" = "native, builtin, so"

  [DllOverrides]
  "commdlg" = "builtin, native"
  "comdlg32" = "builtin, native"
  "ver" = "builtin, native"
  "version" = "builtin, native"
  "shell" = "builtin, native"
  "shell32" = "builtin, native"
  "lzexpand" = "builtin, native"
  "lz32" = "builtin, native"
  "comctl32" = "builtin, native"
  "commctrl" = "builtin, native"
  "wsock32" = "builtin"
  "winsock" = "builtin"
  "advapi32" = "builtin, native"
  "crtdll" = "builtin, native"
  "mpr" = "builtin, native"
  "winspool.drv" = "builtin, native"
  "ddraw" = "builtin, native"
  "dinput" = "builtin, native"
  "dsound" = "builtin, native"
  "mmsystem" = "builtin"
  "winmm" = "builtin"
  "msvcrt" = "native, builtin"
  "msvideo" = "builtin, native"
  "msvfw32" = "builtin, native"
  "mcicda.drv" = "builtin, native"
  "mciseq.drv" = "builtin, native"
  "mciwave.drv" = "builtin, native"
  "mciavi.drv" = "native, builtin"
  "mcianim.drv" = "native, builtin"
  "msacm.drv" = "builtin, native"
  "msacm" = "builtin, native"
  "msacm32" = "builtin, native"
  "midimap.drv" = "builtin, native"
  "wnaspi32" = "builtin"
  "icmp" = "builtin"

  [x11drv]
  ; Number of colors to allocate from the system palette
  "AllocSystemColors" = "100"
  ; Use a private color map
  "PrivateColorMap" = "N"
  ; Favor correctness over speed in some graphics operations
  "PerfectGraphics" = "N"
  ; Color depth to use on multi-depth screens
  ;;"ScreenDepth" = "16"
  ; Name of X11 display to use
  ;;"Display" = ":0.0"
  ; Allow the window manager to manage created windows
  "Managed" = "N"
  ; Use a desktop window of 640x480 for Wine
  ;"Desktop" = "640x480"
  ; Use XFree86 DGA extension if present
  "UseDGA" = "Y"
  ; Use XShm extension if present
  "UseXShm" = "Y"
  ; Enable DirectX mouse grab
  "DXGrab" = "N"
  ; Create the desktop window with a double-buffered visual
  ; (useful to play OpenGL games)
  "DesktopDoubleBuffered" = "N"
  ; Code page used for captions in managed mode
  ; 0 means default ANSI code page (CP_ACP == 0)
  "TextCP" = "0"
  ; Use this if you have more than one port for video on your setup
  ; (Wine uses for now the first 'input image' it finds).
  ;; "XVideoPort" = "43"

  [fonts]
  ;Read documentation/fonts before adding aliases
  "Resolution" = "96"
  "Default" = "-misc-simsun-"

  [serialports]
  "Com1" = "/dev/ttyS0"
  "Com2" = "/dev/ttyS1"
  "Com3" = "/dev/ttyS2"
  "Com4" = "/dev/modem"

  [parallelports]
  "Lpt1" = "/dev/lp0"

  [spooler]
  "LPT1:" = "|lpr"
  ;"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -"
  ;"LPT3:" = "/dev/lp3"

  [ports]
  ;"read" = "0x779,0x379,0x280-0x2a0"
  ; "write" = "0x779,0x379,0x280-0x2a0"

  [spy]
  "Exclude" = "WM_SIZE;WM_TIMER;"

  [registry]
  ;These are all booleans. Y/y/T/t/1 are true, N/n/F/f/0 are false.
  ;Defaults are read all, write to Home
  ; Global registries (stored in /etc)
  "LoadGlobalRegistryFiles" = "Y"
  ; Home registries (stored in ~user/.wine/)
  "LoadHomeRegistryFiles" = "Y"
  ; Load Windows registries from the Windows directory
  "LoadWindowsRegistryFiles" = "Y"
  ; TRY to write all changes to home registries
  "WritetoHomeRegistryFiles" = "Y"
  ; Registry periodic save timeout in seconds
  ; "PeriodicSave" = "600"
  ; Save only modified keys
  "SaveOnlyUpdatedKeys" = "Y"

  [Tweak.Layout]
  ;; supported styles are 'Win31'(default), 'Win95', 'Win98'
  "WineLook" = "Win98"

  [Console]
  ;"Drivers" = "tty"
  ;"XtermProg" = "nxterm"
  ;"InitialRows" = "25"
  ;"InitialColumns" = "80"
  ;"TerminalType" = "nxterm"

  [Clipboard]
  "ClearAllSelections" = "0"
  "PersistentSelection" = "1"

  # 〈/wineconf〉



 
  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
要在Linux上使用Wine安装Steam,可以按照以下步骤进行操作: 1. 首先,打开终端并输入以下命令来安装Wine:sudo apt-get install wine 2. 安装Wine后,可以尝试使用命令sudo apt-get install steam来安装Steam。如果这个命令无效,你可以去Steam官网下载安装包并双击进行安装。 3. 如果通过上述方法仍然无法成功安装Steam,你可以尝试使用Wine来执行Steam的Windows可执行文件(.exe文件)。这可以通过在终端中输入以下命令来完成:wine /path/to/steam.exe(将/path/to/steam.exe替换为你实际的Steam可执行文件路径)。 4. 另外,如果你希望在Linux上使用Wine玩Steam和Windows游戏,并将其限制在Docker容器内,可以按照一些详细的说明进行操作。这包括使用Docker和绑定X11插槽以让窗口显示,并使用PulseAudio来发出声音。然而,这种方法可能需要一些额外的配置和设置,因此需要一些技术上的知识。 总结来说,使用Wine安装Steam可以通过命令行或下载安装包的方式进行。如果遇到问题,可以尝试使用Wine执行Steam的Windows可执行文件。同时还可以尝试在Docker容器内进行安装和运行。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [初识ubuntu 安装steam](https://blog.csdn.net/y4615184/article/details/75645746)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [SteamForwarder:wine的steam_api.dll实现。 您的Windows游戏现在可以与Linux Steam互动了! (此仓库反映了...](https://download.csdn.net/download/weixin_42153793/17176802)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [docker-wine-steam:在本地主机上的带有葡萄酒,蒸汽和蒸汽游戏的Docker映像,并提供图形和音频支持](https://download.csdn.net/download/weixin_42133969/16329942)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值