7

I just installed some packages and after restart GUI won't show. I can login in terminal but I need command to start Gnome or better let it start automatically.

3 Answers3

4

Edit: What you're looking for is called a "Display Manager".

I will leave my old answer for posterity, but it has flaws and is not good advice.


The startx command will start up the X server (Base GUI component of Ubuntu), or will probably give you a specific error message as to why it's not starting up.

If you're left at the command line after each reboot, but are able to get to your desktop using startx, you can create a text file called ".bash_profile" in your home directory. Add startx to that file, and it should be executed every time you log in.

Windigo
  • 1,167
3

If you want GNOME to start automatically, try installing gdm. GDM is the default X display manager (which provides the login screen, and launches GNOME on login), and it should automatically start on boot.

You can use these 3 commands:

  1. To start Gnome:

    systemctl start gdm3
    
  2. To restart Gnome:

    systemctl restart gdm3
    
  3. To stop Gnome:

    systemctl stop gdm3
    
1

In terminal do:

gdm