How to Linux disable X Windows KDE during system boot

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

ADVERTISEMENTS

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

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
2 comments… add one
  • Bhanu May 1, 2009 @ 9:12

    Thanks.. the data was really helpful in installing my 9800GT.

  • someswararao Sep 12, 2012 @ 3:30

    why graphical interface is disabled in linux servers

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.