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.

  1. Install a Linux distribution to run Konqueror 1, 2, 3, 4 or 5
  2. Buy a Macintosh to run Safari.
  3. Run a Linux from an CD (live CD) to run Konqueror 1, 2 or 3
  4. Install PearPC / Mac OSX to run Safari
  5. 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. (http://jedisthlm.com/wp-content/kde/install5.gif)
  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

Related Posts:

External links

19 Responses to “KHTML for Windows”

  1. yinch Says:

    Thank you thank you thank you thank you Jens, :-D

    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.

  2. Jens Says:

    I glad I could help. Also, if you like an easier way, take a look at part 2. Keep on using Konqueror.

  3. StickBlog » Blog Archive » Cross-platform browser testing Says:

    [...] 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… [...]

  4. Yarma22 Says:

    Really cool tutorial ! Clear and complete. Thanks :)

  5. Hans Says:

    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.

  6. Jens Says:

    Hans: I have real clue, have you tried to search with Google to find any solution. I never had any problems.

  7. Hans Says:

    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

  8. Jens Says:

    Hans: Thanx

  9. Gixx Says:

    Doesn’t work :(

    in cygwin console:

    $ rebaseall -v rebaseall: only ash processes are allowed during rebasing Exit all Cygwin processes and stop all Cygwin services. Execute ash from Start/Run… or a cmd or command windows. Execute ‘/bin/rebaseall’ from ash.

    I followed the instructions. In cmd.exe:

    C:\>c:\cygwin\bin\ash.exe $ /bin/rebaseall /bin/rebaseall: not found $ /bin/rebaseall -v /bin/rebaseall: not found $

    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?

  10. Gixx Says:

    oops… doesn’l like the multiple ‘-’ text formatting…

  11. Jens Says:

    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.

  12. Lee Says:

    If I install KDE, will it change the interface? I just want Konqueror, nothing else.

  13. Jens Says:

    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

  14. Lee Says:

    One more thing. How many megabytes does this process take?

  15. Jens Says:

    Sorry, I´m not sure as I do not have this installed at this time.

  16. Netscape (min-width-fix) - XHTMLforum Says:

    [...] - Konqueror (KHTML) unter Windows mit Hilfe von cygwin - KHTML for Windows Installationsanleitung [...]

  17. Karl Says:

    Or go to http://www.apple.com/safari and download Safari for Windows.

  18. Marcia Says:

    Hello,

    Can I download konqueror on windows?

    I am having a hard time in here.

    Any help?

    Marica

  19. Jens Says:

    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.

Leave a Reply


Jens Wedin Mail me Portfolio