Microsoft Compiled HTML Help (.chm) is a Microsoft proprietary online help format. It was introduced as the successor to Microsoft WinHelp with the release of Windows 98, and is still supported in Windows 7. [..]
Now since it is a proprietary format, so Linux does not have any (none that i am aware of) applications which support this format. So it is required to first convert it into the .pdf format to make it readable in Linux.
Converting a .chm file to a .pdf file is a very simple process.
#sudo apt-get install libchm-bin
Extract .html files out of .chm file
#extract_chmLib book.chm dirname
– – – – – >##book.chm = name of the .chm file.
– – – – – > ##dirname = name of the directory where you want .htmls to be extracted.
#sudo apt-get install htmldoc
Convert .htmls to .pdf using htmldoc
Add all the extracted .htmls into htmldoc and convert it to .pdf.
For a long time now I have been using Ubuntu 11.04 (with Unity) as my primary OS. I like to listen to music and I use Audacious as my default audio media player whose official website is here, but the website is not informative so you can find more information about it here on wikipedia.
One issue in Unity is that drag and drop is not easy (or maybe it is!!! in the stable release. but since am using alpha release it doesn’t really work for me). So whenever I want to listen to songs and want to add them to my Audacious playlist I have to do a lot of minimizing and maximizing. I was an Windows user so I always used Winamp on windows, which by the way allows to add songs into the playlist just by right clicking on them. I always wanted this feature on Linux. But no software supported this.
So I decided to take issues in my own hands. I found a script about adding the menu item when you right click on a file. And I used it to execute a script which adds that file to the current playlist in Audacious :).
Here’s the steps to get your own custom “Add to Playlist” menu item in Nautilus :
First of all move to the following folder
Then create a file in this folder and name the file whatever you want your menu item to be
#touch “Add to Playlist”
Add the execute permission for this file
#chmod +x “Add to Playlist”
Edit this file and add the following code in this file
## Sushant Bhosale <email@example.com>
## The code is Free and Open Source
IFS=$’\n’ ##IFS(Internal Field Separator), Google for more info.
for FILENAME in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
audacious2 -e “$FILENAME”
Save and enjoy!!!
Add To Playlist