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.

What if I'd like to exit the X session to use raw console without any X process running? I know I can always press Ctrl+Alt+F1/F6 to switch between a raw console and a graphical environment, but some times I just want the last to be gone (for technical reasons). So how to shut it down correctly, preventing from being automatically respawned?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

To Stop X.Org Server:

sudo service lightdm stop

To Start X.Org Server:

startx

##(OR)

sudo service lightdm start

To Restart X.Org Server:

sudo service lightdm restart

In all cases, replace lightdm with whatever greeter/display manager you use. lightdm is Ubuntu's default display manager.

share|improve this answer
    
Yes, I know you asked about how to stop it alone, but posting to start and restart the service in a single place might help others :) –  nitstorm Oct 14 '11 at 9:11
1  
Technically, you're stopping the desktop environment GNOME, which then shutdowns Xorg. Replace gdm by kdm, xdm, ldm or whatever desktop environment you're using. –  Lekensteyn Oct 14 '11 at 9:18
    
lightdm in my case :-) –  Ivan Oct 14 '11 at 9:33

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.