About amalgjose
I am an Electrical Engineer by qualification, now I am working as a Software Engineer. I am very much interested in Electrical, Electronics, Mechanical and now in Software fields. I like exploring things in these fields. I like travelling, long drives and very much addicted to music.

6 Responses to Disabling the GUI login mode of Redhat or CentOS servers

  1. Niranjan says:

    can we do this without changing inittab file editing

    • amalgjose says:

      Yea… it is possible. Removing the corresponding module is another way. But the problem with removal is , if we need it after sometime, then we need to install it again.
      Inittab editing is just disabling the UI only, not removing.
      If it is required, we can load it also.

  2. Mart says:

    Doesn’t work anymore, now it is “systemctl get-target” to see default and “systemctl set-target” to switch GUI off (old init 3) or “systemctl set-target” (old inti 5).

  3. romka says:

    On RHEL 7 type – [systemctl set-default] without brackets for non GUI RHEL 7

  4. ebadmail says:

    For Centos 7 & it’s “systemctl get-default” To see the default parameters.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: