Linux

SolutionBase: Run Internet Explorer on Linux

Even Linux devotees may need to use Internet Explorer on occasion for tasks such as testing Web design or JavaScript. Brian Smith shows you how to get Microsoft's browser running on Linux.

Most Linux users would be appalled by the idea of attempting to contaminate a Linux installation with any Microsoft product, especially Internet Explorer. However, many Web sites don't render properly using regular Linux browsers, such as Firefox or Konqueror. Other sites either require ActiveX controls or are designed to work only with Internet Explorer. Also, how can you test your new Web design and JavaScript for IE if you're an Apache and Linux maven?

For those who may have the need for Internet Explorer without the need to move to another machine or reboot, there is a solution for you: an extremely useful project aptly named IEs4Linux. In this article, I will describe how to install and begin using multiple versions of Internet Explorer using Wine and IEs4Linux.

What's IEs4Linux?

IEs4Linux is a small shell script that can be run via console on any Linux machine with Wine installed. As the title suggests, it allows you to quickly and easily install that most infamous of Microsoft products: Internet Explorer.

The creator of IEs4Linux is Sérgio Luís Lopes Júnior, a 21 year old Brazilian student and self-proclaimed lover of Linux and OpenSource. Naturally, being open source, IEs4Linux is free. However, as with many people working on open source projects, Sérgio's funding comes from the community; if you found IEs4Linux helpful, you can PayPal him a few dollars to continue development of the project.

IEs4Linux relies on the Wine project to supply an implementation of the Microsoft Windows API. The IEs4Linux script actually downloads the required CAB files directly from the Microsoft site; then, using cabextract, copies the files to a new Wine profile. This way, your existing Wine profiles are not affected, and any other software you have running will be just fine. In addition to installing Internet Explorer versions 5, 5.5, and 6, IEs4Linux also can install Flash 9 for you from Adobe.

IEs4Linux is a GPL product; however, Internet Explorer is a copyrighted product of Microsoft. This means that you will need to be in possession of a valid Windows license version greater than 95, although it will not be asked for during the installation process.

Author's note

For the purposes of this article, I'll assume you're running the latest version of Ubuntu as your Linux distribution. IEs4Linux will work with almost every distribution, but the installation routine varies. This article assumes that you already have Ubuntu Desktop installed and operational.

Depending on how you like to install your software, I have included two sets of instructions, first the graphical (GUI) method and lastly the console (CLI) method.

Installing the required packages

To install all the applications required to enable IEs4Linux to run properly, ensure that you have the Universe repositories enabled. Open the Software Sources configuration screen, which can be found under Toolbar | System | Administration | Software Sources.

Next, you need to select all the repositories for the CD-ROM/DVD option. You won't need this option. The online repositories are kept up-to-date, as shown in Figure A. Press the Close button when you're finished.

Figure A

,

Selecting the required repositories to install Wine and cabextract.

Now it's time to begin installation of the required packages. Go to Toolbar | System | Administration | Synaptic Package Manager. Once it opens, search for Wine and cabextract. Once you find them, press Apply, as shown in Figure B.

Figure B

Installing Wine and cabextract.

Kickin' it old school with the console

You can also obtain the files from the console prompt. To begin, open a console. You can do this by going to the toolbar and going to Application | Accessories | Terminal. In the terminal, run the command: apt-get update && apt-get install cabextract wine. The install process will begin after pressing [Enter]. The apt-get process download installs all the files and packages for wine for you.

Getting down to business

Now that you have Wine installed with cabextract, it's time to download the IEs4Linux files. You can either go to the IEs4Linux Web site, or return to a console to enter this command to download the latest IEs4Linux build:

wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz

Figure C shows what this looks like.

Figure C

Downloading the IEs4Linux Installer.

After you have downloaded the latest build tarball, you need to cd to the directory where you downloaded tarball to if you did not do so from the console. This can be done easily with the command cd ies4linux-*. Next, enter the command tar xzvf ies4linux-latest.tar.gz in the console to decompress the tarball and change directories into the build directory. Finally, to launch the IEs4Linux script that will begin the installation process, type ./ies4linux.

You will be lead through a text-based series of screens that will ask you questions about what versions of Internet Explorer you want to install, as shown in Figure D. The first question asked will be if you wish to install version 5 and 5.5 of Internet Explorer; you can make that decision for yourself. In addition to installing Internet Explorer, IEs4Linux will also install the Flash Player plug-in automatically.

Figure D

Running the IEs4Linux Installer.

After a few minutes, the script will download all of the required files and install them on your computer automatically. Additionally, links on your desktop will be created to Internet Explorer making for quick access. The Internet Explorer launch binaries will exist in the newly created directory bin in your home directory. For quick access on command line, run ~/bin/ie6 to launch Internet Explorer version 6. You'll see IE run, as shown in Figure E.

Figure E

You should now have Internet Explorer running in Linux.

Congratulations; you have successfully installed Internet Explorer version 5, 5.5, and 6 on your PC. With the assistance of IEs4Linux, it is possible to have Internet Explorer accessible to you as a tool on any Linux system that can run Wine.

Variations in other distributions

The install process for other distributions will be different according to that distro's package system. But the rest is the same after that. For example, in Gentoo, the series of commands would be:

emerge --sync && emerge wine cabextract.

For Fedora, the commands to install wine and cabextract are:

yum -y install wine*
yum -y install cabextract

For Mandriva, the directions are:

urpmi wine cabextract

For more distributions and instructions, please visit the IEs4Linux site.

Known issues

There are a number of known issues with the Internet Explorer version installed by IEs4Linux. Some of these include:

  • VML does not work.
  • PNG transparency does not work even when using hacks (a consequence of the "CSS filter" bug).
  • Windows Update does not work.
  • JavaScript error dialog does not open.
  • Modified toolbars are not saved.
  • ActiveX may not work with some special cases.

