LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-08-2003, 11:44 PM   #1
Aljaber
Member
 
Registered: Sep 2003
Location: Milky Way Galaxy
Distribution: Slackware , RedHat
Posts: 40

Rep: Reputation: 15
Shutting Down X


hi all !

how to shutdown X without editing /etc/inittab

regards

Last edited by Aljaber; 11-08-2003 at 11:51 PM.
 
Old 11-08-2003, 11:57 PM   #2
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
umm ... click exit?


what do you mean? make x not come up on bootup?
 
Old 11-09-2003, 12:05 AM   #3
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you could use (as root)
init 3
in a terminal window. This will get you to runlevel 3 which will kill X (assuming that you have, like most people, set runlevel 3 to be without X). You can restart X with
init 4
(in Slackware; very often it is init 5)
 
Old 11-09-2003, 12:15 AM   #4
Aljaber
Member
 
Registered: Sep 2003
Location: Milky Way Galaxy
Distribution: Slackware , RedHat
Posts: 40

Original Poster
Rep: Reputation: 15
well , when i use init 3 that dose not kill X
 
Old 11-09-2003, 12:26 AM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Are you sure?
Press ctrl-alt-F1. This get you to a text login screen. Login, then become root and then do
init 3
or
telinit 3

This ought to kill X. You can check by pressing ctrl-alt-F7. If you get a blank screen, X is dead.
 
Old 11-09-2003, 12:56 AM   #6
Aljaber
Member
 
Registered: Sep 2003
Location: Milky Way Galaxy
Distribution: Slackware , RedHat
Posts: 40

Original Poster
Rep: Reputation: 15
well , i gust done it , and i am writing to you from my X , nothing happend
 
Old 11-09-2003, 12:58 AM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
so X is not dead?
How does your /etc/inittab look like?
 
Old 11-09-2003, 01:22 AM   #8
Aljaber
Member
 
Registered: Sep 2003
Location: Milky Way Galaxy
Distribution: Slackware , RedHat
Posts: 40

Original Poster
Rep: Reputation: 15
here it is ,
Quote:
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
# 3.00 02/06/1999 PV
# 4.00 04/10/2002 PV
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by: Patrick J. Volkerding, <volkerdi@slackware.com>
#

# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S

# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K

# Script to run when going multi user.
rc:2345:wait:/etc/rc.d/rc.M

# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now

# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0

# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6

# What to do when power fails.
pf::powerfail:/sbin/genpowerfail start

# If power is back, cancel the running shutdown.
pg::powerokwait:/sbin/genpowerfail stop

# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

# Local serial lines:
#s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
#s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100

# Dialup lines:
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100

# Runlevel 4 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:wait:/etc/rc.d/rc.4

# End of /etc/inittab
 
Old 11-09-2003, 02:00 AM   #9
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
If you're using startx to get into X, then simply logging out should shut it down and bring you back to the console from which you launched it since you're booting to runlevel 3. If you're running a window manager like gdm, then there should be a command you can use to shut that down as well. gdm-stop will shutdown gdm, don't know about the others.
 
  


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
shutting down xNerox Linux - General 1 07-27-2004 03:28 PM
Shutting down X euphoria Linux - Newbie 3 02-25-2004 06:37 PM
Shutting Down emperorjordan Mandriva 1 02-23-2004 02:10 PM
Shutting Down PlatinumRik Linux - Networking 7 06-09-2003 08:18 AM
Shutting down odin123 Linux - Hardware 1 09-27-2002 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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