Linux Disable X Window System

h‮:sptt‬//www.lautturi.com
Linux Disable X Window System

To disable the X Window System in Linux, you can follow these steps:

  1. Boot into single-user mode: This will allow you to boot the system with only a minimal set of services running, including the init system and a command-line interface. To do this, you will need to interrupt the boot process at the appropriate time and enter the appropriate boot command. The exact steps will depend on your distribution and bootloader.

  2. Edit the inittab file: The inittab file is used to specify how the init system should behave. To disable the X Window System, you can change the default runlevel from "5" to "3" by editing the inittab file. For example:

# id:5:initdefault:
id:3:initdefault:

This will prevent the X Window System from starting at boot time.

  1. Reboot the system: After making the above change, reboot the system to apply the change. The system will boot into a command-line interface instead of the X Window System.

Note: Disabling the X Window System will prevent you from using a graphical user interface on your system. You will need to use the command-line interface to perform tasks. If you want to use the X Window System again, you can edit the inittab file and change the runlevel back to "5".

Created Time:2017-10-29 22:08:53  Author:lautturi