在ubuntu下完美安装RTX(解决离线、乱码问题)

本教程在Ubuntu10.10及11.04测试通过,其它Ubuntu版本仅供参考。

1.在Ubuntu的软件中心的菜单栏中的编辑下面打开软件源-》其他软件-》添加,输入:
deb http://ppa.launchpad.net/wine-cn/ppa/ubuntu lucid main

2.然后在Ubuntu软件中心的搜索wine并安装Microsoft Windows Compatibility Layer(Binary Emulator and Library

3.安装wine下的window扩展包安装工具winetricks,在终端下输入:
wget -c http://www.kegel.com/wine/winetricks
chmod +x winetricks
sudo mv winetricks /usr/local/bin

4.安装window .cab 解包支持 cabextract,在终端下输入:
sudo apt-get install cabextract

5.安装RTX用到的相关扩展,在终端下输入
winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1 这一步会提示出错,先打开firefox下载msxml3.msi(该文件的下载地址在报错的时候会给出来,我们把这个地址从终端复制到firefox就可以了),并把这个复制到/home/aaa/.cache/winetricks/msxml3(aaa为自己的用户名)
复制好后再次执行
winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1

6.安装RTX(我装的是2010版本的),安装的时候会有一个RTXShlMenu.dll的错误(注:只有这个错误),忽略就可以了。
wget -c http://dl_dir.qq.com/qqfile/rtx/rtxclient2010formal.exe
wine rtxclient2009formal.exe

7.解决乱码问题
点开“应用程序”->“Wine”->“Configure Wine”->“函数库”->在“新增函数库顶替”中,输入“oleaut32.dll”,再点击“添加”->“应用”->“确定”。

8.自动掉线的问题解决
在登录RTX后在“个人设置”里的“回复设置中”把“自动状态转换”的勾去掉。

9.解决RTX对话窗口中姓名乱码的问题
在RTX的“个人设置”里的“姓名”重新设置一下

10.如果仍有乱码如下操作把下面的代码保存为rtx.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”

然后终端执行

regedit rtx.reg

从Windows目录下的Fonts里的simsun.ttc复制到/home/user/.wine/drive_c/windows/fonts里面。

cp /media/WINXP/WINDOWS/Fonts/simsun.ttc /home/user/.wine/drive_c/windows/Fonts/

注:上面的路径请替换为自己的实际路径

—————————————————————————————————————————————–

附:

$ sudo add-apt-repository ppa:ubuntu-wine/ppa

$ sudo apt-get update

$ sudo apt-get install wine1.6

//$ sudo apt-get install winetricks

//$ sudo apt-get install cabextract

$ winetricks msxml3 gdiplus riched20 riched30 ie7 vcrun6 vcrun2005sp1

 

64位Ubuntu 可以安装ia32-libs 32位兼容支持库来运行:

$ sudo apt-get install ia32-libs

export WINEARCH=win32