linux下使用wine安裝QQ2009成功
在ubunut 下弄很長時間才總算安裝QQ2009成功,特分享經驗:
一、安裝wine
1. 安裝(不用說了).
2. 解決中文亂碼問題: 詳細見:http://blog.csdn.net/ConanYang/archive/2010/01/28/5263585.aspx
1).從WindowsXP/Vista/7的windows/fonts目錄下的simsun.ttc復制到/home/user/.wine/drive_c/windows/fonts里面。
2).把下面的代碼保存為zh.reg,然后終端執行wine regedit zh.reg。
代碼:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"
二、安裝winetricks
1、打開終端,輸入
代碼:
wget http://www.kegel.com/wine/winetricks
2、再輸入
代碼:
sudo apt-get install cabextract
3、再輸入
代碼:
chmod +x winetricks
4、最后
代碼:
./winetricks
5、選擇,安裝
代碼:
msxml3、gdiplus、riched20、riched30、ie6、vcrun6、vcrun2005sp1
6、或者不執行第4、5步,直接
代碼:
sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1
三、安裝QQ2009
1). 我驗證過的:下載深度修改的精簡QQ2009 http://www.orsoon.com/Soft/7762.html
解壓兩次(封裝了兩次exe文件),放在你c:/Program Files/Tencent/目錄下。
在UBUNTU下不能正常地用歸檔程序解壓QQ,怎么辦?
如果出現以下錯誤:
End-of-central-directory
signature not found. Either this file is not a zipfile, or it
constitutes one disk of a multi-part archive. In the latter case the
central directory and zipfile comment will be found on the last disk(s)
of this archive.
zipinfo: cannot find zipfile directory in one of
/home/xxx/桌面/TXQQ2009.exe or /home/xxx/桌面/TXQQ2009.exe.zip, and cannot
find /home/xxx/桌面/TXQQ2009.exe.ZIP, period.
可以試試以下操作:
ubuntu下,如果默認exe打開方式沒有歸檔管理器。可以選中exe文件,右擊選屬性-打開方式-添加-使用自定義命令, 輸入:
file-roller %
Uubuntu解壓操作和在windows下操作winrar完全一回事。
如果這樣還不行,請安裝cabextract , cabextract 可解開M$格式的文件,裝后應該可以用歸檔管理器解包exe文件了。
2).你也可以運行其他版本的QQ2009,其實整個方案里,最重要的是把運行庫給裝上即“二、安裝winetricks” 。
如果運行其他版本的QQ安裝程序,推薦:
(1). 添加mfc42.dll,msvcp60.dll,riched20.dll,riched32.dll(windows/system32/下找)到wine的函數庫。
(2). QQ秀的問題: 復制Flash.ocx到 /home/你的用戶名/.wine/drive_c/windows/system32/Macromed/Flash下,要是沒有Macromed/Flash,自己建。然后需要注冊:
代碼:
env WINEPREFIX="/home/你的用戶名/.wine" wine regsvr32 "C:\windows\system32\Macromed\Flash\Flash.ocx"
四、桌面上建立啟動器
另存為Wine QQ.desktop
內容為:
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Wine QQ
Exec=env WINEPREFIX="/home/你的用戶名/.wine" wine "C:\\Program Files\\Tencent\\QQ\\bin\\QQ.exe"
Type=Application
StartupWMClass=Wine
Path=/home/你的用戶名/.wine/dosdevices/c:/Program Files/Tencent/QQ
Icon=/usr/share/tencent/qq/qq.png
OK了,看到可愛的QQ了沒????
原文出處:
http://blog.csdn.net/ConanYang/archive/2010/01/11/5178720.aspx