LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-11-2004, 12:39 PM   #1
cowboy45
Member
 
Registered: Mar 2004
Location: Vancouver, WA
Distribution: SuSe 9.1 Personal, Slackware 10
Posts: 53

Rep: Reputation: 15
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.




T3h Cowboy
 
Old 05-11-2004, 12:41 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Just kill the PID - to see what X processes are running do:
ps -ef | grep X
 
Old 05-11-2004, 12:51 PM   #3
cowboy45
Member
 
Registered: Mar 2004
Location: Vancouver, WA
Distribution: SuSe 9.1 Personal, Slackware 10
Posts: 53

Original Poster
Rep: Reputation: 15
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.




T3h Cowboy
 
Old 05-11-2004, 12:54 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Try a kill -9 to completely kill it or move to runlevel 3 "init 3".
 
Old 05-11-2004, 01:03 PM   #5
cowboy45
Member
 
Registered: Mar 2004
Location: Vancouver, WA
Distribution: SuSe 9.1 Personal, Slackware 10
Posts: 53

Original Poster
Rep: Reputation: 15
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?




T3h Cowboy (thanks)
 
Old 05-11-2004, 01:06 PM   #6
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 658

Rep: Reputation: 30
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
 
Old 05-11-2004, 01:15 PM   #7
cowboy45
Member
 
Registered: Mar 2004
Location: Vancouver, WA
Distribution: SuSe 9.1 Personal, Slackware 10
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks guys, I didnt realize that init 3 was a command, so mad props to both of you!




T3h Cowboy
 
Old 09-02-2004, 09:05 PM   #8
dragon_fire04
Member
 
Registered: Jun 2004
Posts: 41

Rep: Reputation: 15
Question

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
 
Old 09-02-2004, 09:51 PM   #9
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 658

Rep: Reputation: 30
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.
 
Old 09-03-2004, 02:07 AM   #10
realjustin
Member
 
Registered: Aug 2004
Location: /dev/null
Distribution: Slack 10, Debian
Posts: 99

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ultimate linux samba server distro joncolby Linux - Networking 2 11-22-2005 03:21 PM
Ultimate Newbies Question Rattz Linux - Newbie 9 11-29-2004 03:39 AM
The Ultimate Noob Question (!~CoW~!) Linux - Software 5 12-03-2003 03:38 AM
Ultimate Newbie Question SuperTeece Linux - Newbie 5 05-22-2003 09:39 AM
the ultimate newbie question alexfoss Linux - Networking 3 03-23-2003 04:02 PM


All times are GMT -5. The time now is 10:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration