KHTML for Windows
NOTE: There is now an easier way to set up KHTML on Windows.
Today there no browser using the KTHML rendering engine for Windows. Why would you care? I will tell you.
The KHTML engine is used for two major browsers on their OS. Konqueror on Linux and Safari on Macintosh. So if you are on Windows and want to develop web sites the look OK on those platforms you might want to have a look how your website would look like in an KTHML based browser.
So how do you do then, there are few alternatives.
- Install a Linux distribution to run Konqueror 1, 2, 3, 4 or 5
- Buy a Macintosh to run Safari.
- Run a Linux from an CD (live CD) to run Konqueror 1, 2 or 3
- Install PearPC / Mac OSX to run Safari
- Install Cygwin / KDE to run Konqueror
Installing a real Linux OS you need another computer / partition / disc to install on. Installing Linux is not really complicated but can be too much just for this task and you might not have another computer / partition / disc to spare for this task.
Buying an Macintosh might no possible for most people as they are not really too cheap. With the new mini Mac they are on the right track.
Running a live CD is really easy, just download the ISO file and burn it on a CD. Reboot the computer with the CD in the CD player and the Linux system will boot by itself from the CD. Very easy but you need to reboot the computer to try out your site on Konqueror. If you need to change something you need to learn some Linux programs or you need to reboot into Windows again.
Installing PearPC is almost like the process of installing Cygwin and KDE. The thing is that you need an Mac OS X ISO file, which of course cost money.
I will in this article describe the last one, install Cygwin / KDE. Why you may ask? It is free and you can start it directly from your desktop.
##Installing Cygwin
First go to Cygwin’s site and download their online installer. It is small exe file, the rest will be downloaded by the installer itself.
1. Start the installer.
2. Click Next. (img)
3. Choose Install from Internet, next. (img)
4. Choose root directory, keep it as it is, click next. (img)
5. Choose local package directory, should be the desktop as default, click next. (img)
6. Choose connection. If you are behind a firewall, change the settings, click next. (img)
7. Choose location, take one that is close to you click next. (img)
8. Choose packages. The base files for Cygwin are already picked as default. (img) You should only add on more package so you can read and write text files like Notepad. Scroll down a bit to Editors and click it. It folds out and then click (on the Skip word) the one called Nano. When done click next. (img)
9. The files are now downloaded from Internet and installed. (img)
10. When done click the finish button. (img)
11. To see that the installation works, click the shortcut that was made on the desktop. (img)
12. A console window is opened, showing some text, nothing to care about. (img)
13. Close the console window.
##Installing KDE
1. Start the online installer once more.
2. Click next
3. Click next (install from Internet)
4. Click next (local package directory)
5. Click next (connection)
6. Choose location, now add this to the User URL http://kde-cygwin.sourceforge.net/install. Click add. Please be aware that there is no spaces after the URL.
7. Choose packages, scroll down to the KDE-3 -base part. Click to unfold, check the three packages. Unfold the KDE-3-i18n package and choose specific language packages that works best for you. When done, click next.
8. The KDE files are now downloaded and installed.
9. When done, click finish.
##Post installation
1. Start the Cygwin console window again.
2. Write: “rebaseall -v”. (img)
3. To start the KDE desktop write: “startx &”.
4. There should start to run a lot of text in the console window, after a while a new window will be opened. If you have an person firewall installed you will get a few warnings (XWin, kcminit, kdeinit and kdesktop) (img), that is ok, just let them through your firewall
5. As this is an emulation it takes a while for the desktop to start, after the welcome screen and an wizard choosing language etc. you will be presented with the KDE desktop.
6. To start Konqueror click the 6th icon in the bottom list (the one with the globe). Go to the web address of you choice, voila.
##Notes
1. The installation do no have to many fonts installed as default.
2. The font is not anti-aliased, if I run KDE on Red Hat for example, the fonts do look better.
3. I noted that PNG images did not work, they work fine in a real Linux installation.
4. I did have some problems when downloading the KDE packages, mostly the KDE-3-i18n package. I had to try a few times before I got it downloaded, when this appended I got an error message. I just hit the retry button until it worked.
##Reference
1. KDE for Cygwin site
2. KDE-Cygwin install instructions
3. How to Install Cygwin and the KDE desktop on top of it
4. Apple Webcore
5. GTK+ Webcore

