ubuntu安装和配置wine
我的ubuntu版本是10.10的desktop。
检查本机安装的版本:
>wine --version
root@carl-VirtualBox:~# wine --version
wine-1.0.1
安装兼容程序
apt-get update
apt-get install wine
下载文件
http://cidian.youdao.com/
YoudaoDict.exe
运行
wine YoudaoDict.exe
报错如下:
Application tried to create a window, but no driver could be loaded.
查找所有的相关LIB
>apt-cache search wine | grep lib
libkwineffects1 - library used by effects for the KDE 4 window manager
运行
>winecfg
报错如下:
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: 没有那个文件或目录
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:ole:apartment_createwindowifneeded CreateWindow failed with error 1114
失败:(
卸载掉原来的老版本的wine,准备安装新版本的wine。
>apt-get autoremove wine
>sudo add-apt-repository ppa:ubuntu-wine/ppa
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 883E8688397576B6C509DF495A9A06AEF9CB8DB0
gpg: requesting key F9CB8DB0 from hkp server keyserver.ubuntu.com
gpg: key F9CB8DB0: public key "Launchpad PPA for Ubuntu Wine Team" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
>sudo apt-get update
>sudo apt-get install wine
查看新版本
>wine --version
root@carl-VirtualBox:~/.wine/drive_c/windows/Fonts# wine --version
wine-1.2.1
直接到桌面启动wine,成功了。
乱码问题
~/.wine/drive_c/windows/Fonts/ #只留一个你想要显示的中文字体在这,我的文件夹却是空的。
1、先下载simsun.ttc,有xp的可以直接去/windows/fonts/下拷贝,丢在/home/用户名/.wine /dosdevices/c:/windows/Fonts下
2、修改注册表:gedit ~/.wine/system.reg
搜索: LogPixels
找到的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
将其中的:
“LogPixels”=dword:00000060
改为:
“LogPixels”=dword:00000070
搜索: FontSubstitutes
找到的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
将其中的:
“MS Shell Dlg”=”Tahoma”
“MS Shell Dlg 2″=”Tahoma”
改为:
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”
保存完成就好了,有些软件却还是是乱码。
官方网站
http://www.winehq.org/download
参考文档:
http://blog.zol.com.cn/1798/article_1797331.html
ubuntu安装和配置wine
猜你喜欢
转载自sillycat.iteye.com/blog/816373
今日推荐
周排行