How to Linux disable X Windows KDE during system boot

by Vivek Gite [Last updated: September 6, 2006]

Q. How can I configure my system to disable X Windows KDE during Linux system coming up / booting up?

A. Usually almost all Linux distribution use following runlevels for text and GUI mode:

=> Runlevel - 2/3 : Text mode
=> Runlevel - 5 : GUI mode

These modes are defined in /etc/inittab file.

Open file /etc/inittab
# vi /etc/inittab

Find out entry that read as follows:
id:5:initdefault:

Set the default runlevel to 3 (text mode)
id:3:initdefault:

Save and close the file

Reboot the system
# reboot

Now you will boot into text mode only. If you want to see GUI (KDE desktop) type the following command:
$ startx

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: Howto: Linux see new fiber channel attached disk LUNs without rebooting

Next post: Linux define the runlevel and determine which runlevel my system is currently in