Linux News|Linux Install sidebyside windows|Ubuntu|Linux Help|Installing Apache and php from source

Thursday, August 30, 2012

Converting CHM to PDF in Linux

CHM files, known as Microsoft Compressed HTML Help files, are a common format for eBooks and online documentation. They are basically a collection of HTML files stored in a compressed archive with the added benefit of an index.

Under Linux, you can view a CHM file with the xchm viewer. But sometimes that is not enough. Suppose you want to edit, republish, or convert the CHM file into another format such as the Plucker eBook format for viewing on your Palm. To do so, you first need to extract the original HTML files from the CHM archive.
This can be done with the CHMLIB (CHM library) and its included helper application extract_chmLib.
In Debian or Ubuntu:

$ sudo apt-get install libchm-bin
$ extract_chmLib book.chm outdir
where book.chm is the path to your CHM file and outdir is a new directory that will be created to contain the HTML extracted from the CHM file. In other Linuxes, you can install it from source. First download the libchm source archive from the above website. I could not get the extract_chmLib utility to compile under the latest version 0.38, so I used version 0.35 instead.

$ tar xzf chmlib-0.35.tgz
$ cd chmlib-0.35/
$ ./configure
$ make
$ make install
$ make
After doing the 'make examples', you will have an executable extract_chmLib in your current directory. Here is an example of running the command with no arguments and the output it produces:
$ ./extract_chmLib                    usage: ./extract_chmLib 
After running the utility to extract the HTML files from your CHM file, the extracted files will appear in . There would not be an 'index.html' file, unfortunately. So you will have to inspect the filenames and/or their contents to find the appropriate main page or Table of Contents.
Now the HTML is yours to enjoy!

   I have learnt this from lots of available sites and main reference I have given below.

References:http://madphilosopher.ca/2006/09/how-to-convert-chm-files-under-linux/

Monday, March 5, 2012

Install_flash_player_11_linux.x86_32.tar.gz,Install_flash_player_11_linux.x86_64.tar.gz in 64/32 bit in ubuntu/linux for firefox|Installing Adobe Flash Player in 32 and 64 bi ubuntu/linux for firefox|Installing latest version of Adobe Flash Player in ubuntu for firefox|Install latest Flash Player in ubuntu/linux for firefox|Installing Adobe flash player from source file for firefox.

To install flash player in ubuntu through source file is much easier as installing from binary file. when this post was written there was no debian file available for the current version of flash player although rpm package is available but no debian package available. Usually now flash player is coming as shared library which you have to put in a specified location and firefox and other browser will pick it automatically as follows. Download the source file for your machine from "here".

Now follow these steps:
Step 1:  Using the tar utility extract the file or right click on the file and extract the file.
Step 2:   Copy the file with ".so" extension to ".mozilla/plugins" directory which is in your home directory. Here ".mozilla" will be hidden in your home directory.If there is no "plugins" folder then create and copy that file in that folder and restart the firefox.

Tuesday, February 14, 2012

Installing firefox-10.0.1.tar.bz2 in ubuntu 10.04/Linux|Installing firefox in linux|Installing latest version of firefox in linux/ubuntu|Installing firefox in ubuntu/linux

Installing firefox is much easier as it is available precompiled archived in .tar.bz2,you don't have to compile and then install it,you just have to download and extract it and run the executable file named as firefox and firefox will be opened for you. Below I have given a simple method to install the latest version of firefox in linux as follows:

1. Download the firefox from http://www.mozilla.org/en-US/firefox/fx.

2. Extract the file using terminal by typing command [tar -xvjf firefox-10.0.1.tar.bz2]. This will extract the contents in the current directory.

3. First method:Now right click on desktop and click on create a launcher and fill the 'type' as 'application',fill in the name as you want,In the command text box browse the path to the firefox file which is in the extracted file and then click on 'ok'. Now click on firefox and your firefox will launch.
     
   Second Method:  Reach to the firefox-10.0.1 directory which is made after
extracting and then type in terminal[./firefox]. This will launch firefox from current directory.
 



Wednesday, February 8, 2012

How to install .bin file in ubuntu linux using terminal

Most of the developments kit are archived in .bin format which are ready to install binary files you just have to make them executable and your OS will interpret them. For example Real player/Adobe reader/Java is available in .bin format.To install proper .bin files proceed as follows and we are assuming the file name as file.bin:
1. Copy the file to Desktop.

2. Open the terminal and reach to desktop as follows:
    [cd Desktop]

3. Make the file executable using chmod,for more details use [man chmod]
    [sudo chmod +x file.bin].

4. [./file.bin]
5. Follow the instructions displayed on terminal.


ubuntuway.blogspot.com