LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shutting Down X Server : THE ULTIMATE NUBTARD QUESTION! (https://www.linuxquestions.org/questions/linux-newbie-8/shutting-down-x-server-the-ultimate-nubtard-question-180357/)

cowboy45 05-11-2004 12:39 PM

Shutting Down X Server : THE ULTIMATE NUBTARD QUESTION!
 
Alright either Im blind or not looking hard enough online... But I cant find the command to stop X server :X. I would say Im moderatly competent, but now I doubt that...

Im using Red Hat 9.

Thanks all.

:newbie:


T3h Cowboy

david_ross 05-11-2004 12:41 PM

Just kill the PID - to see what X processes are running do:
ps -ef | grep X

cowboy45 05-11-2004 12:51 PM

When I kill it, it automatically restarts...

EDIT: Im trying to install the latest nVidia Driver, and I need to shutdown X totally before I can do that.

:newbie:


T3h Cowboy

david_ross 05-11-2004 12:54 PM

Try a kill -9 to completely kill it or move to runlevel 3 "init 3".

cowboy45 05-11-2004 01:03 PM

Ok... Im getting really stupid now.

Doing that and it does kill it, however it still restarts the X server.

Maybe I should ask this: Where should I run the command? Should I run it in console while in X, or should I ctrl+alt+f4 to the command line? Im trying to run it in the command line and when I run that, it starts X up and I have to do ctrl+alt+f4 to go back to the command line. Typing startx tells me that X is still running. The proccess ID changes everytime to, I do know that killing it is doing something...


Maybe it would be easier to change it to text login...in that case how would I do that?

:newbie:


T3h Cowboy (thanks)

vinay_s_s 05-11-2004 01:06 PM

u must be using a display manager like gdm , or kdm
kill the display manager and everything will be ok

killall kdm
or
killall gdm
or
killall gdm-binary

or best way is "init 3" as root

cowboy45 05-11-2004 01:15 PM

Thanks guys, I didnt realize that init 3 was a command, so mad props to both of you!


:newbie:

T3h Cowboy

dragon_fire04 09-02-2004 09:05 PM

Sorry about this, but i was wondering how you shut it down on mandrake 10.0 ..
I need to install my Nvidia Drivers. and of course it says I need to shut down my X Server. :( hope some one could help..
Tks
:newbie:

vinay_s_s 09-02-2004 09:51 PM

type "init 3" as root (without the quotes)
to do that, press Alt+Ctrl+F1 login as root, then type init 3"
that must do it.

realjustin 09-03-2004 02:07 AM

Note that some distros will leave X running under 3, so you might want to go all out and go
init 1
I usually do, because it's faster and loads minimal modules. Then you can
init 5
and boom you're back.


All times are GMT -5. The time now is 09:33 AM.