【软件安装-UBUNTU】Linux装IE7(IE4Linux) 及常见问题

本文介绍了如何在Linux系统Ubuntu上安装IE4Linux以运行Internet Explorer,详细步骤包括下载、安装和解决安装过程中遇到的问题,如字体显示、错误提示等。此外,还提供了针对网络限制和旧版Wine的解决方案。

正常情况下Linux装IE7(IE4Linux)如http://www.iefans.net/linux-ie7/所言

IEs 4 Linux 需要有兩個套件: cabextract 以及 Wine。 您可以使用 Linux 套件管理程式 (synaptic, apt-get, yum, emerge etc) 來進行安裝,或是直接從網頁下載。

为什么要在linux中安装IE呢,因为很多网站都以IE开发的,特别是网银什么的,不装的话不能淘宝,网银不能登陆,没办法,以下是安装方法
第一步当然是下载了,http://www.tatanka.com.br/ies4linux/downloads/ 去这里下载一个,大多数人会选择最新的,也就是这个http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
然后解压

 tar zxvf ies4linux-latest.tar.gz

接着进入目录
 cd ies4linux-*

安装的话,不推荐直接运行
 ./ies4linux
因为GUI版的不是很稳定,可能会在安装过程中出问题
最好运行
 ./ies4linux --no-gui --beta-install-ie7 --locale CN --install-corefonts

注明:

--no-gui 表示终端方式安装

--beta-install-ie7 表示安装IE7

--locale CN 表示本地语言是中文简体

--install-corefonts表示安装微软的字体(很重要)如果不装的话有些网页内容看不到,看到的是口口口口,全是方框
安装过程会显示
IEs4Linux 2 is developed to be used with recent Wine versions (0.9.x). It seems that you are using an old version. It's recommended that you update your wine to the latest version (Go to: winehq.com).

IEs4Linux will:
- Install Internet Explorers: 6.0, 7.0
- Using IE locale: CN
- Install Adobe Flash 9.0
- Install MS Core Fonts
- Install everything at: /home/djhui/.ies4linux
[ OK ]

Downloading everything we need
Downloading from microsoft.com:
DCOM98.EXE
mfc42.cab
249973USA8.exe
ADVAUTH.CAB
CRLUPD.CAB
HHUPD.CAB
IEDOM.CAB
IE_EXTRA.CAB
IE_S1.CAB
IE_S2.CAB
IE_S5.CAB
IE_S4.CAB
IE_S3.CAB
IE_S6.CAB
SETUPW95.CAB
FONTCORE.CAB
FONTSUP.CAB
VGX.CAB
SCR56EN.CAB
IE7-WindowsXP-x86-enu.exe

Downloading from macromedia.com:
swflash.cab

Downloading from sourceforge.net
andale32.exe
arial32.exe
arialb32.exe
comic32.exe
courie32.exe
georgi32.exe
impact32.exe
times32.exe
trebuc32.exe
verdan32.exe
100% wd97vwr32.exe
100% webdin32.exe
[ OK ]

Installing IE 6
Initializing
Creating Wine Prefix
Extracting CAB files
Installing IE 6
Installing DCOM98
Installing TTF Fonts
Installing Core Fonts
Installing ActiveX MFC42
Installing RICHED20
Installing registry
Finalizing
[ OK ]

Installing Flash Player 9
Extracting files
Installing flash on ie6
Finalizing
[ OK ]

Installing IE 7 (beta)
Copying ie6 installation
Extracting files
Installing registry
Finalizing
[ OK ]

IEs4Linux installations finished!

To run your IEs, type:
ie6
ie7
到这里,安装就完成了

更改字体
到windows下copy一个simsun.ttc放到

 ~/.ies4linux/ie6/drive_c/windows/fonts

代码:

 kate ~/.ies4linux/ie6/system.reg

找到这两行

代码:

 “MS Sans Serif”=”sserife.fon”
 “MS Serif”=”serife.fon”

替换为

代码:

 “MS Sans Serif”=”SIMSUN.TTC”
 “MS Serif”=”SIMSUN.TTC”

另外修改
其中如下部分
代码:

 [Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes] 1144897563
 “MS Shell Dlg”=”SimSun”
 “MS Shell Dlg 2″=”SimSun”

保存退出,OK了 ,解决ie6按钮不显示中文问题。


***********************************************************************************

****************************************安装问题************************************

***********************************************************************************

1。出现

  Downloading from macromedia.com:
   swflash.cab


  Downloading from sourceforge.net
   0%   andale32.exe
An error ocurred when downloading. Please run IEs4Linux again. Corrupted file: andale32.exe

方法一

ttf-mscorefonts-installer安装失败,可能是GFW原因,可试着VPN代理后安装。

方法二

如若方法一失败

先从sourceforge下载字体的到/tmp/ttf-mscorefonts-installer开头的一个随机目录中,然后再进行安装,我们就可以事先将文件下载好,在apt-get安装的过程中将文件复制到这个目录中,接下来在它做安装步骤的时候就会找到对应的字体了。

1. 下载所需的所有的字体,下面是列表,随便找一个sourceforge的站点就可以将它们全部下载下来:
andale32.exe
arial32.exe
arialb32.exe
comic32.exe
courie32.exe
georgi32.exe
impact32.exe
times32.exe
trebuc32.exe
verdan32.exe
wd97vwr32.exe
webdin32.exe
下载这些字体,可能会碰到无法下载的情况,优快云上有:
http://download.youkuaiyun.com/detail/lion_king_007/5068689

2. 将上面的内容保存到一个目录,例如~/ttf,将上面的所有的字体创建一个对应的空文件,名称是字体文件名称后面加一个.done。
例如:
arial32.exe
arial32.exe.done
...
其他的字体依此类推。
命令:
for i in `ls | grep exe`; do touch $i.done; done

3. 先确定/tmp/下没有ttf-mscorefonts-installer开头的目录,如果有的话就先删除掉。

