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.

How to Burn Mp3 Audio with K3B Cd/Dvd Burning Tool.

Today, I stucked ,when i was trying to Burn mp3 audio cd with K3B Cd/Dvd Burning Tool,But As far as I was Concerned, K3B is the Most Powerful Cd/Dvd burning Tool for Linux Users.Actually Mp3 plugin is not included by default in k3b so i was not able to write the disc ,and this makes me somewhere trouble ,Then i Got libk3b2-mp3 ,mpeglib works fine with K3b and now i am able to write mp3 files s in K3B GUI CD/Dvd Burning Tool in Linux.

Fedora(Yumex Preferred) ,Suse(Yast),Ubuntu(Synaptic) and Others.Select and Mark the Following Two Packages For Installation.k3b.jpg

1)libk3b2-mp3

2)mpeglib

For ubuntu Users  the  Procedure is :

Open Synaptic Package Manager .

Search for mpeglib and Mark for Installation.

Now Search for libk3b2-mp3 and Mark for the Installation.

Now Click on Apply.

Now You r Done.

Open K3b Select Make a New Ausio cd Project Option .

Now Select any mp3’s One By One ,And Click On Burn that’s it.

Enjoy Mp3 Burning.


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.

Dual Boot openSUSE and Windows.

Let us Take 80 GB of HardDrive.

1)Boot From Windows cd ,MakeUpto Two Ntfs Partitions Say 20 Gb For C:/ and 20 Gb for D:/ and Rest Remains Free.

You can Make 1 Partition For Windows.

2)There is a Step Including in The Dvd Installation of openSUSE Which Will Show You The Other Operating Systems in The Installation itself .

3)Now Install openSUSE On The Free Partition .It Will Recoganize the Window Partition in Between Will Show the Partition Table Like Below (as per the Windows Installed):

Device              Label             MountPoint         Type             Format          Size

/dev/sda

/dev/sda1                                                             ntfs                                      20003

/dev/sda2                                                      Extended                                    56306

/dev/sda5                                                             ntfs                                      20003

Free                                                             FreeSpace                                  39252

Now Above 20003 First Partition is Your Windows Partition(ntfs) and Other 20003 Partition is Your D:/ Partition(ntfs) and Now Click On Free and Make The Partition Like Below :

Device                 Label                     Mount Point                     Type                      Format             Size

/dev/sda

/dev/sda1                                                                                         ntfs                                              20003

/dev/sda2                                                                                   Extended                                           56306

/dev/sda5                                                                                         ntfs                                              20003

/dev/sda6                                                /boot                                 ext3                         yes               1028

/dev/sda7                                                /swap                               ext3                         yes                 1028

/dev/sda8                                                /                                       ext3                         yes                 20000

/dev/sda9                                             /home                                 ext3                          yes                 17188

Freespace                                                                                                                                             8mb

Here at the Above Partition The Space I Have Allocated is :

/boot Partition is Of 1 Gb Nearly (You Can Give 512 Mb )

/swap Partition is Of 1 Gb Nearly(You Can Give 512 Mb)

/ is the Root Partition Holding All The Installed Softwares ,Files etc (You Can Give this space as Per Your Requirement Minimum of 9 Gb if You are Installing Both KDE And Gnome Enviroments)

/home is The Home Partition ,it is Holding Your Documents,Music Files etc (IT Should Be Large For Storing Documents And Music etc)

If Windows Operating is Not Showing Up at the Booting Screen.

Just Follow The Steps Below

Boot Into openSUSE :-

Now Care fully Follow steps below:-

Right Click on Desktop ->Open Terminal

vi /boot/grub/menu.lst

or

gedit /boot/grub/menu.lst

At the end write this (if the lines below already exists skip the steps):-

title Windows XP
root (hd0,1)
chainloader +1

Now Save the file and Exit.

hd0 Refers To Your First Hard Drive and 1 Refers To Your Partition No. Where The Windows Installed(like sda1).

(hd0,1) can be Different as Per the Windows Installed.

Restart Your System Now You have the Options to switch to Windows and openSuse.

grub1.jpg

Happy Dual Booting.

🙂

How to Enable Fedora Repo.

All Repositories are Stored in /etc/yum.repos.d folder. Either set enabled value to 1 in .repo file of repository OR use enablerepo option with yum.

