[QQ]ubuntu 10.10 wine 1.3安装QQ2010
程序员文章站
2022-05-22 12:26:49
...
必备下载
- ie6下载:http://www.oldversion.com/download-Internet-Explorer-6.0.html
- flash插件下载:adobe官网 直接下载1 直接下载2
- 直接博客下载flash附件
- QQ2010 sp3下载地址:http://im.qq.com/qq/2010/standard_sp3/ 直接下载地址
直接运行此shell会自动完成QQ的安装
批量执行shell代码
#!/bin/sh ##########获得当前目录 PRG="$0" while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`/"$link" fi done PRGDIR=`dirname "$PRG"` echo 当前工作路径:$PRGDIR echo '下载ie6,地址:====>' echo '\thttp://www.oldversion.com/download-Internet-Explorer-6.0.html' if [ ! -e "$PRGDIR"/"ie60.exe" ]; then wget http://www.oldversion.com/common/uploaded_files/softwares/msie60.exe -O $PRGDIR/ie60.exe mkdir -p ~/.cache/winetricks/ie6/ cp $PRGDIR/ie60.exe ~/.cache/winetricks/ie6/ie60.exe fi echo 安装wine sudo add-apt-repository ppa:ubuntu-wine/ppa sudo apt-get update sudo apt-get install wine1.3 winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1 wenquanyi echo '安装flash,地址:====>' echo '\thttp://get.adobe.com/cn/flashplayer/otherversions/' if [ ! -e ~/".cache/winetricks/flash/install_flash_player_ax.exe" ]; then mkdir -p ~/.cache/winetricks/flash/ wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.1.102.55/install_flash_player_ax_32bit.exe -O ~/.cache/winetricks/flash/install_flash_player_ax.exe fi echo 安装flash wine ~/.cache/winetricks/flash/install_flash_player_ax.exe echo 下载QQ2010 sp3,官方地址 详见: echo '\t\thttp://im.qq.com/qq/2010/standard_sp3/' if [ ! -e "$PRGDIR"/"QQ2010SP3.1.exe" ]; then wget http://dl_dir.qq.com/qqfile/qq/QQ2010/QQ2010SP3.1.exe -O $PRGDIR/QQ2010SP3.1.exe fi echo '请执行这个步骤===============>' echo '\t4.修改注册表,避免字体无法显示 注册表,打开[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]' echo '\tMS Shell Dlg = wenquanyi' echo '\tMS Shell Dlg 2 = wenquanyi' echo '\tTahoma = wenquanyi (需要手动新建字符串)' echo '\t<===============' wine regedit echo 'wine 1.3修正乱码:' echo '\t=======>直接删除/usr/share/wine/fonts文件夹下所有内容。需要root权限。执行:rm -rf *.* 。当然,如果你不放心,可以重命名font文件夹,执行 mv fonts fonts.bak 。这样当你运行qq的时候就不会发现有乱码了。' sleep 3s echo 最后一部手动安装QQ: echo '\t\t手动执行:wine '$PRGDIR'/QQ2010SP3.1.exe' wine $PRGDIR/QQ2010SP3.1.exe
wine 1.3 乱码问题
直接删除/usr/share/wine/fonts文件夹下所有内容。需要root权限。执行:rm -rf *.* 。当然,如果你不放心,可以重命名font文件夹,执行 mv fonts fonts.bak 。这样当你运行qq的时候就不会发现有乱码了。