本文共 2862 字,大约阅读时间需要 9 分钟。
ies4linux下载地址:
cabextract下载地址:
wine1.0下载地址:
cab文件及字体下载地址: simsun.ttc下载地址:adobe flash player 11下载地址:
$ sudo vi fileDCOM98.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 GBK5、profile文件最后添加如下:
LANGUAGE="zh_CN:zh:en_US:en"
LANG="zh_CN.GBK"6、ie6启动文件在cd行后添加如下:
export LANG="zh_CN.GBK"
本文转自linux博客51CTO博客,原文链接http://blog.51cto.com/yangzhiming/1060043如需转载请自行联系原作者
yangzhimingg