winetricks 工具

以下引自:http://wingo1990.blog.163.com/blog/static/78234958201051871113333/

一、 安装好 Wine (sudo apt-get install wine)

二、继续wine之行——winetricks强大的工具  

在使用Wine安装使用 Windows软件时,会经常需要用到一些dll库文件。
方法一是从Windows下copy一份到Wine的system32目录下;
方法二是用Winetricks,它可以帮助我们安装所需要的dll库。



Winetricks的使用方法如下:(普通用户)
可以通过以下的命令获得:
1、
下载Winetricks , 打开终端,输入
wget http://www.kegel.com/wine/winetricks     
#Wget是一个在网络上进行下载的简单而强大的自由软件

2、添加可执行属性
   chmod +x winetricks                              #修改为可执行
   sudo mv winetricks /usr/local/bin                #将winetricks复制到/usr/local/bin,则可以在终端使用winetricks

3、查看帮助系统
   ./winetricks --help (或者 winetricks --help)                    #查看帮助和其所包含的套件

4、执行winetricks
   ./winetricks (或者 winetricks)                                  #带有gui界面,可查看所包含的套件列表
   在图形界面,您可以选择您所需要得windows软件和windows下的动态链接库安装

5、安装示列
   ./winetricks mfc42 (或者 winetricks mfc42)                      #安装mfc42库


在打开的窗口中,可以看到程序所支持的一个软件列表

代码:

art2kmin          微软 Access 2000 运行时.
colorprofile       标准 RGB 颜色配置文件
comctl32          微软 common controls 5.80
comctl32.ocx        微软的comctl32.ocx 和comctl.ocx,VB6的comctl32外壳
corefonts         微软 Arial, Courier, Times 字体
dcom98            微软 DCOM, 替换Wine所自带的
dirac0.8           the obsolete Dirac 0.8 directshow filter
directx9           微软 DirectX 9
divx             divx 视频编码
dotnet11        微软 .NET 1.1
dotnet20        微软 .NET 2.0
ffdshow         ffdshow 视频编码
flash           Adobe Flash Player ActiveX 与 firefox 插件
fontfix         Fix bad fonts which cause crash in some apps (e.g. .net).
gdiplus         微软 gdiplus.dll (须安装powerpoint)
gecko           HTML 渲染引擎(Mozilla)
icodecs         Intel 媒体编码 (Indeo)
jet40           微软 Jet 4.0 Service Pack 8
liberation      Red Hat Liberation 字体 (Sans, Serif, Mono)
mdac25          微软 MDAC 2.5: 微软 ODBC 驱动, etc.
mdac27          微软 MDAC 2.7
mdac28          微软 MDAC 2.8
mfc40          微软 mfc40 (Microsoft Foundation Classes from Visual C++ 4)
mfc42           微软 mfc42 (包含于下面的vcrun6)
mono19          mono-1.9.1-gtksharp-2.10.4-win32-2
msi2            微软 Installer 2.0
msls31          微软 Line Services 3.1 (needed by native riched?)
msxml3          微软 XML version 3
msxml4          微软 XML version 4
msxml6          微软 XML version 6
ogg             ogg 过滤器和编码器: flac, theora, speex, vorbis,

pdh             微软 pdh.dll (Performance Data Helper)
quicktime72     苹果 Quicktime 7.2
riched20        微软 riched20 and riched32
riched30        微软 riched30
tahoma          微软 Tahoma 字体 (not part of corefonts)
vb3run          微软 Visual Basic 3 运行时
vb4run          微软 Visual Basic 4 运行时
vb5run             微软 Visual Basic 5 运行时
vb6run             微软 Visual Basic 6 运行时
vcrun6             微软 Visual C++ 6 sp4 运行库 (包括mfc42.dll, msvcp60.dll, msvcrt.dll)
vcrun2003          微软 Visual C++ 2003 运行库 (包括mfc71.dll,msvcp71.dll,msvcr71.dll)
vcrun2005          微软 Visual C++ 2005 运行库 (包括mfc80.dll,msvcp80.dll,msvcr80.dll)
vcrun2005sp1       微软 Visual C++ 2005 sp1 运行库
vcrun2008          微软 Visual C++ 2008 运行库 (包括mfc90.dll,msvcp90.dll,msvcr90.dll)
vjrun20            微软 Visual J# 2.0 运行库 (需要安装 dotnet20)
wmp9               微软 Windows Media Player 9
wmp10              微软 Windows Media Player 10
wsh51              微软 Windows Scripting Host 5.1
wsh56              微软 Windows Scripting Host 5.6
wsh56js            微软 Windows scripting 5.6, 只有jscript,没有cscript
wsh56vb            微软 Windows scripting 5.6, 只有vbscript,没有cscript
xvid               xvid 视频编码

