Run gnome - command
Matthew Harrington
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.
33 Answers
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.
In terminal do:
gdm
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:
To start Gnome:
systemctl start gdm3To restart Gnome:
systemctl restart gdm3To stop Gnome:
systemctl stop gdm3