4. 打开2个终端
终端1中输入命令:sudo apt-get install ttf-mscorefonts-installer,先不要执行。
终端2中输入命令:sudo cp ~/ttf/* /tmp/ttf-mscorefonts-installer, 也不要执行。

5. 先执行终端1中的命令,然后在终端2里面使用tab键,找到ttf-mscorefonts-installer...的一个目录,然后执行该命令。

6. 如果不出意外的话,这个包就会正常的安装结束了。

方法三
但是Ubuntu12以上的版本没有那些目录怎么办?
对于我们这些不想买付费VPN,又不好找有用的免费代理的人来说,确实不好办。
但我最后终于找到了不用代理的办法。说白了就是用本地服务器代替下载源。
①安装apache2服务器
 sudo apt-get install apache2
测试,浏览器打开localhost或者127.0.0.1出现,“It works!”字样代表安装成功。
②接下来,更改本地ttf-mscorefonts-installer的记载着下载目录的文件。
文件是
 /usr/share/package-data-downloads/ttf-mscorefonts-installer

命令:
 sudo gedit /usr/share/package-data-downloads/ttf-mscorefonts-installer

将Url: 后面的地址前面都改成这样
Url:  http://localhost/corefonts/andale32.exe

③在本地服务器目录下建立corefonts目录:
 sudo mkdir /var/www/corefonts/

把下载好的exe文件全部拷贝到/var/www/corefonts/目录下:
 sudo cp 所在目录/*.exe /var/www/corefonts/

④OK,再次寻找andale.exe等文件的时候,它会从本地服务器上找这些文件下载的。

当然,你也可以用HOST欺骗的方法,这里就提一下。
修改/etc/hosts,添加127.0.0.1映射heanet.dl.sourceforge.net的文字,
再在服务器目录(/var/www)下建立corefonts目录,拷贝exe字体到该目录下,
完毕。

方法四

如若方法三失效

则直接在终端进入

~/.ies4linux/downloads/
输入

cd /home/用户名/.ies4linux/downloads/

先用ls命令查看是否有 andale32.exe文件,若有,先删除
 sudo rm andale32.exe

然后把之前下的几个.exe文件直接拷贝到这里

 sudo cp “exe文件所在目录”/*.exe /home/用户名/.ies4linux/downloads/

再执行安装




2。出现

Installing IE 6
  Initializing
  Creating Wine Prefix
Your wine does not have wineprefixcreate installed. Maybe you are running an old Wine version. Try to update it to the latest version.


由于wine 1.3使用了winepath代替wineprefixcreate,所以安装ies4linux的时候,会提示wine版本太旧,wineprefixcreate有误。可以通过修改ies4linux 2.99.0.1/lib的functions.sh、install.sh来简单解决ie6的安装问题。 

在install.sh 426行左右 

subsection $MSG_CREATING_PREFIX 
set_wine_prefix "$BASEDIR/ie1/" 
wineprefixcreate &> /dev/null 
clean_tmp 

改为: 
subsection $MSG_CREATING_PREFIX 
set_wine_prefix "$BASEDIR/ie1/" 
winepath &> /dev/null 
clean_tmp 


在functions.sh 242行左右 
function create_wine_prefix { 
if which wineprefixcreate &> /dev/null; then 
( wineprefixcreate 2>&1 ) | debugPipe 
else 
error $MSG_ERROR_NO_WINEPREFIXCREATE 
fi 
} 

改为: 
function create_wine_prefix { 
if which winepath &> /dev/null; then 
( winepath 2>&1 ) | debugPipe 
else 
error $MSG_ERROR_NO_WINEPREFIXCREATE 
fi 
} 

保存后重新运行./ies4linux安装即可。 
可能会卡住,你到~/bin/里看有没有ie6。 
有就运行 ~/bin/ie6。 


由于IE支持网银,无论是相关支付接口开发还是自己网购,没IE还真不方便,因此,还是有必要安装IE的。 1.安装准备 目前,要在 Ubuntu 中运行 IE,Wine 是免不了的。所以,你需要首先安装 Wine。另外,在使用 IEs 4 Linux 过程中,会用到 cabextract 这个解包小工具。安装指令如下: sudo apt-get install wine cabextract 2.安装 IE 在下载 IES4LINUX后,使用 tar xvzf ies4linux 2.99.0.1.tar.gz 解包。然后,运行脚本 ./ies4linux(1)IE 6 will be installed automatically.Do you want to install IE 5.5 SP2 too? [ y / n ] 如果你不需要安装 IE 5.5 SP2,则选“n”。 (2)And do you want to install IE 5.01 SP2? [ y / n ] 询问是否安装 IE 5.01 SP2。默认为“n”。 (3)IEs can be installed using one of the following locales:   EN-US PT-BR DE FR ES IT NL SV JA KO NO   DA CN TW FI PL HU AR HE CS PT RU EL TR   Default is EN-US. Hit enter to keep it or choose a different one: 此处,输入“CN”,以便安装 IE 中文版。 (4)By default, I will install everything at /home/xxd/.ies4linux   I will also install Flash 9 plugin and create Desktop shortcuts.   Is that ok for you? (To configure advanced options type n) [ y / n ] 默认是安装在 /home/user/.ies4linux 中,同时安装 Flash 9 插件,并在桌面上创建快捷方式,按“y”继续。 现在,安装程序会自动连接到 Microsoft 的网站下载所需文件,请耐心等候。假如看到“IEs 4 Linux installations finished!”,就说明 IE 已经成功安装了。 注意:如果你是用wine 1.2及以上版本,因为将winepath取代了wine 1.1中的wineprefixcreate,所以你在安装前还应该作以下改变。 在install.sh 426行左右 subsection $MSG_CREATING_PREFIX set_wine_prefix “$BASEDIR/ie1/” wineprefixcreate &> /dev/null clean_tmp 改为: subsection $MSG_CREATING_PREFIX set_wine_prefix “$BASEDIR/ie1/” winepath &> /dev/null clean_tmp 在functions.sh 242行左右 function create_wine_prefix { if which wineprefixcreate &> /dev/null; then ( wineprefixcreate 2>&1 ) | debugPipe else error $MSG_ERROR_NO_WINEPREFIXCREATE fi } 改为: function create_wine_prefix { if which winepath &> /dev/null; then ( winepath 2>&1 ) | debugPipe else error $MSG_ERROR_NO_WINEPREFIXCREATE fi } 保存后重新运行./ies4linux安装即可。 可能会卡住,你到~/bin/里看有没有ie6。 有就运行 ~/bin/ie6。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值