August 8th, 2005 at 12:47 am
Thank you thank you thank you thank you Jens,
You have written a BEST instructions I have found for installing cygwin and KDE and thereby getting KHTML on windows.
I commend both the quality and clarity of your instructions.
August 9th, 2005 at 9:31 am
I glad I could help. Also, if you like an easier way, take a look at part 2. Keep on using Konqueror.
August 9th, 2006 at 1:57 pm
[...] As for getting Konqueror working on a Windows PC, well it seems like the only current option is to install some sort of virtual Linux (eg. CygWin (tutorial) or coLinux, or perhaps using something like VMWare) and install KDE. It’s a bit involved, though… [...]
October 11th, 2006 at 3:40 pm
Really cool tutorial ! Clear and complete. Thanks
November 13th, 2006 at 10:36 am
Hello,
Good post.
When I try to start x and KDE I get:
waiting for X server to shut down FreeFontPath: FPE “/usr/X11R6/lib/X11/fonts/mi
sc/” refcount is 2, should be 1; fixing.
winDeinitMultiWindowWM - Noting shutdown in progress
Any ideas? Thanks.
November 14th, 2006 at 7:12 pm
Hans: I have real clue, have you tried to search with Google to find any solution. I never had any problems.
November 14th, 2006 at 9:53 pm
I could find some related problems via google, however not this one.
I had to start ash seperately by the way, rebaseall -v would work at the cygwin prompt.
Rgds
November 14th, 2006 at 10:45 pm
Hans: Thanx
December 10th, 2006 at 5:45 pm
Doesn’t work
in cygwin console:
I followed the instructions. In cmd.exe:
Well ash is running, tried to rebaseall in the Cygwin console with the same result…
Than I feel giving a damn on rebaseall and I typed ’startx &’ into the cygwin console. The KDE flashed in than out and I got the same output as Hans wrote earlier.
So what’s next? Is there an easier (or an everywhere working) way to run Konqueror on Windows?
December 10th, 2006 at 5:47 pm
oops… doesn’l like the multiple ‘-’ text formatting…
December 10th, 2006 at 10:32 pm
Gixx: I haven’t tried this for a long time now, have you looked at my other posts about KHTML for Windows, try searching for KTHML from my site and you will get five other articles about it. They might work for you.
December 14th, 2006 at 1:22 am
If I install KDE, will it change the interface? I just want Konqueror, nothing else.
December 14th, 2006 at 9:13 am
Lee: No, this will not change your windows interface as the whole thing is run in a own program, check out this image:
http://jedisthlm.com/wp-content/kde/desktop.gif
December 15th, 2006 at 3:35 am
One more thing.
How many megabytes does this process take?
December 15th, 2006 at 10:24 am
Sorry, I´m not sure as I do not have this installed at this time.
April 25th, 2007 at 3:21 pm
[...] - Konqueror (KHTML) unter Windows mit Hilfe von cygwin - KHTML for Windows Installationsanleitung [...]
June 14th, 2007 at 9:23 am
Or go to http://www.apple.com/safari and download Safari for Windows.
July 28th, 2007 at 1:45 am
Hello,
Can I download konqueror on windows?
I am having a hard time in here.
Any help?
Marica
July 28th, 2007 at 10:53 am
Take a look at my other posts in the KHTML for Windows serie and you will find better and quicker ways of setting up Konqueror for Windows.
August 18th, 2008 at 4:42 am
arora for windows (webkit-mfc)
http://code.google.com/p/arora/
how much changes in a year..now no one needs an emulator/another os to test khtml..
August 18th, 2008 at 6:24 am
@betatester: Thanks for the link to the project. Seems like a great project, I´ll have a look at it.