Wine (简体中文)
From ArchWiki
| i18n |
|---|
| English |
| 简体中文 |
Contents |
[edit] 关于
Wine是一个在Unix上X上的Windows API开源方案. 更多请看Wine的官方网站.
[edit] 安装
Wine在官方的[extra]源中可以获得:Wine
只需要
pacman -Sy wine
Wine就安装好了.
[edit] 配置
运行下面命令创建配置文件
winecfg
看上面的设置,然后点 确认 来保存. Wine的配置文件保存在
~/.wine
默认 C:\> 会链接到
~/.wine/drive_c
好了! 这就是一个基础的配置. 你可以运行windows程序了:
wine /path/to/something.exe
[edit] 声音
默认的声音问题会在使用程序中体现出来. 确保只有一个声音设备winecfg被选中. Alsa应该可以使用(should work out of the box)但是仍然在某些游戏中出问题或者缓慢, 这里有一个关于这个问题的补丁:
http://kcat.strangesoft.net/wine_thread_prio.diff mirror: http://pastebin.archlinux.org/341
但是通过使用OSS: winecfg -> Sound -> Hw acceleration -> Emulation 也可以修补这个声音问题.provided you are using the alsa oss emulation kernel modules.
[edit] 字体
如果wine程序不能显示容易阅读的文字字体, 你可能没有安装微软Truetype字体.方便的是Arch有这个包.
pacman -Sy ttf-ms-fonts
运行上述命令后, 杀死所有wine进程; 字体应该变的容易阅读了.
如果你想安装其他TTF字体,你应该安装到$C_DRIVE/windows/fonts/ (where $C_DRIVE is usually ~/.wine/drive_c)来让wine能够识别.
[edit] 利用wine来执行Win16 / Win32二进制程序
你可以执行二进制程序:手动运行wine
wine programsname.exe
也可以告诉 Kernel 使用 wine 作为 Win16/Win32 二进制文件的解释器。首先挂载 binfmt_misc 文件系统:
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
或者在你的 /etc/fstab 里添加下面一行:
none /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0
然后告诉内核如何解释Win16 和 Win32二进制程序:
echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
可以把下面这行添加到/etc/rc.local让设置在每次启动时自动生效。在这里,你将免于切换 runlevels 时错误信息的打扰:
In this case you may want to ignore stderr to avoid error messages when changing runlevels:
{ echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register; } 2>/dev/null
现在你可以尝试一下:
chmod 755 exefile.exe ./exefile.exe
你甚至可以删除.exe后缀, 因为内核不是通过后缀判断文件类型的.
[edit] Wine配置程序
这些工具能在典型的windows程序安装中帮助你. 大多数情况下这些应该作为最后办法,因为他们会修改你的wine设置.
[edit] WineTools 助手
Winetools is a program (more of a script, in fact) that facilitates in the installation of some core components for wine in order to install other programs. Note this is not necessary for wine, but does help if you want to get Internet Explorer running.
Keep in mind, Microsoft says you must have a license for IE6 in order to install DCOM98 or Internet Explorer 6. If you've ever owned a copy of Windows, you should be all set. Although I'm sure no one will hunt you down if you don't have the license.
Now grab the PKGBUILD from the AUR: AUR: Wine
and build the package as you would any PKGBUILD (if you dont know how: ABS_-_The_Arch_Build_System)
[edit] Sidenet Wine 设置工具
- Download the latest version
- unpack it
- READ THE README
- execute
./setup
- Follow the instructions
请注意: 像 site 这里说的声明一样, 你只能被允许安装DCOM98如果你持有在有效期内的Windows98协议.
[edit] easywine
国内的一个wine助手程序, 具体情况请添加到这里 网站[www.linuxgame.org]
[edit] Archlinux上运行Win16 / Win32二进制程序的替代品
- Cedega - Aimed at gamers
- CVSCedega - CVS source version of cedega
- Codeweavers - Codeweavers' Crossover Office; Aimed at Office Users
[edit] 外部资源
- http://www.winehq.com/
- Installing Internet Explorer 5, 5.5 and 6 with wine: http://wiki.archlinux.org/index.php/Ies4linux or http://www.tatanka.com.br/ies4linux/