The install of Internet Explorer made by IEs4Linux doesn't have the JavaScript debugging enabled by default, which can be quite frustrating when you know there is a bug on the page, but can't get the error message. To get around this, you will need to enable JavaScript debugging.

In the menu bar, go to Tools | Internet Options to open the Internet Options dialog. Next, press on the Advanced tab and scroll down to the Browsing section. Uncheck the list item Disable Script Debugging.

22 comments
anakiar
anakiar

Good knowledge, and information!!

ed2nicolas
ed2nicolas

Will start using ubuntu linux soon... dammit!! :(

JCitizen
JCitizen

Fantastic visual illustration! All the negative waves here miss the point in my estimation. If you are a Linux promoter what better way to get a newbie to switch to Linux? This destroys one of the last arguments I get from prospective converts is that they want IE capability on the net. Well this at least gets them off using Windows. Next thing you know they won't need IE either, and Windows go bye bye!

csbeltran
csbeltran

best trick I've seen since some one put a 1300cc VW motor in a Corvair van.

kevinot
kevinot

Hi, If you can find it, Microsoft did have two Internet Explorer for UNIX packages for Sun Solaris and HP-UX. Microsoft pulled these off of their download site in 2002. I'd read that some people had been able to hack one of these to work on Linux. Microsoft didn't have a UNIX development team in-house, so they brought in developers [on-site contractors] from India. It wasn't an ugly port from Windows, these were UNIX people revising the code to make it work right on UNIX. The packages also included Outlook Express for UNIX.

rajesh.1283
rajesh.1283

hi, i want to install ie4 linux on rhel4&fedora,have any tips for that. Rajesh

Jaqui
Jaqui

any site that requires IE is a site with no content worth viewing at all. and since I don't code sites with lots of stupid clientside scripting, ie can handle my sites just fine, even the css and xml bugs are only a one line fix. [ yes, one line of code fixes the bugs ]

unhappyuser
unhappyuser

IE on Linux? That's like putting ketchup on a good steak! EWWWWW! ; - ) EMD

rkuhn040172
rkuhn040172

Great theoretical argument, but read nicorac's post. Sometimes wants and desires aren't reflective of reality.

Nodisalsi
Nodisalsi

Some websites work better with Gecko based standards compliant web browsers. For example, a gallery website can apply a CSS attribute "width=44em" to the main image; so when the user changed text size (Ctrl+mousewheel or Ctrl + and -) the image blows up in size - no need for JS or ActiveX! We should demonstrate to all consumers and business clients how and why W3C standards are superior to IE's proprietry features rather than wasteing our time trying to fit our designs into it's flawed and insecure framework.

DanLM
DanLM

Truthfully, I think if your going to go through that much trouble.... Meaning you need a windows application to perform certain tasks. Run VM. And truthfully, I'm about 1 point away from my frustration factor with my windows machine. I've about had it with this 2.8 dual processor with 2 gig of memory constanly freezing up, running like crap. When I format and reload, which will happen. I will either do vm or dual boot. I'm sick of the sh*t. If in doubt, throw it out. And thats what I'm ready to do with windows completely. Throw it the fk out. And all you ms extremists. This is from someone that has always argued the case that each os has its points. I just cant think of a single one anymore for windows. memory pig. processor pig. And it doesn't even give me satisfaction. Screw windows and all the crap that goes with it. Dan

The Scummy One
The Scummy One

I agree with you, and the beginning of the article, that most Linux users would not want to contaminaet their box. Personally, I think this is a bad idea, the corp world needs to start setting up web pages for multiple browsers, or suffer with 100,000 emails a day saying, hey, make it work in FF or Konquerer or Opera, etc.. One would think that with FF success, that many sites would have made an attempt to work properly in FF. But many have not yet, and this is truly sad. Personally, I use IE at work for theis reason, and at home, I usually forego site which do not render in FF or Konquerer. There are some exceptions, but not too many. Just to accept this and install IE on all other platforms (Mac, Linux, BSD, etc.) is an insult. Many sites that use Flash have links to their site which do not require it. For those who have to use Active X, maybe they should make create the same thing, another site which does not require it.

TJ111
TJ111

I am a web-developer stuck in a Microsoft world. Although our servers run linux and I run linux on my personal computers, I'm stuck with windows for web-development. Until I can get IE 7 running under linux I don't see me having the ability to make the switch. As much as I hate IE, I'm still stuck making my sites work for it.

nicorac
nicorac

...suppose your bank has an IE-only site. After sending them 100000 mails complaining about that, you have 3 options: - vmWare player to only run IE - IE on linux - move your bank account to another bank :)

JCitizen
JCitizen

A few weeks ago, but my Linux project is not going yet so I didn't try it. I had great difficulty in navigating back to it; so I don't have a link. I ran across it looking for the 64 bit version of IE 7. I should have saved it as a favorite - curses!

apotheon
apotheon

I wouldn't trust online banking that requires IE.

john
john

recently i to gave up on windows and went to linux, although there are some apps that i do need from windows so install windows in vm runs when i need it and kill it when it gives me the sh*** with a click of the mouse wouldnt even contemplate installing IE directly in linux, why not use opera you can emulate IE without the headaches

Ken Keesling
Ken Keesling

There is "experimental" IE 7 support in the current beta release. Maybe you can help test it?

Jaqui
Jaqui

[pre] [/pre] makes IE play nice with sites. The very first line being the part that does the trick editing for layout

Jaqui
Jaqui

report them to the fed for violating federal regulations reqiring accessability of websites here.