Thursday, August 16, 2007

"Hello World" in Linux

I am going to write a very basic HowTo for those who are willing to use Linux. I assume you already know and use Windoze XP/98. Though I cannot guarantee that every concept in Linux will relate to that in windows analogically. There can be many new commands, procedures to be followed and concepts, while learning Linux for the first time.
So here it goes
---------------------------------------------------------
First of all allocate some space for installing Linux on your hard disk. You may use this tool to resize you partition, make some free space(say 10GB) and use that free space for Linux. Discussing how to partition your hard disk is out of scope, just make some free space in your extended partition by resizing logical drives. Then you will create SWAP partition(logical) in that space which will be typically of double the size of you RAM( If your RAM is 256MB, keep your SWAP 512MB approx.) Next you will create EXT3 partition(logical) of size around 9GB(10GB-512MB). Now thats done, partitioning part is over.

Its time to decide which Linux flavor you wish to install. For the first timers, Ubuntu(Kubuntu/Xubuntu) is recommended. Though you are free to try any other flavors listed below:
Fedora
Vector
Slackware ( ~ - ^ )
Debian

Download ISO image and burn it to CD/DVD. If you have very less bandwidth or limited download you can give me blank CD and I will return it to you with one of the flavors of your choice (currently I have slackware12DVD, Debian3.1CDs, Ubuntu7.04Cd, VectorLinux5.8SOHO CD etc)

Now its time to boot your install CD. Put it in drive, enable CD booting in BIOS settings and set priority to CD before your hard disk. Reboot, the CD will load its default kernel. At the boot prompt(if any) hit Enter.

Later part varies according to the flavor. In slackware installation is very straightforward if you have done partitioning beforehand. I will discuss the ubuntu method here. Most probably you will have Ubuntu Live CD, where you will get a nice GUI after booting. Click on Install icon on dektop. And just folllow the procedure. Its very simple. But at one point, it will ask about partitioning, select the option which says 'Manually set the partitioning'. Then you can assign the SWAP system on SWAP partition and the ROOT filesystem on the EXT3 partition you've just created. When the installation is complete you will probably reboot your pc and then Grub will appear on you screen. Grub is a bootloader, used for multi-booting with different OSs. Now you will have a complete Linux system with you, and surely you can play with it.

Try following tutorials for getting started with Linux,

http://www.linuxrsp.ru/win-lin-soft/table-eng.html
http://www.debianhelp.co.uk/commands.htm
http://www.reallylinux.com/docs/basic.shtml
http://rkrishna.tp.googlepages.com/slackerbasics
http://www.tuxfiles.org/linuxhelp/cli.html

After spending one week on command line[;-) seems adventurous] , you may like to check the GUI. For that try KDE, Gnome, XFCE and fluxbox ...

I am planning to write a short tutorial on compiling C programs under Linux.

1 comment:

Unknown said...

Hi...just came across your blog while googling for how to create pacenet dialer in fedora Core 9...want to get a taste of slackware OS...how and where do i get the blank cd to you...i live in kalyan west...my name is Lenny