Thursday, April 21, 2016

Disabling the GUI login mode of Redhat or CentOS servers

For disabling the GUI login mode, do the following steps
Open the terminal and do the following commands as root user or sudo user.
Edit /etc/inittab, enter:

# nano /etc/inittab
Find:
id:5:initdefault:
Replace with:
id:3:initdefault:
Save and close the file.
For stopping the currently running GUI session:
# init 3
To get back into the GUI mode temporarily, type the following in the terminal.
# init 5

0 comments:

Post a Comment