I restarted it and now I have this issue. I have tried typing in alt+f7, but that doesn't work. How do I get my desktop back?

  • 1
    try typing your user name and password. then type startx. If that worked, let me know.. – Sijin Krishnan Nov 29 '15 at 3:48

I dont know if is mistake in posting a question or it is your misconception, but the right shortcut is ctrl+alt+f7. Try and post feedback.


It is maybe a problem with your grub. If you want to start the desktop, enter your login and your password, then launch startx. But that will not solve your problem.

You have to check your grub config file:


You should get :


If not make a copy of this file:

sudo cp /etc/default/grub /etc/default/grub.bak

And change it to get the values that I give you

sudo nano /etc/default/grub

Update your grup :

sudo update-grub

Then reboot and it should work again.


If its not a error due to a graphics or boot issue, you probably just need to reinstall the desktop and/or login manager by logging into that prompt and running:

sudo apt-get install ubuntu-desktop

Note for other Ubuntu setups you may to try different commands instead - e.g. for Xubuntu

sudo apt-get install xubuntu-desktop

Ubuntu gnome desktop

sudo apt-get install ubuntu-gnome-desktop


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.