Why am I not given a GUI after installing ubuntu-desktop in Ubuntu Server?
11,831
As some other commenters already noted, it seems that your X is not running. So you have different choices to make:
- Boot your computer.
- Login at the prompt. You can use your username and password like at the graphical login.
- Now there are different ways to go:
- Just type
startx
at the prompt. After some seconds the graphical screen will appear. You can use it like you are used to. After you log out, you will see the old prompt again. Also after your next reboot the system will show you the non-graphic prompt. - You can also run
sudo service lightdm start
. After some seconds you'll see the login window of lightdm. Login as you are used to. Like at the above mentioned solution at the next boot there will be no graphic window. - Edit the file
/etc/init/rc-sysinit.conf
and make sure there is a2
at the lineenv DEFAULT_RUNLEVEL=2
. Save the file and either reboot or choose one of the above mentioned options.
- Just type
With the last option your system should boot into graphical mode at every time.
Related videos on Youtube
Author by
nath68379
Updated on September 18, 2022Comments
-
nath68379 almost 2 years
I installed the ubuntu-desktop (
apt-get install ubuntu-desktop
) but it does not show the GUI and it is not changing. It installed without any problem and I don't know why it does not work.I select this on the logon screen:
Ubuntu, with Linux 3.0.0-12-generic-pa
and I used this version.
-
nilsonneto over 12 yearswhat do you mean by "not changing"? - please describe exactly what is happening when you reboot. What happens if you run
sudo service lightdm restart
-
William over 12 yearsAt the logon screen, did you select "Ubuntu" as your desktop enviroment? If so and it doesn't work, or if it doesn't appear in the list, then we can't really help you without more information. For example, what version of Ubuntu were you running before installing Ubuntu-Desktop (Kubuntu/Xubuntu/Lubuntu, etc.). What logon screen are you using? What version of Ubuntu or Ubuntu derivative are you running? That should be a good starting point.
-
nath68379 over 12 yearsWhen I reboot my ubuntu server dont have gui.
-
Knowledge Cube over 12 yearsDo you at least see the LightDM login screen, or are you only given a terminal?
-
nath68379 over 12 yearsDont see the LightDM ligin screen.only given a terminal.
-
Alan over 12 yearsTry booting up, log into the terminal, and run
service lightdm status
. Is lightdm running? If so, maybe change TTY's with ctrl+alt+f7-f12 (f7 is the default).
-
-
ThatsJustCheesy almost 11 yearstyping startx did the trick for me.