Code:
yum --enablerepo=<repo_name> install <package>
Better Use Graphical Interface for this ,I Like Yumex the Most.
🙂

How to Kill/Close The Process in Linux.

Yesterday i was fed up :(,when i had closed vlc (video lan Player)on my linux ,but it still running in System Process…. and i don’t have any other way instead of logging off or shutting down and restart.

A lots of people likes to do kill -9, which means kill a process by force. By specified -9, process will be terminated by force, which is very fast and confirm kill but it leaves hidden side effects. Refers to Useless use of kill -9, kill a process by specified -9 may leave child processes of a parent orphaned, temporary files open, shared memory segments active, and sockets busy. This leaves the system in a messy state, and could lead to unanticipated and hard to debug problems.Application->System Tools->Terminal :

in the Terminal Type :

[puneet@localhost ~]$pkill vlc

It Solved my another Problem ,my vlc Becomes quite Understanding ,it exits whenever Commands :).

Definition: pkill: look up or signal processes based on name and other attributes.

Read More

Installing Tar Balls in Linux(tar.gz and tar.bz2)

Linux is Not Hard as it Sounds 🙂 ,It is Just awesome.

I have Given The Installation Procedure of The Softwares Which Comes With tar.gz and tar.bz2

I Have Taken an Example package_name.tar.gz or package_name.tar.bz2.

If have downloaded tar ball on my Desktop then Procedure Like Mention Below(u can take your directory where u download ur softwares) and i have taken puneet as a local host u can take ur username of ur local host .
[puneet@localhost ~]$ cd Desktop (go to the Directory where u downloaded the package)

[puneet@localhost Desktop]$ tar xvzf package_name.tar.gz (or tar xvjf package_name.tar.bz2)

As you can see, you use the tar command with the appropriate options (xvzf) for unpacking the tarball. If you have a package with tar.bz2 extension instead, you must tell tar that this isn’t a gzipped tar archive.You do so by using the j option instead of z, like this:

[puneet@localhost Desktop]$ tar xvjf package_name.tar.bz2

What happens after unpacking, depends on the package, but in most cases a directory with the package’s name is created. The newly created directory goes under the directory where you are right now. To be sure, you can give the ls command:

[puneet@localhost Desktop]$ ls

pkg pkg.tar.gz

It will Show The package is Created in the Directory.

No Go to The Package Directory,

[puneet@localhost Desktop]$ cd package_name

Read any documentation you find in this directory, like README or INSTALL files, before Proceeding!

Now After Getting in the Directory run the Command Below :

[puneet@localhost package_name]$ ./configure

When you run the Configure script, you don’t actually compile anything yet Configure just checks your system and assigns values for system-dependent variables.

If configure exited without errors, it’s time to move on to the next step.

[puneet@localhost package_name]$ make

This step may take some time, depending on how big the program is and how fast your computer is.

Now, the final step is to install the program. When doing this you must be root. If you’ve done things as a normal user, you can become root with the su command. It’ll ask you the root password and then you’re ready for the final step!

[puneet@localhost ~]$ su –

password : (type your root password)

Now go to the Location of the package.

[root@localhost ~]# cd /home/puneet/Desktop/package_name

Now we are in the Package Directory.

[root@localhost package_name] #

Now type the command below :

[root@localhost package_name] # make install

Congrats you’ve installed the software and you’re ready to run it!

but First you’d better get back your normal user privileges before you do something stupid.

[root@localhost package_name] # exit

When you ran make it created all sorts of files that were needed during the build process but are useless now and are just taking up disk space. This is why you’ll want to make clean:

[puneet@localhost package_name]$make clean.

Because in this example we didn’t change the behavior of the configure script, the program was installed in the default place. In many cases it’s /usr/local/bin. If /usr/local/bin (or whatever place your program was installed in) is already in your PATH, you can just run the program by typing its name only like i have did Below.

[puneet@localhost ~]programme_name

🙂

enjoy

Happy tarballing 🙂

Uninstalling

if u don’t need any programme it’s the time to uninstall it .

If you didn’t delete your Makefile, you may be able to remove the program by doing a make uninstall:

Just Follow the steps below :

[puneet@localhost ~]$ su –

password : (type your root password)

Now go to the Location of the package.

[root@localhost ~]# cd /home/puneet/Desktop/package_name

[root@localhost package_name]#make uninstall

🙂