LinuxQuestions.org
Help answer threads with 0 replies.
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, 07: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, 07:18 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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, 07: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 07:40 PM.
 
Old 12-26-2006, 07: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, 10: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, 11:08 PM   #6
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,117

Rep: Reputation: 549Reputation: 549Reputation: 549Reputation: 549Reputation: 549Reputation: 549
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, 11: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 11:45 PM.
 
Old 12-27-2006, 12:27 AM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,240
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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-27-2006 at 12:29 AM.
 
Old 12-27-2006, 12:31 AM   #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-27-2006 at 12:33 AM.
 
Old 12-27-2006, 01: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, 01:09 AM   #11
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,240
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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, 01: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


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

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

All times are GMT -5. The time now is 03: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration