Runlevels
0 - halt (Do NOT set initdefault to this)
1 - Single user mode
2 - Multiuser, without NFS (The same as 3, if you do not have networking)
3 - Full multiuser mode
4 - unused or Admin
5 - X11
6 - reboot (Do NOT set initdefault to this)
How to set the default run level 5
Open /etc/inittab to change your runlevel
On about line 18 you will see a line like the one shown below.id:3initdefault:Save file and exit
change it to 5 as below
id:5:initdefault: