• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Stop Xserver?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

TyRex

Member
Joined
Sep 12, 2002
Location
Indiana
Is there away to stop the Xserver after it's already been started? I use KDE only for intitial stuff to set up after every reboot, but when I'm done, I have no use for it. I would like to be able to turn it off so that more resources are free for my game server and such........

Thanx
 
klingens said:
killall X (better run it as root)

It worked, but then it brought the login screen right back up. I'm using mandrake BTW. Any ideas?
 
Are you using runlevel 5? If so, the system will respawn the X server when its killed.

Probably your best bet is to set the default runlevel 3 and then enter the GUI with the startx command when you need it. You'll need to edit /etc/inittab and change the line that reads:

id:5:initdefault:

to

id:3:initdefault:

Then, you should be able to shutdown X via KDE when you are done, and you'll go back to a command line.
 
Back