LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-24-2005, 04:19 AM   #1
C.Aymen
Registered User
 
Registered: Aug 2005
Posts: 10

Rep: Reputation: 0
how to stop X server


I have recently installed Debian,
when i tried to install the nvidia driver i need to shutdown the xserver but the command :
telinit 3 dont work (as root!)
and telinit 0 works well !

i have tried to run at level 3 from the startup but also it's a failure.

thanks.
 
Old 12-24-2005, 04:56 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Debian has runlevels different from other distros, do "/etc/init.d/[gkx]dm stop" instead depending on if you use gdm, xdm or kdm.
 
Old 12-24-2005, 06:47 AM   #3
brazilian_user
Member
 
Registered: Nov 2005
Location: Brazil, Po - So Paulo
Distribution: Debian Etch
Posts: 110

Rep: Reputation: 15
You can start the system in text-mode editing the /etc/inittab file and puting the number "1" instead of "2" in the "The default runlevel" line.
 
Old 09-11-2007, 09:02 AM   #4
treaz
LQ Newbie
 
Registered: May 2007
Location: Bucharest, Romania
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by brazilian_user View Post
You can start the system in text-mode editing the /etc/inittab file and puting the number "1" instead of "2" in the "The default runlevel" line.
I totally disagree with this solution because this would put you in single user mode and that is a completely different story. Besides that changing the inittab file makes the change permanent until another edit of the same file.

LE (2 year old thread): I know that this is a 2 year old post, but the thread wasn't closed and since I bumped into this I though I would make things a little bit clearer.

Last edited by treaz; 09-12-2007 at 01:08 AM.
 
Old 09-11-2007, 09:19 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,624

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Quote:
Originally Posted by treaz View Post
I totally disagree with this solution because this would put you in single user mode and that is a completely different story. Besides that changing the inittab file makes the change permanent until another edit of the same file.
this topic is almost two years old..
 
Old 09-11-2007, 09:24 AM   #6
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I would also do
CTRL+ALT+F2 login as root
/etc/init.d/gdm stop install the drivers
/etc/init.d/gdm start and I'm back in business..

no reason to edit any files to get to text mode.. I usually disable gdm in runlevel 2 so I always boot to console mode, then I login and startx. Personal preference, it gives me an easy way to install new drivers after a kernel upgrade without ever having to fight the system, and I never end up booting to a black screen this way..


In Debian as you have discovered run levels 2-5 are all identical. Debian boots to runlevel 2 by default. if you want you could edit runlevel 3 and tell it to stop gdm(or kdm, xdm whatever your case may be), then your approach with telinit 3 would actually work. you can use sysv-rc-conf to easily edit your runlevels.
 
Old 11-11-2007, 01:12 PM   #7
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,561
Blog Entries: 1

Rep: Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023
I'm confused...


Quote:
I would also do
CTRL+ALT+F2 login as root
/etc/init.d/gdm stop install the drivers
/etc/init.d/gdm start and I'm back in business..
/etc/init.d/gdm stop - actually STARTS another X in F8!!

How can I shut down all X servers?

thanks
 
Old 11-11-2007, 01:22 PM   #8
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,561
Blog Entries: 1

Rep: Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023
I'm not confused anymore I had to log off from my X server first to shut it down.
 
Old 11-12-2007, 06:16 AM   #9
treaz
LQ Newbie
 
Registered: May 2007
Location: Bucharest, Romania
Distribution: Debian
Posts: 12

Rep: Reputation: 0
How did you log off from the x server. I would really appreciate if you could write all thwe steps you made starting from having kdm/gnome up an running. Thanks in advance
 
Old 11-12-2007, 08:01 AM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
If you want to boot say in runlevel 2 and you have grub,
Edit the line (e if I remember well), go at the end of the line and add 2
And you'll start in runlevel 2.
 
Old 11-12-2007, 02:27 PM   #11
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,561
Blog Entries: 1

Rep: Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023
Quote:
How did you log off from the x server
What I meant was going to the Menu 'System' (at least in debian) and 'Log Out username'
 
Old 11-12-2007, 03:59 PM   #12
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
wierd.. X has never cared whether I was logged in or out of the desktop it just shutdown when I told it to..

at least you got it working, and that's what counts.
 
Old 11-12-2007, 04:09 PM   #13
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,561
Blog Entries: 1

Rep: Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023
Quote:
wierd.. X has never cared whether I was logged in or out of the desktop it just shutdown when I told it to..

... and my X server cares!!! LOL
 
Old 11-12-2007, 04:33 PM   #14
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,561
Blog Entries: 1

Rep: Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023
On a serious note, now it won't stop at all

# etc/init.d/gdm stop
Stopping Gnome display manager: GDM

but it actually doesn't stop it, when I want to run the NVidia script it says that X is running

any help on this?
thanks
 
Old 11-12-2007, 09:45 PM   #15
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
have you tried using CTRL+ALT+BACKSPACE to kill X after shutting down GDM ?

it's really odd that your system is acting this way.
 
  


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
Linux server will stop responding to telnet requests lab123 Linux - Security 3 10-25-2005 12:37 PM
Can't stop X server halldor_marson Linux - Hardware 3 06-20-2005 06:18 PM
Help me to stop X server Johnny77 Linux - Newbie 2 06-09-2004 09:39 PM
how to stop X server? Baklan Linux - Newbie 2 07-10-2003 06:07 PM
Install drivers. How to stop x-server? aroneous54 Linux - Software 11 05-07-2003 01:28 PM


All times are GMT -5. The time now is 11:07 AM.

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