LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-26-2006, 06:16 PM   #1
Sintu
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu, Knoppix, any I can get my hands on!
Posts: 24

Rep: Reputation: 15
Kill X Server


I'm trying to install the drivers from Nvidia for my Geforce 4 Mx 440, when I try to do it within Gnome it tells me that it detects X running. I tried booting into recovery mode but then it said it detected that I was in runlevel 1 and that I should be in at least run level 3. So I typed "telinit 3" to do so then it brought me to the login screen. So my question is, how do I get a shell open without starting the X server? Thank you so much for your help.

Oh yeah, I'm running Ubuntu Edgy.
 
Old 12-26-2006, 06:18 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
In Ubuntu I believe that runlevel 2 is what you're looking for, despite what the Nvidia installer tells you. In most distros run level 3 is text based multiuser, but in Debian based distros it's for the full blown GUI and run level 2 is for text only multiuser.
 
Old 12-26-2006, 06:36 PM   #3
Sintu
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu, Knoppix, any I can get my hands on!
Posts: 24

Original Poster
Rep: Reputation: 15
Thank you very much! I'll try it!


Edit: It still gave me the same results as telinit 3. Any more ideas?

Thank you so much!

Last edited by Sintu; 12-26-2006 at 06:40 PM.
 
Old 12-26-2006, 06:46 PM   #4
Ha1f
Member
 
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
get to runlevel 2 and do killall Xorg.
 
Old 12-26-2006, 09:57 PM   #5
Sintu
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu, Knoppix, any I can get my hands on!
Posts: 24

Original Poster
Rep: Reputation: 15
killall xorg didn't work. bleh. I dunno if I should start another thread for a different question, but I'll just ask it here. In a fullscreen shell, how do you scroll up and down? I need to see the list of processes that ps -A shows but Page Up/ Page Down doesnt' work, and neither do the arrow keys. Any ideas?
 
Old 12-26-2006, 10:08 PM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
From the xserver hit

ctrl+alt+backspace
ctrl+alt+F1
ps aux | grep 'gdm'

and

kill <gdm-process-id>

or, for KDE

ps aux | grep 'kdm'

kill <kdm-process-id>

Then

./NV*

as root, from the directory the nvidia driver is in.

Finally

gdm

for gnome

or

kdm

for KDE

But, sometimes gdm is used for KDE.

ctrl+alt+F7

to get xserver with nividia driver installed
 
Old 12-26-2006, 10:17 PM   #7
Sintu
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu, Knoppix, any I can get my hands on!
Posts: 24

Original Poster
Rep: Reputation: 15
I'll try that AwesomeMachine, but my problem now is that once I kill xorg, it comes back to life! How do I make it stay dead? Is there some other process bringing it back? I'm running Gnome, Ubuntu Edgy.

After I kill it, it restarts to the Greeting Screen/Login Screen. Thought I'd add that, incase it helps.

Last edited by Sintu; 12-26-2006 at 10:45 PM.
 
Old 12-26-2006, 11:27 PM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
gdm is the service that keeps restarting x on you..


CTRL+ALT+F2 to get to a virtual terminal
Login
sudo /etc/init.d/gdm stop - this command will cause the X server to shutdown, you can verify by checking running processes. do whatever you need to and then restart X as follows..
sudo /etc/init.d/gdm start


enjoy !!

Last edited by farslayer; 12-26-2006 at 11:29 PM.
 
Old 12-26-2006, 11:31 PM   #9
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I've always gone to Single user mode for this sort of thing (telinit 1)

From there, log in as root, and do the command sequence per instruction. I would assume that Debian's Nvidia drivers (non-free) will work the best, but you may be able to get newer ones from Nvidia (if you can make them work).

Last edited by rickh; 12-26-2006 at 11:33 PM.
 
Old 12-27-2006, 12:00 AM   #10
Sintu
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu, Knoppix, any I can get my hands on!
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by farslayer
gdm is the service that keeps restarting x on you..


CTRL+ALT+F2 to get to a virtual terminal
Login
sudo /etc/init.d/gdm stop - this command will cause the X server to shutdown, you can verify by checking running processes. do whatever you need to and then restart X as follows..
sudo /etc/init.d/gdm start


enjoy !!
Thank you farslayer! It worked!
 
Old 12-27-2006, 12:09 AM   #11
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Just out of curiosity are you following the nVidia how to in the Ubuntu guide ?

http://ubuntuguide.org/wiki/Ubuntu_E...r_.28NVIDIA.29

The Ubuntu Guide is a great resource for you if you are going to stick with Ubuntu.
 
Old 12-27-2006, 12:11 AM   #12
Sintu
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu, Knoppix, any I can get my hands on!
Posts: 24

Original Poster
Rep: Reputation: 15
No I wasn't, but it definetly looks like it has some great info in there, thank you so much!
 
  


Reply



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
trying to kill a process on Red Hat server basskleff Linux - General 1 10-02-2006 05:01 PM
help kill x server to install nvidia drivers beeblequix Linux - Newbie 6 12-24-2005 02:18 PM
cant't kill old logins on linux server cayer Linux - Newbie 2 11-23-2005 09:40 AM
what can i kill , web server using too much resources maxboost Linux - Enterprise 3 02-23-2005 04:53 PM
x server kill application keyboard shortcut/hotkey hypermegachi Linux - Newbie 2 07-25-2004 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration