This question already has an answer here:

I've installed Ubuntu Server. I'd like to add the GUI with ubuntu-desktop package, but if I do that can I still get the no-gui server interface as the default? What I basically need is the no-gui and the ability to start a gui when needed. Possible?

merged by fossfreedom Jan 31 '14 at 12:25

This question was merged with How do I disable X at boot time so that the system boots in text mode? because it is an exact duplicate of that question.

Browse other questions tagged or ask your own question.