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.

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…

 

 

Empty Ubuntu Trash From Command Line

Ubuntu has a trash can/recycle bin feature similar to windows. The difference with Ubuntu is that you can empty the trash from the command line.
First you need to open your terminal and type the following command

rm -rf ~/.Trash/*

Note : You probably have files there that can only be erased if you have root privileges.
So, try this code instead:
sudo rm -rf ~/.Trash/*

Enjoy Trashing.. 

🙂

Upgrade Ubuntu 7.10 to Ubuntu 8.0 LTS.

Ubuntu 8.04 LTS :Common name given to this release from the time of its early development was “Hardy Heron”.

 
Special Note: This is still a beta release. Do not install it on production machines. The final stable version will be released in April 2008 Coming Soon   .

If you want to know what are new features in this release check here
Upgrade from 7.10 to 8.04 LTS Beta :

Instructions :

Before you Start Upgrading your System You need to know the following Tips:-

  • This is still a beta release. Do not install it on production machines.
  • You need to make sure you have complete backup of your machine
  • Be sure that you have all updates applied to your current version of Ubuntu before you upgrade.

Now  First Press Alt-F2 and type update-manager --devel-release

Click on Run Now :

Starting Update Manager in Progress

Now you can see New Distribution release 8.04 is available for upgrade click on upgrade

This will show you Ubuntu 8.04 Hardy Heron Release notes click on upgrade

Now it will prompt for root password enter your root password click ok

Preparing for upgrade in progress

If you are using any third party sources in your /etc/apt/sources.list file it will be disabled at the time of upgrade process click close

If you have any unsupported libs installed in your machine you can see similar to the following screen click close

Starting the upgrade process window click on Start Upgrade

Downloading the new Packages in Progress


After downloading this will start the installation of packages if you have more than one display managers installed this will prompt you to choose your default display manager and click Forward

Installing Packages in Progress

Installing Packages in Progress in Terminal

If you have installed any applications this will prompt for you to restart the services with new libs click forward

Cleaning Up process in Progress

You need to restart the system to complete the Upgrade by clicking “Restart Now”

Testing Your Upgrade

You can check the ubuntu version installed using the following command

sudo lsb_release -a

Output Looks like below

Happy Ubuntuing

Driver-Free Car Runs Ubuntu Linux

carnegie-mellon-driver-less-car-uses-ubuntu-2.jpg

While not as sexy as the BMW Z4M or some of the other automobiles on display during CES, we had learned an interesting fact about the driver-less Carnegie Mellon vehicle: it runs Ubuntu. This Carnegie Mellon vehicle with sponsors such as Google, NetApp, and Intel, had won this year’s DARPA challenge. This automated vehicle uses a dozen Intel core 2 processors, but at the bottom of the software stack is Ubuntu 6.06 “Dapper Drake” Linux. Ubuntu 6.06 was chosen for being an LTS (Long Term Support) release. Perhaps next year’s vehicle will be running Ubuntu 8.04?

Read More 

K3b – The CD/DVD Kreator for Linux

K3b (KDE Burn Baby Burn) is a CD and DVD authoring application for the KDE desktop for Unix-like computer operating systems.It Can Also Be Used in Gnome. It provides a graphical user interface to perform most CD/DVD burning tasks like creating an Audio CD from a set of audio files or copying a CD/DVD (Images,Data etc), as well as more advanced tasks such as burning eMoviX CD/DVDs. It can also perform direct disc-to-disc copies. The program has many default settings which can be customized by more experienced users. The actual disc recording in K3b is done by the command line utilities cdrecord or wodim, cdrdao, and growisofs. As of version 1.0, K3b features a built-in DVD ripper.

After Installing K3b :

Features :

Just left-click one of your devices in the device and file tree and see what happens. K3b opens a specific window based on the media’s contents. For an audio CD for example you will be given a list of the tracks with the possibility to rip these tracks to any format supported by K3b (like mp3 or Ogg-Vorbis).

…that K3b lets you choose media instead of devices for burning. So if you want to burn to a certain medium simply insert it and wait for K3b to detect it. It will then appear as your burning medium ,there are many features of this wonderful software which i can’t explain one by one.

k3b.jpg

Click the screen shot to enlarge

Source Codes are Available.

Binary Packages are Available For Linux Users using :-

ArchLinux

ArkLinux

Debian
Fedora

Kubuntu or ubuntu

Mandriva

Slackware
Suse

CCux

PC-BSD

*Freebsd package are also available.

Download K3B From Here

*You can Also Make The Donations Here

Happy DiscWriting.

🙂


How to Windows Combined or Unite With Linux.

Virtualization programs, such as those from VMware, bring you closer to the more ideal solution of using both systems at once, but one is always the host and one is always the guest, shown inside a window. But by combining VMware Server with some free software, you can run Windows XP along with Linux, not inside a console window, but completely integrated into the Linux environment.

Required Applications :

1)VMware

2)rdesktop.

Check if rdesktop is Intalled or Not.

For Gnome or Kde :

Open ->Terminal

and Type the command :
rdesktop

If It Show You the Output.(it means rdesktop is Already installed,Other wise it throw an Error :bash command not Found)

First of All Get Serial No. of VMware by Filling the Form Below,it is Free of Charge and Never Expires :-

http://register.vmware.com/content/registration.html

Fill up the Form and You will receive the Serial Number Immediately after Clicking the Submit Button.

Note :->VMware Server Need Serial Number Between the Installation ,So You must copy it and Save it Before Starting VMware Installation.

VMware Installation :

If You r Debian/Ubuntu Users Open Your Synaptic Package Manager :->

System->Administration-> Synaptic Package Manager

Search for VMware-server and rdesktop and Install Them.

Or

If You Are Fedora/OpenSuse Users OPen the Default Package Manager (eg. Fedora Users Can Use Yumex and Suse Users Can Use Yast) Search For VMware-server ad rdesktop and Install Them.

VMware will Ask You for Serial Number Paste the Serial Number which You Have Copied Before,Now Proceed and Finish Installation.

Now Open VMware and Follow The Steps Below :-

  • Click Local Host->Now Click Connect.
  • select ‘Create a new virtual machine’
  • Select Typical and click Next.
  • => Next => Next => Select Windows Xp (or whatever Windows versions you want to install )
  • => Next => Enter a name and select a location for the Virtual Machine File (It contains the virtual harddisk, so it needs quite some space, Min.
  • 3 GB, but I would recommend 8+ GB )
  • => Next => Select Network type. Select NAT,Click Next,
  • => Next => Choose the size for the Virtual Disk.
  • => Next => Finish

It will Take Few Minutes to Create Virtual Machine ,When it is Created Follow the Steps Below.

Now we can start the newly made virtual machine and the install of Windows!

  • Start the virtual machine
  • Hopefully it detects your Windows install CD and will start the installation! If it won’t boot from the CD, stop the virtual machine and check/change the preferences for the virtual machine regarding the CD drive
  • Now Install WIndows To it,There is No Need To explain How to Install Windows.

Now Windows Will Start Automatically after Installation.

  1. Now Go to->Control Panel->Click the Switch to Classic View->Now Double Click On System Icon and Go to Remote Tab->Check The Box :-“Allow Users to Connect Remotely to This Computer”
  2. Now Go to-> Start -> Run and typing regedit. Search for HKEY_CURRENT_USER -> Software -> Microsoft -> Windows -> CurrentVersion -> Policies -> Explorer. Once there, right-click on the right panel and select New -> DWORD Value. Name it NoDesktop, then click on it and change the data value to 1. Close the Registry editor and restart Windows.
  3. Now Create a User Account.Go to Control Panel->Click user accounts icon ->Click On Create a New Account ->Give User name when Required->Create a Password and Close the User Account Window.
  4. Go to Control Panel->Click on Network Connections->Single Click The Local Area Connection Icon and in the Left Side ,You Will See the Ip Address, Note it Down somewhere because you will need it Later.
  5. Next, install SeamlessRDP from within your Windows virtual machine. Open Internet Explorer and Download Seamlessrdp.zip From Here. Create a directory under C:/ and Name it to seamlessrdp and Now Double Click The Downloaded Seamless Zip File .Copy the three files into the Newly Created directory seamlessrdp ( you’ll use seamlessrdpshell.exe later).
  6. Now install the VMWare tools. This will speed up your Windows responsiveness
  • Make sure your Windows Virtual Machine is Running and visable/selected. (Not in FullScreen)
  • Go to the VM menu (on the top in the VM Server Console)
  • Select Install VMWare Tools.
    This will start a installation wizard in your Windows Environment. Just install the stuff and you will have better mouse and system responsiveness.

CTRL + ALT will release the mousecursor from the virtual machine
CTRL + ALT in FullScreen mode will get you out of the FullScreen.

You can Suspend a running virtual machine. this way it will start very fast the next time you need it.
To have sound support, add a sound device in the virtual machine settings.

Now Just Log off Windows and Close the VMware Server window.

(Note :Don’t Shut Down Windows ,it will Remains Running in the Background ,after Closing the VMware Server Window) .

Finally :->

Create a Shortcut on your linux desktop :Right Click On Desktop->Create Launcher-> Name it whatever you like and in the Command Write the Following Text.

rdesktop -A -s ‘c:\seamless\seamlessrdpshell.exe c:\windows\explorer.exe’ windowipaddress -u windowusername -p windowspassword

Where windowipaddress is the Address Which You have Noted Earlier windowusername is the name of the user account ,which u have created earlier and windowspassword is the Password of the User Account ,like an example :

rdesktop -A -s ‘c:\seamlessrdp\seamlessrdpshell.exe c:\windows\explorer.exe’ 192.168.156.123 -u Puneet -p theking

That’s it

Now Double Click on The Shortcut .

🙂

Note :Make Sure Disable any Running Firewall in the Linux Machine.

Now Click on the Shortcut Icon on Linux Machine.

Voila ! After a few seconds, you should have the Windows XP menu bar at the bottom of the screen, and you should be able to launch any application you have installed. You’ve created the illusion that both operating systems are working on the same machine at the same time. Very cool.

This trick doesn’t work with just VMware virtual machines. It also works with Windows clients on your network and other virtual machine software. Simply install SeamlessRDP and configure Windows XP properly so that rdesktop can connect to it.

suduku.jpg

Click The Screen Shot to Enlarge.

freedom.jpg

Click The Screen Shot to Enlarge.
Important : Remember Everytime you Restart Your System,The Virtual Machine That Runs in Background will close,so You will have to open VMware Server Console and Start The Windows achine before You can connect to it through the Desktop Shortcut.

Enjoy Linux and Windows Together on One Desktop.

Regards.