In the following article you will learn how to disable GUI on boot in Ubuntu 20.04 Focal Fossa Linux Desktop.

In this tutorial you will learn:
  • How to disable GUI on boot
  • How to enable GUI on boot
  • How to how to start GUI from command line
Disable GUI on boot in Ubuntu 20.04 Focal Fossa Linux Desktop
Disable GUI on boot in Ubuntu 20.04 Focal Fossa Linux Desktop

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

How to disable GUI on boot in Ubuntu 20.04 step by step instructions


SUBSCRIBE TO NEWSLETTER
Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


  1. The following command will disable GUI on boot hence upon the reboot the system will boot into multi user target:
    $ sudo systemctl set-default multi-user
    
  2. Reboot or log out from a current session to exit GUI:
    $ gnome-session-quit
    

How to enable GUI to start on boot

Given that you have installed GUI on your Ubuntu 20.04 Server/Desktop you can enable the system to start to GUI by execution of the following command:
$ sudo systemctl set-default graphical

Start GUI manually from a command line

For a GNOME GUI installations using GDM as a default display manager you can start GUI from a command line by executing the bellow command:
$ sudo systemctl start gdm3
FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions