• Contact Us
  • Home
  • Installation

Enable/Disable GUI from Server Install

Written by Maryanne Normann

Updated at July 27th, 2024

  • Quick Start
  • Installation
    Best Practices Configuration Troubleshooting Design Performance Platform
  • Maintenance
    Releases Upgrade
  • Reference
+ More

Table of Contents

CENTOS 6 OR OLDER CENTOS 7

Date: 11-11-2015

CENTOS 6 OR OLDER

  1. Edit inittab
 sudo vi /etc/inittab 
  1. Add/Change "5" to "3" in the following line at end:
 id:5:initdefault: 

becomes:

 id:3:initdefault: 
  1. Reboot
  2. Log in with text mode

NOTE: The system will just operate purely in CLI mode. If you should ever want to temporally use a GUI you can invoke one with a startx command. NOTE: 5 = Runlevel 5, 3 = Runlevel 3

CENTOS 7

From terminal enter the following to turn GUI off:

    systemctl set-default multi-user.target 
    multi-user.target = runlevel 3 

or ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

From terminal enter the following to turn GUI on:

    systemctl set-default graphical.target 
    graphical.target = runlevel 5 

or ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

Copyright © 2020-2024 Symas Corporation. All rights reserved.
interface toggle

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Installing Apache Directory Studio
  • Customizing solserver for OpenLDAP 2.4
  • Add EPEL Repository to CentOS
  • Installing Symas OpenLDAP from RPM Packages Locally
  • Symas Blog RSS Feed
  • Symas on Facebook
  • Symas on Twitter
  • Symas Blog
  • Symas on LinkedIn
  • Symas YouTube Channel

Copyright © 2023, Symas Corporation. All rights reserved. Privacy Statement (updated July 31, 2023)

Phone:

Main Office: +1.650.963.7601
Fax: +1.650.390.6284

Email:

Sales: sales@symas.com
Support: support@symas.com

Office Hours:

8:00 AM - 5:00 PM ET

Office Location:

Symas Corporation
PO Box 391
Grand Junction, CO 81507 USA

Expand