LinuxQuestions.org
Review your favorite Linux distribution.
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 02-08-2006, 03:40 PM   #1
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
how to shutdown xserver without automatic restart?


I know that I can shutdown the xserver via alt-ctrl-backspace. The problem is that it automatically restarts. How can I disable that?
I need the xserver to be shut down in order to install new graphics drivers.

Thanks,
Lotharster

PS: I'm using Debian Sarge
 
Old 02-08-2006, 03:46 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
As root, issue the command init 3. This will bring you into text mode.

If you do not want your system to boot into X, you can edit /etc/inittab
and change the initdefault from 5 to 3.
 
Old 02-08-2006, 03:55 PM   #3
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Original Poster
Rep: Reputation: 18
That did not work.
Here's what I did:

logged into a text console (ctrl-alt-F1)
logged in as user
su'd as root
entered init 3
There was no feedback, and the kde session did not end. When I shutdown the xserver, it restarted again.

So what did I do wrong? I'm sure there must be a way to shutdown the xserver without changing the default runlevel.

Lotharster
 
Old 02-08-2006, 04:06 PM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
http://www.debian-administration.org/articles/212

As per this link, runlevel 2 is the multiuser mode (probably without X) should get you off X.

Check the initdefault entry in /etc/inittab. Set that to 2 as well.

Last edited by ppuru; 02-08-2006 at 04:07 PM.
 
Old 02-08-2006, 04:34 PM   #5
primussucks
LQ Newbie
 
Registered: Jan 2006
Location: Pingree Grove, IL
Distribution: Mint
Posts: 21

Rep: Reputation: 0
Im not sure if this is by mistake or what, but if i hit ctrl+alt+backspace X restarts as you say, but if i hold ctrl+alt+backspace for a few seconds, X doesnt restart. Im running Debian as well, hope that helps.
 
  


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
Automatic restart cmgleipzig Linux - Newbie 6 07-14-2004 11:44 PM
Cannot restart xserver back into KDE timsch75 Linux - Newbie 6 03-30-2004 11:21 AM
Automatic Restart Nezar Linux - General 11 09-24-2003 03:21 AM
Automatic restart redhat linux 8.0 poorni Linux - Hardware 1 08-05-2003 01:40 PM
shutdown / restart XServer esteeven Linux - Newbie 1 02-02-2002 09:10 PM

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

All times are GMT -5. The time now is 04:14 AM.

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