64位Ubuntu下安装IE6步骤

ies4linux下载地址:

http://www.tatanka.com.br/ies4linux/download.html

cabextract下载地址:

http://ubuntu.mirror.cambrium.nl/ubuntu//pool/universe/c/cabextract/cabextract_1.2-2_amd64.deb

wine1.0下载地址:

http://archive.ubuntu.com/ubuntu/pool/multiverse/w/wine1.0/wine1.0_1.0.1-0ubuntu13_amd64.deb


cab文件及字体下载地址:

http://sourceforge.net/projects/corefonts/files/the%20fonts/final/andale32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/arial32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/arialb32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/comic32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/courie32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/georgi32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/impact32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/times32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/trebuc32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/verdan32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/webdin32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/wd97vwr32.exe
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/times32.exe
http://download.microsoft.com/download/d/1/3/d13cd456-f0cf-4fb2-a17f-20afc79f8a51/DCOM98.EXE
http://activex.microsoft.com/controls/vc/mfc40.cab
http://download.microsoft.com/download/win98SE/Update/5072/W98/EN-US/249973USA8.exe
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/ADVAUTH.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/CRLUPD.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/HHUPD.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/IEDOM.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/IE_EXTRA.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/IE_S1.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/IE_S2.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/IE_S5.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/IE_S4.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/IE_S3.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/IE_S6.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/SCR56EN.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/SETUPW95.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/FONTCORE.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/FONTSUP.CAB
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/VGX.CAB
http://download.macromedia.com/get/shockwave/cabs/flash/swflash.cab


simsun.ttc下载地址:

http://www.font5.com.cn/zitixiazai/1/150.html

adobe flash player 11下载地址:

http://down10b.zol.com.cn/zhuyeliulan/flashplayer11.5_win_ax.zip?key=e96865c506d14fbdcae6124a89beb7ee


$ sudo vi file

DCOM98.EXE
mfc40.cab
249973USA8.exe
ie6/CN/ADVAUTH.CAB
ie6/CN/CRLUPD.CAB
ie6/CN/HHUPD.CAB
ie6/CN/IEDOM.CAB
ie6/CN/IE_EXTRA.CAB
ie6/CN/IE_S1.CAB
ie6/CN/IE_S2.CAB
ie6/CN/IE_S5.CAB
ie6/CN/IE_S4.CAB
ie6/CN/IE_S3.CAB
ie6/CN/IE_S6.CAB
ie6/CN/SCR56EN.CAB
ie6/CN/SETUPW95.CAB
ie6/CN/FONTCORE.CAB
ie6/CN/FONTSUP.CAB
ie6/CN/VGX.CAB
swflash.cab

:wq

 

为了安装时方便,事先建个IE6文件夹,IE6下建个downloads文件夹,downloads下建个CN和EN-US文件夹,
wine、cabextract、ies4linux、ie6.sh、simsun.ttc及flashplayer11放在IE6下,所有的.exe及.cab文件及file文件都放在downloads目录下,
所有的.CAB文件都放在ie6/CN/下,SCR56EN.CAB是CN和EN-US下都放

$ sudo mount -o username=ming,password=123456 //10.0.10.2/ming /mnt (挂载共享文件ming到本机)

$ sudo sh /mnt/IE6/ie6.sh

ie6.sh内容如下:

#!/bin/bash
sudo rsync -av --progress /mnt/ubuntu/IE6 /home/
sudo apt-get autoremove wine1.4 -y
sudo dpkg -i /home/IE6/wine1.0/*
sudo tar xvf /home/IE6/ies4linux-2.99.0.tar.tar -C /home/IE6/
sudo rsync -av --progress /home/IE6/.ies4linux /home/apuser/
sudo dpkg -i /home/IE6/getlibs/*
getlibs -i /home/IE6/gnome-keyring/*
sudo mkdir /usr/lib/i386-linux-gnu/pkcs11
sudo ln -s /usr/lib32/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so /usr/lib/i386-linux-gnu/pkcs11/
sudo /home/IE6/ies4linux-2.99.0/ies4linux --no-gui --install-corefonts --locale CN
sudo rsync -av --progress /home/IE6/simsun.ttc /home/apuser/.ies4linux/ie6/drive_c/windows/Fonts/
sudo mv /home/apuser/.ies4linux/ie6/system.reg /home/apuser/.ies4linux/ie6/system.reg.bak
sudo rsync -av --progress /home/IE6/system.reg /home/apuser/.ies4linux/ie6/
sudo apt-get autoremove wine1.0 -y
sudo dpkg -i /home/IE6/wine1.4/*
wine /home/IE6/install*
sudo mv /var/lib/locales/supported.d/local  /var/lib/locales/supported.d/local.bak
sudo rsync -av --progress /home/IE6/local /var/lib/locales/supported.d/
sudo locale-gen
sudo mv /etc/profile /etc/profile.bak
sudo rsync -av --progress /home/IE6/profile /etc/
. /etc/profile
sudo mv /home/apuser/.ies4linux/bin/ie6  /home/apuser/.ies4linux/bin/ie6.bak
sudo rsync -av --progress /home/IE6/ie6 /home/apuser/.ies4linux/bin/
sudo /home/apuser/bin/ie6
sudo mv /var/lib/locales/supported.d/local  /var/lib/locales/supported.d/local2
sudo mv /var/lib/locales/supported.d/local.bak  /var/lib/locales/supported.d/local
sudo locale-gen
sudo mv /etc/profile /etc/profile2
sudo mv /etc/profile.bak /etc/profile

:wq (保存并退出)

注:

1、先卸载高版本wine,安装wine1.0,并于ie6安装完后卸载wine1.0,然后安装高版本wine

2、IE 6安装过程中flash会安装失败,不去管,安装完成后再安装下flash 11即可

3、解决IE 6乱码问题,修改local文件、profile文件,和ie6启动文件,等ie6启动中文正常后再将local文件和profile文件改回即可,如果不改回的话系统为中文界面,改回后ie6依然正常

4、local文件如下:

en_US.UTF-8 UTF-8
zh_CN.GBK GBK
 

5、profile文件最后添加如下:

LANGUAGE="zh_CN:zh:en_US:en"
LANG="zh_CN.GBK"

6、ie6启动文件在cd行后添加如下:

export LANG="zh_CN.GBK"