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:
# systemctl isolate graphical.target
# systemctl set-default graphical.target #it’ll setup the gdm boot startup
$ startx
Attachment: commands.txt
We do this for a living.
Kubernetes, DevOps and platform engineering, delivered in days — not another weekend lost to a stack trace.
Start a project →