Wednesday, December 29, 2004

Booting multiple Linux distros

Some of you may use dual booting system to boot Linux and Windows on the same computer. However there are some people who would like to have more than one Linux distro in their pcs and want them to be choosed during system bootup. For the above purpose you may use Grub installer come as default boot manager with many distros. Once you have grub as your default boot loader all you have to do it edit the menu.lst according to your wish. You can find the menu.lst in /boot/grub/ folder.


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

title SuSE Linux 91
kernel (hd1,4)/boot/vmlinuz root=/dev/hdb5 vga=0x317 splash=silent desktop resume=/dev/hda6 showopts
initrd (hd1,4)/boot/initrd

title SuSE Linux 91 Failsafe
kernel (hd1,4)/boot/vmlinuz root=/dev/hdb5 showopts ide=nodma apm=off acpi=off vga=normal noresume nosmp noapic maxcpus=0 3
initrd (hd1,4)/boot/initrd

title SuSE Linux 90
kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 vga=0x317 splash=silent desktop hdc=ide-scsi hdclun=0 hdg=ide-scsi hdglun=0 showopts
initrd (hd0,6)/boot/initrd

title SuSE Linux 90 Failsafe
kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 showopts ide=nodma apm=off acpi=off vga=normal nosmp noapic maxcpus=0 3
initrd (hd0,6)/boot/initrd

title Ubuntu
root (hd0,7)
kernel /boot/vmlinuz- root=/dev/hda8 ro quiet splash
initrd /boot/initrd.img-

title Ubuntu(recovery mode)
root (hd0,7)
kernel /boot/vmlinuz- root=/dev/hda8 ro single
initrd /boot/initrd.img-

title Debian
root (hd1,6)
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hdb7 ro
initrd /boot/initrd.img-2.4.27-1-386

title Debian(recovery mode)
root (hd1,6)
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hdb7 ro single
initrd /boot/initrd.img-2.4.27-1-386

Lets take one entry and analyse it in detail.
title Ubuntu #Here you can name the corresponding distro anyway you like#
root (hd0,7) #This indicates that the root partition of the corresponding system is located in the first harddrive-hd0(second harddrive would be hd1)#
kernel /boot/vmlinuz- root=/dev/hda8 ro quiet splash #Here you should specify the path to the kernel.#
initrd /boot/initrd.img- # Finally you should also specify the path to the image file which will appear during booting. In most cases both the kernel and the image are located in the same directory(/boot/)

To edit your menu.lst file you can follow the following instruction(work under KDE environment).
Press "Alt + F2".
Type "kdesu gedit".
Then Open the "menu.lst" file.
Edit the entries according to your sytem.
Save the file and close qedit.


Have fun!

Friday, December 10, 2004

Run a simple c++ program in suse 9.1

First you should install gcc-c++ compiler which is available in suse instalation cds.

1. Type the following lines on your favourite editer and save it as

using namespace std;
int main()
cout << "Hello World !"; cout << "\n"; return 0; } 2. Goto the file location using cd cd /home/linux 3. Type the following commands and press enter. linux@linux:~>g++ -o hello


If you have done it correctly you would see the following lines on your shell.
Hello World !

Have fun!

Run a simple java program in SuSE 9.1


To display simple text message for example "Hello World!", you can follow the below mentioned steps.

First you need a java editer. If you don't have a one you can install jedit from the installation CDs. Once you are ready with that type "jedit" in your favourite shell and press enter.


The above commad will open jedit. Now you can type-in the following lines in a new file and save it as "".

/* This is a simple Java program.
Call this file
class HelloWorld {
public static void main(String[])
System.out.println("Hello World");

Now goto the directory where the file is saved using cd command.

eg.: >cd /home/linux

>java HelloWorld

If you did everything correctly you would see the following line on your shell.
Hello World

Good luck!


Sunday, December 05, 2004

My favourite Linux site

If there is a website I visit more than once a day it is nothing other than this.

Linux News

Here you will find loads of links to Linux Sites.

Setting up GRUB Boot Loader

If you want to boot more than one operation system GRUB is one of the easiest boot loaders. Although this is published by suse I think it could be helpful for any Linux User.

Custormize your desktop

This post is only in German. However the guidelines are quite easy to follow. Enjoy!

Guide for setting up Apache, PHP and MySQL under SuSE

I have tried with both suse 9.0 and 9.1 and it works fine. You can find lot of useful information in link 1 and link 2 (they are pretty much the same). However some of you may find some hiccups with PhpMyAdmin, if you have already installed it. Then you should follow these instructions.

If you want further information using PHP and MySql checkout the link 3 and link 4. They are quite descriptive. However you should be aware that link3 was written for Redhat and Mandrake, so you should be careful adapting it to your own Distro.

Linux Guide

Hi All,

Here you will find loads of information about linux. To begin with I will be adding many interesting articles I have found on the net. In addition I will also publish my own guides on various matters specially relevant for SuSE Linux users. I hope it will help you to setup your distro much easily and will have fun with it. If you have any suggesions or more information on relevant matters do not hesitate to write me.

Have Fun