LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   stopX? (https://www.linuxquestions.org/questions/linux-newbie-8/stopx-491882/)

Lordandmaker 10-12-2006 03:31 PM

stopX?
 
I've bodged together a PC to use as a server, but it's pretty old (PII) and slow, so I don't want to have X.org running all the time. That said, i've installed it so that I can do things i don't know the terminal equivalents for.

How do I stop X running, in such a way as to get it up again if/when I want it?

Being Debian based, Ubuntu wont let me do it using init, so i'm at a bit of a loss. All I can think of is to kill x.org, but i'm not sure that's the best way of doing it...

pljvaldez 10-12-2006 05:45 PM

aptitude install sysv-rc-conf. From a command line type sudo sysv-rc-conf use the space bar to deselect xdm, gdm, or kdm (your graphical login manager) from one of the init levels (I usually do 3). Then close out of it and change your /etc/inittab to boot to runlevel 3 by default.

To stop x when it is running, typically you do sudo /etc/init.d/gdm stop (or xdm or kdm, whichever you use).

Lordandmaker 10-12-2006 06:07 PM

Fantastic! Cheers!


All times are GMT -5. The time now is 02:40 AM.