Forum breadcrumbs – You are here:Tracston Community Forum – DevOps, Micro Services, Cloud, Infrastructure, Development, Monitoring and more…System: LinuxEnable / Disable GUI in CentOS / …
You need to log in to create posts and topics.
Enable / Disable GUI in CentOS / Redhat / Rocky Linux
moshe@moshe
#1 · 01/06/2022, 10:55 pm
Quote from moshe on 01/06/2022, 10:55 pmProblem
User wants to disable / enable the GUI in CentOS / Redhat / Rocky Linux
Solution
Disable:
# systemctl set-default multi-user.target
# systemctl isolate multi-user.targetLogout all active graphical sessions ‘systemctl isolate multi-user.target’
Enable:
# systemctl isolate graphical.target
# systemctl set-default graphical.target #it’ll setup the gdm boot startup
$ startx
Problem
User wants to disable / enable the GUI in CentOS / Redhat / Rocky Linux
Solution
Disable:
# systemctl set-default multi-user.target
# systemctl isolate multi-user.target
Logout all active graphical sessions ‘systemctl isolate multi-user.target’
Enable:
Uploaded files:# systemctl isolate graphical.target
# systemctl set-default graphical.target #it’ll setup the gdm boot startup
$ startx
Click for thumbs down.0Click for thumbs up.0