Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using ubuntu server 12.04 and I intend to use some graphical tools to administrate the server. That's why in installed ubuntu-desktop.

sudo apt-get install ubuntu-desktop

and enable it with

startx

However, as soon as i finish with the administration i would like to disable it without leaving background processes consuming the CPU.

How can i achieve this?

share|improve this question

1 Answer 1

You should be able to simply remove lightdm and use startx to manually start your X sessions.

sudo apt-get remove lightdm

This will remove the ubuntu-desktop meta package.

You can also edit /etc/default/grub

and change

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”

to

GRUB_CMDLINE_LINUX_DEFAULT=”text”

then run

sudo update-grub

share|improve this answer
    
just to make it clear, choose one option or the other. There is no need to choose both options. I prefer to remove lightdm (or other managers) but changing the grub config seems to be the more "supported" method. –  coteyr Apr 1 '13 at 22:55
    
What about the GRUB_TERMINAL command? –  CMCDragonkai Mar 17 at 7:00
    
What command do you write to disable the GUI? –  Karl Morrison Mar 21 at 3:59

Your Answer

 
discard

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.