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 want my system to boot terminal only, but be able to launch Unity once logged in. I've edited /etc/default/grub from :

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"

and my system launches to the terminal fine, but when I try to launch unity I get:

WARNING: no DISPLAY variable set, setting it to : 0
compiz (core) - Fatal: Couldn't open display : 0

Everything goes back to normal when I restore the original GRUB configuration, so it looks to me like nothing is actually broken.

I'm running in a VM, and have now tested this with a clean install of Ubuntu, as well as with the Amahi installation I am trying to test. The same error occurs with the clean install.

So how can I actually start unity after a system start that doens't start it directly?

share|improve this question
    
Are you using 12.04? –  Anwar Shah Oct 14 '12 at 19:38
3  
How are you trying to start Unity? Are you using startx? –  Seth Oct 30 '12 at 14:49

1 Answer 1

up vote 3 down vote accepted

The startx command load only the default desktop environment without Unity or other user interface. The startx unity command can do this job, but I do not recommend it. You can test it and you'll see why.

To load with success the X display manager along with Unity from TTY, use next command:

sudo service lightdm start
share|improve this answer
    
To exit back to the shell, just do "sudo service lightdm stop" and CTRL-Alt-F1? –  m0j0 Oct 19 '13 at 1:43
1  
Did this answer work for you? sudo service lightdm start gives me the login screen but after that when I login everything is broken. –  kapad Oct 25 '13 at 19:36

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.