View .chm Files Or Convert to html and pdf Under Linux

There are many computer books come with CHM format.

Gnochm is a CHM file viewer. It is designed to integrate nicely with Gnome. Gnochm has some really nice features for viewing chm files.

Installing Gnochm

sudo apt-get install gnochm

Simply click on the Applications menu in the Accessories section to start Gnochm and open your chm files.

How to Convert .chm ?

Under Linux, you can view a CHM file with the xchm viewer. But sometimes that’s 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.

Install Chmlib in Ubuntu

sudo apt-get install libchm-bin

Convert .chm files in to HTML files

If you want to convert .chm files in to HTML files use the following command

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.

Convert .chm files in to PDF files

First you need to install htmldoc. HTML processor that generates indexed HTML, PS, and PDF.HTMLDOC is a program for writing documentation in HTML and producing indexed HTML, PostScript, or PDF output (with tables of contents). It supports most HTML 3.2 and some HTML 4.0 syntax, as well as GIF, JPEG, and PNG images.

sudo apt-get install htmldoc

If you want to use htmldoc type the following command in terminal

htmldoc

Once it opens you should see similar to the following screen here you can choose the html file and convert them to pdf,ps

Happy Learning.

Advertisements

Permission Denied Can’t Empty Trash :Solution

Open Terminal :-

1)Graphical way :

Code:
gksudo nautilus ~/.local/share/Trash

2) Direct Way :

Code:
sudo rm -rf ~/.local/share/Trash/*

WARNING: THE COMMAND USED IN THE SECOND EXAMPLE IS EXTREMELY DANGEROUS IF USED INCORRECTLY!!

Running Java under Ubuntu

Java

Sun Microsystems have developed Java, which is many things depending on who you ask. It is a language, and an execution environment and probably many more things. On this page Java refers to the software that executes programs compiled to Java byte codes (akin to machine language).

Installation

In order to run Java programs and Java applets, you must have a Java environment installed. The GCJ flavor of Java is installed as default, and is usually fine for most purposes. You may, however, have a need to run the Sun flavor of Java if something does not work correctly.

To get Sun Java under Ubuntu 7.04 or later running on Intel or PowerPC platform, you should enable the Universe repository in Add/Remove programs, and install either the openjdk-6-jre package or the sun-java6-bin package. (Note: PowerPC version is slow).

To get Sun Java under Ubuntu 6.06 or 6.10 running on Intel x86 platform, you should enable the Universe repository in Add/Remove programs, and install the sun-java5-bin package.

Note: The same commands will work under Xubuntu/Kubuntu (using Add/Remove or the Adept Package Installer).

See JavaInstallation for details about installation of other flavors of Java.

Choosing the default Java to use

Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:

  • Open a Terminal window
  • Run sudo update-java-alternatives -l to see the current configuration and possibilities.
  • Run sudo update-java-alternatives -s XXXX to set the XXX java version as default. For Sun Java 6 this would be sudo update-java-alternatives -s java-6-sun
  • Run java -version to ensure that the correct version is being called.

You can also use the following command to interactively make the change;

  • Open a Terminal window
  • Run sudo update-alternatives --config java
  • Follow the onscreen prompt

Howto: Install Cairo Dock in Ubuntu

Cairo-Dock is an animated launch bar similar to SimDock or AWN. You can use it to launch applications and utilize small applets that live on the bar. It lacks some of the visual effects provided by AWN, but it my experience it runs a little faster.


This application is an continuation of the abandoned GNOME-Dock project. According to the Ubuntu Wiki:

Procedure For Installation :-

Add the repository to System->Administration->Software Sources->Third Party Software->Add:
deb http://repository.cairo-dock.org/ubuntu gutsy cairo-dock

Click Reload.
Click here to install if you have apt-url installed with firefox and you added the above repository or:
Open up synaptic:
System->Administration->Synaptic and search for cairo-dock and cairo-dock-plug-ins then click install.

Once Installed you can access Cairo Dock via Applications->System Tools->Cairo Dock
Cairo-Dock has an update function so you will not need a repository or need to download it again

Check here for more plugins and addons

Additonal Documentation is here

Have Fun !!

Regards Expand full post here…

Summary only…


checkFull(“post-” + “3064055308341756546”);

Make Ubuntu Look Like Fedora :Nodoka Theme

Upgraded nodoka engine to fedore core 9’s and added echo-icon-set from git .

  1. Install build-essential and libgtk2.0-dev packages:
    sudo apt-get install build-essential libgtk2.0-dev
  2. Download Nodoka GTK+ engine 0.6 from here
  3. dpkg -i gtk-nodoka-engine_0.6-1_i386.deb Install theme
  4. Get Nodoka theme 0.3.90 from here. Then execute command in terminal:
    tar zxvf nodoka-theme-gnome-0.3.90.tar.gz
  5. copy the Nodoka folder to themes folder:

    cd nodoka-theme-gnome-0.3.90/

    sudo cp -r Nodoka/ /usr/share/themes/
  6. Grab the echo icon set & install it
    wget http://ubuntu-debs.googlecode.com/files/echoicons.tar.gz
    tar zxvf echoicons.tar.gz
    sudo cp -R Echo /usr/share/icons/

    Use theme

    Click System → Preferences → Theme menu command. In Theme Preferences dialog, choose Nodoka item. Also click on the customize tab then click on icons and select “Echo”

Screen Shot

Regards

ubuntu-unleashed

Why I Quit Windows and Switched to Linux

t’s funny how some people react when I tell them I use Linux. Sometimes they express the sentiment that I must be very computer savvy. Other’s get caught up in all the brand loyalty hype and still some have never heard of Linux! I kid you not! ;) The truth of the matter is that I switched partly because Windows no longer offered me any challenges and reliability became an issue.spacer_gif Why I Quit Windows and Switched to Linux The most common question I get asked whenever I present a public speaking seminar is “Why did you switch to Linux?”Well… for all those who asked, here’s the long winded answer.spacer_gif Why I Quit Windows and Switched to Linux

FUll story

KDE 4.0 in Ubuntu 7.10 Gutsy Gibbon

KDE or the K desktop Environment consists of a set of simple and easy to use desktop interface and application for the UNIX system. It is also one of the popular desktop environment in most Linux distribution. The new release KDE 4.0 features many new improvements and added a brand new user interface, including new icons, window border, navigation structure (K menu) and new games.

kde 4


Source code for the new KDE 4 can be found at http://www.kde.org

For Ubuntu Gutsy users who wants to try out KDE 4, you can install KDE 4.0 side by side with GNOME.

First, add the KDE repository to the sources.list.

Open up a terminal (Applications -> Accessories -> Terminal). Type

sudo gedit /etc/apt/sources.list

Add the following line to the end of the file and save it.

deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy main

Back in the terminal, type,

sudo apt-get update

 

If you have installed any previous version of KDE4.0, you have to remove it first.

In your terminal,

sudo apt-get autoremove kdelibs5 kde4base-data kde4libs-data

Once done, type

sudo apt-get install kde4-core

It will now retrieve over 100MB of file, so you might want to go for a coffee break.

After downloading and installation has finished, log out of the GNOME desktop. Under the Session, choose KDE 4. Login. You should have the KDE 4 working in your desktop now.

Happy Kubutuing…