Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am brand new to Ubuntu Server (or even having a server). I installed Ubuntu Server, installed a GUI using sudo apt-get install ubuntu-desktop so that I can check for other software graphically.

After finding what I needed I wanted to boot to tty (command line) each time. I have seen it mentioned to change a parameter to "text" but my grub file is "read only" and I wasn't sure how to gain root to edit that file. I then typed sudo apt-get remove lightdm and seemed to have made a mistake.

The machine now shows Ubuntu and the loading circles but does nothing.

What have I done, and how do I get back to command line boot, with GUI option?

share|improve this question
update: I figured out how to get a command line up, and have re-installed lightdm. That fixed the GUI being stuck loading. I just have to figure out how to properly boot to TEXT, and how to edit the grub line. – skidawgz Jan 5 '14 at 9:08
I'm not sure what you mean by "boot to Text", but to edit the grub file, you have to use 'cd' to get to /etc/default. Once there, type 'sudo gedit grub' to edit the file and be able to save changes. – vivid_vibe Jan 5 '14 at 9:35
Please edit your question so it asks what you actually want to know. – terdon Jan 5 '14 at 9:42
up vote 1 down vote accepted

You need to have root permissions to edit the grub file so it should alow you to write if you open with either:

sudo nano /etc/default/grub 

gksu gedit /etc/default/grub

depending on whether you want a to do the editing in command line. You want to change




then save and go back to the terminal and run:

sudo update-grub

Then you can reboot to test:

sudo reboot
share|improve this answer
Thank you for your answer. One error i was making was typing "cd.." instead of "cd .." :) I have limited command line experience and I obviously get certain items wrong. Next with your help I was about to get access to the file and save it. Everything works perfectly now! This is going to be an adventure I see. – skidawgz Jan 5 '14 at 15:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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