LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-26-2005, 07:52 PM   #1
stealthdave
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
How do I shut down X11?!?


I've been searching for an answer to this question on and off for about 5 years now, and have yet to find an answer. How do you shut down a running X11 server? The damn thing is like a hydra! If I kill it, it respawns, which is great if X becomes unresponsive, but doesn't help when I'm trying to install updated NVIDIA drivers, which require that X11 not be running. In the past, I've gotten around this problem by turning off X11 at boot and rebooting, but this is a less-than-ideal solution for a number of reasons:

1) I run Linux because I don't want to reboot every time I make a minor change! If I liked to reboot, I'd have stuck with Windows.
2) I can't figure out how to turn off X11 at boot under Ubuntu 5.04 :P

I've tried killing the process, halting X11 with CTRL-ALT-BACKSPACE, etc., but it always respawns, and I'm right back where I started. Is it possible to stop X11 once it's running?!? And can we get this into a freakin' FAQ somewhere? (Can you tell I'm getting frustrated?) Inquiring minds really want to know!

- Stealth Dave
 
Old 06-26-2005, 08:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Depends on the distro ... in slack I'd type
init 3
or
init 1
depending on what I did to my /etc/inittab
 
Old 06-26-2005, 08:18 PM   #3
apimente.br
Member
 
Registered: Aug 2003
Location: Sao Paulo - Brazil
Distribution: Mageia
Posts: 155

Rep: Reputation: 23
Have you tried?
Code:
init 3
 
Old 06-27-2005, 01:31 AM   #4
stealthdave
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Both init 3 and init 1 restart the system (but not reboot), which also restarts X11. Back to square one.

- Stealth Dave
 
Old 06-27-2005, 02:24 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In that case ubuntu sucks big time ... want this thread to be
moved to the ubuntu forum to get the right people to look at it?

Plain old debian behaves properly when put into runlevel 1.

Have a look at your /etc/inittab and check what the box
does when going to runlevel 1

grep "^su:" /etc/inittab



Cheers,
Tink
 
Old 06-27-2005, 02:28 AM   #6
meldroc
Member
 
Registered: Aug 2003
Posts: 102

Rep: Reputation: 15
In Debian-based distros (this includes Ubuntu), the X11 login managers (xdm/gdm/kdm) are not directly in /etc/inittab - they run as a service in /etc/init.d.

So you can turn it off with "sudo invoke-rc.d kdm stop". You can also switch the runlevel to one without a login manager service to make it more permanent, or use a runlevel editor to remove xdm/kdm/gdm from your runlevel of choice.
 
Old 06-27-2005, 05:55 AM   #7
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
From the Ubuntu Wiki, you can stop the X server like this (I think...):
Quote:
/etc/init.d/gdm stop
There is a very detailed guide to installing the nVidia drivers in Ubuntu here @ UbuntuGuide.org.

Last edited by scuzzman; 06-27-2005 at 05:59 AM.
 
Old 06-27-2005, 06:12 AM   #8
lagu2653
Member
 
Registered: Jun 2005
Distribution: Lubuntu 16.04 LTS
Posts: 104

Rep: Reputation: 15
ctrl-alt-backspace > new login
 
Old 06-27-2005, 10:33 AM   #9
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Quote:
Originally posted by lagu2653
ctrl-alt-backspace > new login
Did you even read the first post???
Quote:
I've tried killing the process, halting X11 with CTRL-ALT-BACKSPACE, etc., but it always respawns, and I'm right back where I started. Is it possible to stop X11 once it's running?!? And can we get this into a freakin' FAQ somewhere? (Can you tell I'm getting frustrated?) Inquiring minds really want to know!
 
Old 06-27-2005, 10:40 AM   #10
kimx
Member
 
Registered: Dec 2004
Location: Denmark
Distribution: Yoper 2.2, Source Mage, Ubuntu 5.04, Slackware 10.1
Posts: 70

Rep: Reputation: 16
Code:
sudo killall gdm
That shutsdown X
 
  


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
Core 4 - X11-devel complains about X11-libs which are installed Ephracis Fedora 3 09-05-2005 09:32 AM
xorg-x11-libs required by xorg-x11-devel darknails Fedora 1 01-13-2005 02:34 PM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 06:05 PM
Roaming X11/Xfree86, X11 proxy zapp Linux - Software 1 09-12-2003 08:06 AM
Shut it down A-dummy Linux - General 14 08-05-2002 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:55 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