Change default runlevel in CentOS 8 / RHEL 8


Centos 8 is just released days, the world is full busy to download create his own test lab based on Redhat System, Let me remember you again that Centos is not really a desktop Linux version that you can enjoy the latest graphic drivers and games. otherwise is taking the leadership o OS servers.

Let me explain in this tutorials how to switch between run levels in Centos 8/ Redhat 8. i try to do that in 2 Ways.

WAY 1:

First List all run levels called also targets

# systemctl list-units --type=target

Display my running runlevel

systemctl get-default

as you can see I’m now in Graphical mode

Change default to old name called runlevel 3 (TEXT MODE!)

# systemctl set-default

Check again the default Run level to boot with in the next reboot

# systemctl get-default

Now you can reboot


WAY 2:

How to set Multiusertarget in Centos 8 /Redhat 8 ?

What we did above we can do it with the following easy commands.

#rm '/etc/systemd/system/'
#ln -s '/usr/lib/systemd/system/' '/etc/systemd/system/'

Check the running target

#systemctl get-default

To back to Graphical mode ( Graphical target)

#rm '/etc/systemd/system/'
#ln -s '/usr/lib/systemd/system/' '/etc/systemd/system/'


#systemctl set-default

Reboot to back to Graphical mode

Thank you .Please share ..


Please enter your comment!
Please enter your name here