安装:
for debian
http://www.winehq.org/download/deblenny
Remove old version
Open a terminal
su #to log as root
apt-get remove libwine wine #to remove outdated version of wine
Method 1: Add the repository
Open a terminal
su #to log as root
gedit /etc/apt/sources.list #to open repository file with a text editor (you can use gedit or another)
Add this line for Lenny: deb http://www.lamaresh.net/apt lenny main
Add this line for Squeeze: deb http://www.lamaresh.net/apt squeeze main
Add this line for Sid: deb http://www.lamaresh.net/apt sid main
Save and close sources.list
wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add - #to add gpg key
apt-get update #to update package list
apt-get install wine #to install latest wine version
Method 2: Download .deb and manually install it
Chose a .deb package from binary list and save it in your home directory
Open a terminal
cd ~ #to go to your home directory
su #to log as root
dpkg -i wine_1.1.xxx.deb #change xxx with your chosen package, this will install wine
for ubuntu
First, open a terminal window (Applications->Accessories->Terminal). Then add the repository's key to your system's list of trusted APT keys by copy and pasting the following into your terminal:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
Next, add the repository to your system's list of APT sources:
For Ubuntu Jaunty (9.04):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/winehq.list
For Ubuntu Intrepid (8.10):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/winehq.list
For Ubuntu Hardy (8.04):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
Then update APT's package information by running 'sudo apt-get update'. You can now install Wine normally or by typing 'sudo apt-get install wine' into the terminal.
提示建议安装的几个软件也装上
sudo apt-get install msttcorefonts wine-gecko cabextract
由于ies4linux会对wine的系统造成不好影响,我决定放弃它选用gecko,虽然后这有它的不足。
还有一个办法(推荐,但我发现这ie不能下载,不知道要怎么设置)
安装windows软件的方法http://www.kegel.com/wine /winetricks,右键另存为在桌面上,然后进入控制台,输入'cd ./桌面',然后输入sh winetricks,会弹出一个对话框让你选择要安装的组件,选择ie6等选项 即可自动安装。
优化
wine 不是万能的,但有的时候我们还是不得不依靠wine的
http://forum.ubuntu.org.cn/viewtopic.php?t=51420&highlight=wine+qq2007
1.wine的准备工作:
让wine不再在ubuntu的utf环境下调用gbk字体,这会使得wine非常慢
sed -i "s/^[^#]*GBK/\#Marked for GBK--- &/g" /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE >/dev/null
sudo sed -i -e '/GBK/,/^}/d' /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE
对应症状:wine的程序非常卡,点随便一个菜单都要等半天
2.复制需要的文件到你的wine的system32目录(默认是~/.wine/drive_c/windows/system32)
复制win下的mfc42.dll,msvcp60.dll,riched20.dll,riched32.dll到wine的 system32目录下,如果你没有win的话,请下载我附件里的压缩包。
对应症状:在终端里wine 程序会提醒你缺dll文件
7.设置 riched20.dll
打开winecfg,在libraries选项页下,添加riched20.dll和riched32.dll (别忘复制这两个文件到你wine的system32目录下)
然后选edit,都设为native
对应症状:聊天的地方 文字输入后总是乱码
优化wine
1、关于 WINE 在 UTF-8 环境下运行缓慢的修正:
sudo gedit /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE
(用 # 注释掉 GBK 段)
# fs3 class (Chinese Han Character GBK)
fs3 {
charset {
name GBK-0:GLGR
}
font {
primary GBK-0:GLGR
substitute GB13000.1993-1:GLGR
}
}
修改为
# fs3 class (Chinese Han Character GBK)
###fs3 {
### charset {
### name GBK-0:GLGR
### }
### font {
### primary GBK-0:GLGR
### substitute GB13000.1993-1:GLGR
### }
###}
好了,世界变快了,呵呵。
wine运行慢的解决方法
修改XLC_LOCALE , 让她不要请求这些多余字体
修改 /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE
把里面有 GBK 字样的段全部删掉,或者干脆把 GB2312 和 GB13000 的也全部删掉。
这样, wine 在 zh_CN.UTF-8 下的速度就跟 en_US 下一样快了, 而 XIM 输入法这些也没影响。
cdaxcy 于 2009-12-19 19:06:06发表:
不错,收藏了!
nerver 于 2009-11-21 19:18:33发表:
太麻烦,新手,一时看不懂,先记下来了
lightyear 于 2009-10-25 18:55:16发表:
学习了,这可真是疑难杂症啊
fivehappypigs 于 2009-10-11 03:26:50发表:
学习一下。。。
iamliujunpeng 于 2009-09-21 10:42:54发表:
欣赏中
shenhao0129 于 2009-09-09 22:27:05发表:
看起来比较复杂的样子!先mark一下
laoshue 于 2009-05-05 18:15:03发表:
阅读中