How to Recover Lost Files from Hard Disk in Debian Lenny/Ubuntu Linux

Yes you heard it right.It is possible to recover files including lost audio, video, archive or pictures from your hard disk or cdrom.

Debian lenny has a data recovery software called photorec which helps in the data recovery.Photorec ignores the filesystem and goes after the underlying data, hence it is possible to recover data from filesystem that are severely damaged or formatted.

Missing Those Old DOS Games -Now Play in Debian/Ubuntu Linux

Missing those old DOS games, the likes of Aladdin, Mortal Combat, Metal Mutant etc. Debian Lenny / Ubuntu Linux has a package called DOSBOX which makes it possible to play DOS Games on Debian Lenny / Ubuntu Linux.

1) Type in apt-get install dosbox to install the package DOSBOX in Debian Lenny / Ubuntu

Extracting .rar Files in Linux/Debian

Debian lenny has a package named unrar which helps in extracting .rar files in Linux.After installing the package when i tried to unrar the .rar files it showed some errors as below:

Extracting from /media/b/pk--thumb/chapters.rar
Extracting chapters.doc Failed
1 Failed

Although i could'nt sort out the problem but here is an alternative to unrar .rar files in linux.I have tried it in Debian Lenny.

First download a package from http://www.rarlab.com/rar/rarlinux-3.9.2b1.tar.gz

Untar rarlinux using tar xvvf rarlinux-3.9.2b1.tar.gz

Now navigate to the rarlinux directory and type make as su

Now you are done to using unrar.To unrar a file navigate to the rarlinux directory and type

unrar e (target .rar file)

Now Posting Code On Blogger The Linux Way

Any type of code can be posted on the blogger using the package
source-highlight which is available in the Debian package dvd.
With the help of source-highlight quite easy to post a code.After installing source-highlight you just need to give the code file as parameter to source-highlight which creates a file.html file from which the html code can be copied and pasted into the blogger.It works fine.

#include<stdio.h>
main()
{
   printf("enter your name\n");
}

Installing sun-java6-jdk in Debian Lenny

While installing Eclipse for Android Application Development one of problems encountered was the installation of sun-java6-jdk that consumed a considerable amount of time.After a lot of googling, i came across the information that made the installation possible.
Sun-java6-jdk is not available in the Debian repository but it is available in the non-free Debian repository.So first of all edit the

/etc/apt/sources.list

and add the following to the sources.list

deb-src http://security.debian.org/ lenny/updates main non-free
deb http://security.debian.org/ lenny/updates main non-free
deb-src http://mirrors.kernel.org/debian/ lenny main non-free
deb http://mirrors.kernel.org/debian/ lenny main non-free

After adding the above links to the repository ,run

user@home:~$ apt-get update

Now its time to install the sun-java6-jdk so type in

user@home:~$ apt-get install sun-java6-jdk

And now the final step to set the path so that its available system wide

user@home:~$ update-java-alternatives -s java-6-sun
user@home:~$ echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' >> /etc/environment

Configuring 2 PCs via LAN in Debian Lenny

Consider 2 systems which are to be configured as system1 and system2.First of all install the packages openssh-server and openssl from the synaptic package manager in both the systems.
Now connect both the systems via LAN wire and wait until it shows connection established.Configure the I.P of both systems by the following command

@system1:~$ ifconfig eth0 192.168.1.1

similarly