1

I know about startx, but is there a command that stops X? I run Ubuntu 10.04.

1 Answer 1

4

X is currently handled by gdm (Gnome Display Manager). The "proper" way for starting, stopping and restarting the graphical server is:

sudo stop gdm
sudo start gdm
sudo restart gdm

Commands like startx aren't recommended as they're not setting important environment variables or neccessarily pulling in the right configuration. Using startx instead of gdm also makes it harder to close ;)

2
  • If gdm is used. Otherwise substitute gdm with kdm (in case of Kubuntu)
    – txwikinger
    May 17, 2011 at 17:51
  • I use kdm. Thanks for the help, now I don't need to use a GUI all the time!
    – rjh
    May 17, 2011 at 18:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .