2

when i start ubuntu i get the command line, even if I run commands like

sudo service lightdm restart

and

sudo systemctl start lightdm

how can i return to have the desktop at startup?

2 Answers2

4

Run these commands to install a desktop environment:

sudo apt-get update  
sudo apt-get install ubuntu-desktop
Videonauth
  • 33,355
  • 17
  • 105
  • 120
2

At first step use this command:

sudo systemctl enable lightdm

And reboot.

If it not works for you try to make lightdm your default disply manager:

echo "/usr/sbin/lightdm" | sudo tee /etc/X11/default-display-manager > /dev/null

And reboot.

And if it's not work for you as the final step try this command:

sudo dpkg-reconfigure lightdm

I hope that works for you.