autohotkey    Autohotkey (open source gui scripting language)
firefox3      Firefox 3
kde           KDE for Windows installer
mpc           Media Player Classic
vlc           VLC media player

allfonts       以上所有字体 (corefonts, tahoma, liberation)
allcodecs      以上所有媒体编码 (xvid, ffdshow, icodecs)
fakeie6        在注册表中写入IE6已安装信息
native_mdac    Override odbc32 and odbccp32
nt40           Set windows version to nt40
win98          Set windows version to Windows 98
win2k          Set windows version to Windows 2000
winxp          Set windows version to Windows XP
vista          Set windows version to Windows Vista
winver=        Set windows version to default (winxp)
volnum         Rename drive_c to harddiskvolume0 (needed by some installers)
这样一来,明显感觉到wine 的功能增加了不少。IE 6 IE7 安装是不成问题的。也可以个QQ2008(需要摸索的)。

 

三、为 QQ 安装需要的函数库,用winetricks安装必须的win支持库。这一步很关键。

命令行中输入winetricks
出来的 图形界面选择中 勾选:msxml3 、gdiplus 、riched20、 riched30、 ie6 、vcrun6、 vcrun2005、 flash、
确定--安装---一路yes。
四、下载深度单文件版QQ 2009 Preview,下载地址:http://u.115.com/file/    提取码:t7c7b5b3eb

注:下载好后就可以直接点击运行 TXQQ2009.exe 运行了(如果第一次安装好 Wine还没重启过不能直接双击运行,要用鼠标右键选择:使用 Wine Windows Program Loader打开。)
(也可以    应用程序----ubuntu tweak 文件类型管理中选择---应用程序----DOS/WINDOWS可执行程序  选择wine),

但此时不能显示中文,那么继续往下看,解决字体问题

五、从XP或Vista、Win7里复制一个宋体(SimSun.ttf)过来,放到~/.wine/dosdevices/c:/windows/Fonts下

六、打开 Wine 的注册表(直接在终端输入 regedit 即可,界面和windows注册表一样),按照找到下面得地方修改即可,没有的项目手动建立字符串就可以了。

1.打开[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
MS Shell Dlg = SimSun
MS Shell Dlg 2 = SimSun
Tahoma = SimSun (这个没有手动新建字符串)

2.打开[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontLink\\SystemLink]
Tahoma = str(7):SimSun.TTC,SimSun\0(这个也手动建立字符串)


七、打开 Wine 的设置菜单,“函数库”一项,点击“新增函数库顶替”下拉箭头,分别找到 riched20 和 riched32 这个两项把他们添加到下面,然后分别选择这两个函数库然后点击右边的“编辑”,把里面的选项改为“原装”。

注意:这一步很重要,这是为了能够正常输入文字。

经过以上几步应该就可以基本稳定得运行这个 QQ2009 了,可以截屏,只是截取的时候屏幕会变黑,不过快捷方式不行了,得点机聊天下的捕获屏幕,只要拖动鼠标截取就可以了,还有细节问题,就是使用 QQ 空间问题,那么再继续往下看

八、这时登录 QQ 后,在自己头像停留时显示的 QQ 空间图标点击不会调出 IE6,需要先打开 IE6 窗口,不过这个问题可以在重启 Ubuntu 后解决(我是新装的 Wine 而且还没有重启过系统,所以可能要重启才能自动加载吧)

还有个注意的地方是:在自己 QQ 头像停留显示的 QQ 空间图片,貌似要点击类似“。。。 的空间”的才能进入 QQ 空间不用输入密码(其他一排列的图片直接点击要你输入密码才能登录)看下效果吧 还可以总之比WEB版本的强

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值