18.8.06

Disabling Gnome/KDE in RedHat startup

Here is something that I consider FAQ but never remember how to do it after installing RedHat Linux.
How to disable graphical desktop in server startup? This is to conserve system resourses when server is used only remotely e.g. SSH.

su -
vi /etc/inittab

Look for a line like this: id:5:initdefault:

This line specifies default runlevel on boot.
Default runlevel. The runlevels used by RHS are:
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
5 - X11
6 - reboot (Do NOT set initdefault to this)

Change the 5 in the quote above to a 3. Save and reboot.