How to: Open CHM Files in Ubuntu and Convert to More Stable Formats

Posted by Heeren On January - 30 - 2010

error ubuntu How to: Open CHM Files in Ubuntu and Convert to More Stable FormatsIn Ubuntu, you can easily open pdf files, but if you try opening a chm file, an error often creeps up, saying There is no application installed for this file type. This is because, Ubuntu comes with no integrated support for chm files.

What is .chm file format?

It is basically a microsoft proprietary file format that is basically designed for the help files deployment. It is considered as a handy file format as in this various HTML files can be collected together in one whole compact package and hence used in formation of various ebooks.

How to open CHM file in Ubuntu or any linux version?

Various Linux users find difficulty in opening the .chm file. But with the following steps, it is very easy to open them  :

  • Open the terminal .  Applications-> Accesories->Terminal
  • Install the following software by typing in the terminal

[stextbox id="grey"]sudo apt-get install xchm[/stextbox]

And now you can open any .chm file with the help of XCHM viewer utility.

Now as .chm reader is basically meant for Microsoft help files platform so many of you would be wondering that these Windows help files are irrelevant to UBUNTU. This is helpful in ebooks and online documentation, but  as it was less secure and its interface is also a nerd like, so we can also convert it into many other stable formats. The later section is related to this kind of conversion.

How to convert .chm files to .pdf ?

.chm files does not provide facility for editing and then republishing. Hence, to perform this we need to convert them into .pdf or other more stable format.

Step 1 : Install package libchm-bin.

Generally package libchm-bin is preinstalled in the Ubuntu jaunty and its later version. But you can also install it with the following command in TERMINAL .

[stextbox id="grey"]sudo apt-get install libchm-bin[/stextbox]


Here’s a ScreenShot of the terminal.-

image1 e1265471977701 How to: Open CHM Files in Ubuntu and Convert to More Stable Formats

Step 2: Extract all html files.

Secondly we need to extract all the html files with the help of the extract_chmLib, an CHMLIB included application. To do so type the following command in the TERMINAL:

[stextbox id="grey"]extract_chmLib file.chm htmldir[/stextbox]

Example.- As in my case the file is at desktop so file.chm is required file and htmldir is folder that will be automatically generated so at to store all those .html files that are in compact form in .chm file.

[stextbox id="grey"]heeren@heeren-laptop:~/Desktop$ extract_chmLib Effective\ C++\ \&\ More\ Effective\ C++.chm htmldir[/stextbox]

where file name is  Effective\ C++\ \&\ More\ Effective\ C++.chm and the output file directory is htmldir

Here’s a ScreenShot of the terminal.-

image2 e1265472024509 How to: Open CHM Files in Ubuntu and Convert to More Stable Formats


Step 3: Install HTMLDOC.

After extracting the .html files , you need install another utility called “HTMLDOC” so at to convert the all these html pages as full fledged .pdf book.

Type the following command to do so ..

[stextbox id="grey"]sudo apt-get install htmldoc[/stextbox]

After installing the package which is of approx. 10.1 Mb you can open it by simply hitting the following command in your terminal

[stextbox id="grey"]htmldoc[/stextbox]

Here’s a ScreenShot of the interface.-

image3 How to: Open CHM Files in Ubuntu and Convert to More Stable Formats


Add the html files you want to wrap up in the serail order in INPUT tab and don’t forget to check the “web page” as the Document type. Secondly you need to make your output properties which is as follows :


Here’s a ScreenShot of the interface.-

image4 How to: Open CHM Files in Ubuntu and Convert to More Stable Formats

Now  it will take a little time to get your files in repacking and later on to convert them as your pdf book .


Other utilities for opening .chm files?

There are other many other popular utilities available which are as follows :

  • gnochm – much more like that of xchm
  • kchmviewer – for Kbuntu and KDE platforms.


After using all these utilities i’ll put my vote over back to “xchm” . The reason being for such support is primarily stable .


It is easier to use than that of gnochm. Moreover in page search is much better in “xchm”. Secondly for KDE platform users, they can simply open the .chm files in the konqueror ” browser, no need for kchmviewer.

Choice is all Yours.

Enjoy your ebook. So we have overcome Windows Help files too ..

LINUX= Windows + FUN + FREEDOM ..

GO FREEEEE.. icon biggrin How to: Open CHM Files in Ubuntu and Convert to More Stable Formats

Not many people are aware of the ease with which one can perform such operations.

Comments are Welcome.  And, please Share it if you Like it.

It may feel strange since many .chm to pdf convertors are avaiable. But, we will share the Software technique for the same, in our upcoming post!

Thanks.

Suggested reading:
Guide to Configure Netbeans For Android Application Development on Ubuntu
Most of the programmers would agree that Netbeans is the magical stick that gives our coding pattern an all new zing. When it comes to Android Application, configuring Eclipse IDE ...
READ MORE
How to Check all your Activity Logs in Linux
It is always good to keep track of activities and logs whenever something unusual happens with your system. Sometimes you want to come close to the reasons behind a particular ...
READ MORE
LibreOffice 3.3 Stable Released; How to Install from PPA
The Document Foundation has launched the first stable release of LibreOffice, the free and Open Source office suite, forked from OpenOffice. The first release, LibreOffice 3.3 has been developed by ...
READ MORE
Convert Default Online Dictionary to Offline in Ubuntu 10.04 or Later!
Ubuntu comes with the default Dictionary, that can be accessed from the pathways “Applications → Office → Dictionary”. The only problem associated with it is that, it's an Online Dictionary, ...
READ MORE
Install LAMP on Ubuntu Maverick and Lucid with One Command
This is probably the simplest way to setup LAMP Server on Ubuntu. It's a single command based installation which allows you to install Apache web server, mysql, php on a ...
READ MORE
Ubuntu 11.04 Natty Narwhal Alpha 1 Available for Testing
Ubuntu 11.04 Natty Narwhal, first Alpha has been released. Codenamed Natty Narwhal (a medium-sized toothed whale that lives year-round in the Arctic), the development cycle has already been rescheduled from 5 alpha ...
READ MORE
Install GIMP 2.6.11 in Ubuntu 10.04 & Ubuntu 10.10 from PPA
GNU image manipulation Program, commonly known as GIMP is a multi-platform tool to edit, compose or manipulate images. This free tool is one of the top competitors to Adobe Photoshop, mostly ...
READ MORE
Install VirtualBox 3.2.10 in Ubuntu 10.10 from Repository
Now that Ubuntu 10.10 Maverick Meerkat is available, there are some applications worth installing on your system. One such application is VirtualBox. Its a multi-platform software package; in case you ...
READ MORE
Guide to Configure Netbeans For Android Application Development
How to Check all your Activity Logs in
LibreOffice 3.3 Stable Released; How to Install from
Convert Default Online Dictionary to Offline in Ubuntu
Install LAMP on Ubuntu Maverick and Lucid with
Ubuntu 11.04 Natty Narwhal Alpha 1 Available for
Install GIMP 2.6.11 in Ubuntu 10.04 & Ubuntu
Install VirtualBox 3.2.10 in Ubuntu 10.10 from Repository

Article by

I am a Linux fan and have keen interest in learning new technologies. Follow me on Twitter.

Heeren has written 8 articles for us at TechTickle.

3 Responses to “How to: Open CHM Files in Ubuntu and Convert to More Stable Formats”

  1. uberVU - social comments says:

    Social comments and analytics for this post…

    This post was mentioned on Twitter by techtickle: TechTickLe Tutorials- How to: Open CHM Files in Ubuntu and Convert to More Stable Formats http://bit.ly/a3XWw7 (RT if u like it)…

  2. [...] This post was mentioned on Twitter by Sahil Malhan, Sahil Malhan, Sahil Malhan, slimb mani, slimb mani and others. slimb mani said: TechTickLe Tutorials- How to: Open CHM Files in Ubuntu and Convert to More Stable Formats http://bit.ly/a3XWw7 (RT if u like it) @techtickle [...]

  3. Jayadev Das says:

    Thank you very much Boss. It helped me. Thanks!!

Leave a Reply

About Me

Welcome to TechTickle! A blog that features Latest technology news, Linux tutorials, Updates related to Social Media, Website & Software reviews and Open Source. We are a group of ordinary individuals, with an extra ordinary quality of sharing our passion and, reaching out to the people in nook and corner. Read more About TechTickle!

Twitter

    Subscribe to E-mail Updates: