注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

My Unix World

不要迷恋Unix,Unix只是计算世界很小的一部分!

 
 
 

日志

 
 

wine使用笔记  

2009-04-07 00:23:11|  分类: view-mix |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
2009-04-06

环境:slackeware 12.2, wine 1.1.15

Firefox无法在MSN空间写文章,所以只能借助wine虚拟一个windows环境,用IE访问MSN空间。
这里有篇文章,应该算权威参考手册
http://appdb.winehq.org/appview.php?versionId=469

=====================================
摘录:

Offline Installation

If you want to install Internet Explorer automatically, use IEs4linux. The following howto is dedicated to experienced users, who do not want to use IEs4linux.

(Note: This was last tested on Wine 0.9.60)

  1. Make new configuration directory with different wineprefix directory.
    wineprefixcreatewineprefixcreate --prefix ~/.wineIE6
  2. The following steps are expecting, that the WINEPREFIX variable is set to path to the directory for IE6, so run
    export WINEPREFIX="$HOME/.wineIE6"
  3. You have to delete or move the following files, otherwise Wine won't let IE6 installer to install necessary files:
    • Program Files/Internet Explorer/iexplore.exe
    • mshtml.dllshdoclc.dllshdocvw.dllshlwapi.dllurlmon.dll wininet.dll in ~/.wineIE6/windows/system32 directory
  4. Run winecfg, go to Libraries tab and add overrides for the following applications and libraries: iexplore.exemshtmlshdoclcshdocvwshlwapiurlmonwininetmlang setting them to native, builtin.
  5. Set Wine version to 2000 in winecfg.
  6. Lower the version of installed IE by running regedit and then HKEY_LOCAL_MACHINE->Software->Microsoft->Internet Explorer->Version for example to 5.0.
  7. Run IE6SETUP.EXE. It should complete without errors. (you can run it with /q parameter for installation without asking)
    If you get an error saying "The download location information is damaged", please make sure you are not using a remote mounted drive (nfs, samba, etc.). If you are, you can trick the installer into thinking it is an attached drive by going into winecfg->Drives->show advanced and change the type from "Autodetect" to "Local hard disk". (This happen also on Windows)

    If you still get this error, it might be because Microsoft's server sometimes don't send the right infos to the installer. Try again. (This happen also on Windows)
  8. Now you have to re'register all dlls in ~/.wineIE6/windows/system32 directory. Open any terminal application go to this directory and run this command twice:
    for i in *.dll *.ocx; do regsvr32 /i $i; done
  9. At this point IE6 will run but it won't display any content. To resolve this problem you should download msls31.dll file (use google) into ~/.wineIE6/windows/system32 directory.
  10. Now you can run IE with
    WINEPREFIX="$HOME/.wineIE6" wine iexplore.exe
============================================================
IE 7 on Linux with Wine

About Internet Explorer 7

Windows Internet Explorer 7 (IE7) is a web browser released by Microsoft in October 2006. Internet Explorer 7 is part of a long line of versions of Internet Explorer and is the first major update to the browser in over 5 years. It ships as the default browser in Windows Vista and Windows Server 2008 and is offered as a replacement for Internet Explorer 6 on Windows XP and Windows Server 2003. Estimates of IE7's global market share place it between approximately 26% and 47%.

Large portions of the underlying architecture, including the rendering engine and security framework, have been significantly reworked. New features include tabbed browsing, page zooming, an integrated search box, a feed reader, better internationalization, and improved support for web standards. Security enhancements include a phishing filter, stronger encryption on Windows Vista, and a "Delete browsing history" button to easily clear private data.

Wine configuration

This is with a clean configuration directory, with no other applications or games installed.

Linux Distribution: Ubuntu 8.04
Windows version emulated: XP
Wine version tested: 1.1.14

Wine DLL Overrides

[Software\\Wine\\DllOverrides] 1233608859
"browseui"="native, builtin"
"comctl32"="builtin"
"crypt32"="native, builtin"
"gdiplus"="native"
"hhctrl.ocx"="native, builtin"
"hlink"="native, builtin"
"iernonce"="native, builtin"
"iexplore.exe"="native, builtin"
"itircl"="native, builtin"
"itss"="native, builtin"
"jscript"="native, builtin"
"mlang"="native, builtin"
"mshtml"="native, builtin"
"msimtf"="native,builtin"
"msxml3"="native,builtin"
"riched20"="native,builtin"
"riched32"="native,builtin"
"secur32"="native, builtin"
"shdoclc"="native, builtin"
"shdocvw"="native, builtin"
"shlwapi"="native, builtin"
"url"="native, builtin"
"urlmon"="native, builtin"
"usp10"="native, builtin"
"uxtheme"="native,builtin"
"wininet"="builtin"
"wintrust"="native, builtin"

DLL Overrides can be set in winecfg, just run winecfg from your favorite terminal and then go to Libraries and set the above DLL's as shown above.

You will also need to copy a number of DLL's from a Windows XP machine and place them in /system32 as winetricks doesn't provide these DLL's at this time.

msctf.dll
msimtf.dll
uxtheme.dll
xmllite.dll

WineTricks

Now download winetricks if you don't already have it and install the following Windows redistributables.

comctl32
comctl32.ocx
corefonts
gdiplus
gecko
msls31
msxml3
msxml4
msxml6
riched20
riched30
tahoma

After the install run winecfg set comctl32.dll back to builtin Wine.

IE 7 install in Wine

Download Windows Internet Explorer 7 for Windows XP from Microsoft and save it to your home directory.

Now open a terminal and run $ wine IE7-WindowsXP-x86-enu.exe

The IE 7 install should now start, I didnt select the Windows security updates in my install.

IE 7 on Wine Screen Shots

Here's a few Screen Shots of IE 7 running on my Ubuntu 8.04 laptop.

  评论这张
 
阅读(314)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017