Installing LAMP Stack in Ubuntu

Hai friends. Lets Setup the LAMP-Linux Apache MySql and PHP in Ubuntu Linux 🙂

First of all Install Ubuntu Linux in the Machine you wish to Install the LAMP Stack.

Step1: Hey Step 1 in setting LAMP Stack is installing a Linux Distro and by now you might have completed the  first step 🙂

Considering the installation as a fresh one.

First update the distro for that open a terminal and give the following commands :

$sudo apt-get update

The above command will fetch the softwares list from the Ubuntu repositories.


$sudo apt-get upgrade

The above command will update your Ubuntu OS to date.


The Second step is to install APACHE WEB SERVER. for that :

$sudo apt-get install apache2

this will install apache server on your machine

You can control apache using

$sudo service apache2 start/stop/restart


The next step is MYSQL DATABASE SERVER for that:

$sudo apt-get install mysql-server mysql-client

while installing the server it will prompt for a password for mysql server. Enter is twice and continue.

You can control mysql server by

$sudo service mysql start/stop/restart

Here you can install mysql-gui-tools-common which will give you



which will be of great help 🙂


Now the last step is to install php.

$sudo apt-get install php5

and everything is done. 🙂

Now goto /var/www and create a test.php




and open a browser and navigate to http://localhost/test.php

it shows the phpinfo page and the LAMP Stack is Ready 🙂

Ubuntu Karmic Koala- Xsplash Themes

As you all know that Ubuntu has introduced the Xsplash [New set of Boot screens] from the version 9.10 the Karmic Koala.This Post explains how you can configure the boot screen(as the default one is the most ugly you can find 😦 ).

1.Get some cool xsplash themes from

Here are some of the xsplash themes i have found in

2. Now for namesake lets just backup the default xsplash[even though you will never look back for it] by the following method.

a. Open Terminal

$gksudo nautilus /usr/share/images/xsplash

now you can see some image files.Just select all of them and cut it and paste it somehwere SAFE 🙂

b.Now extract the theme file(as it will be available in .tar.gz format. Copy all the files found after extracting to /usr/share/images/xsplash.

Thats all…Now to check xsplah just open a terminal and give

$sudo xsplash

and you can enjoy your new xsplash screen without rebooting. 🙂 Enjoy 🙂

Grub-Gfxboot-Ubuntu Jaunty Jackalop

Hai Friends here we are going to see about Grub-Gfxboot which will enable us to set themes for Grub like the OpenSuse.

I am trying to make the explanation very simple.Pls comment on the Style of explanation so that i can bring necesary changes in the coming posts:



First of all Get the Latest Version of Grub-gfxbot from the following link:

Note:One thing to be careful of is to use the latest gfxboot package; Intrepid n Jaunty now formats its ext3 partitions with an inode size of 256 bytes, whereas previous versions of Ubuntu used 128 byte inode sizes. If you try to use an older version of Grub to boot an Intrepid partition, Grub will choke and spit out a Grub error 2.


Now we should Install the Package,Before that the package ‘grub’ should be removed.

Open a terminal and issue the following commands:

$sudo apt-get remove grub

Give the root password if asked.This will remove the package grub

Now to install the gfxboot package:

$sudo dpkg -i grub-gfxboot_0.97-43_i386.deb

The filename may varry.Now the package is installed

Grub Themes:

Now get some cool themes from the web.Just google and you will get plenty of themes.

Note:Remember that some themes produce an ‘Invalid file format’ error which is because the theme is supported by older versions.

One pretty theme can be downloaded from the following link:


First of all move the theme files to the directory:/boot/grub/

As the directory is readonly you should use command to move the themes to the /boot/grub/ directory.

  • Command mode:

$sudo cp <source path of theme> /boot/grub

This will move the themes to the /boot/grub directory

  • Graphical Mode:

$gksudo nautilus /boot/grub

This will open the /boot/grub directory in a file browser and just drag the themes to the directory

Editing Configuration File

We should add an entry to the /boot/grub/menu.lst file about the theme:

First Lets Backup the file:

$sudo cp /boot/grub/menu.lst   /boot/grub/menu.lst_backup

Editing the file

  • Using Terminal

$sudo nano /boot/grub/menu.lst

  • Graphical

$sudo gedit /boot/grub/menu.lst

Now add the following entry as the first line in the file

gfxmenu /boot/grub/<theme name>

eg: gfxmenu /boot/grub/message.suse

Configuring Grub:

Open Terminal:

$sudo grub

this will open the grub prompt:

now issue the following commands

grub>find /boot/grub/stage1

this will create an output like (hdx,y) ,where x and y will varry depending on your harddisk.

grub>root   (hdx,y)

grub>setup   (hdx)

remember there is space between root (hdx,y) and setup (hdx)

Installing Grub to MBR:

$sudo grub-install /dev/sda

Caution:The above command is issued by assuming the that the grub is to be installed to the MBR of first HDD.Here /dev/sda may be changed to /dev/hda for IDE drives.


Now Just Reboot Your System n Enjoy the Grub Theme.