Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: cheese on 12 May 2004, 02:16

Title: closing x server
Post by: cheese on 12 May 2004, 02:16
how do i do it? thanks
Title: closing x server
Post by: insomnia on 12 May 2004, 03:42
quote:
Originally posted by blackh@t:
how do i do it? thanks


This works rather stupid in RH/Fedora.

press:
Ctrl-Alt-F3.
Login as root.(you might have to do this twice)
Type:
init3

This will finally close X11.

To restart X11, type:
startx

[ May 11, 2004: Message edited by: insomnia ]

Title: closing x server
Post by: cheese on 12 May 2004, 05:15
i logged in as root and whatnot and i tried init3 but it said invalid command or something like that   :(
Title: closing x server
Post by: flap on 12 May 2004, 05:19
He means
init 3
Title: closing x server
Post by: cheese on 12 May 2004, 06:22
still saying command not found :-/
Title: closing x server
Post by: mobrien_12 on 12 May 2004, 07:48
quote:
Originally posted by blackh@t:
still saying command not found :-/


Ok it's not in the path... likely meaning you used
Code: [Select]
instead of
Code: [Select]
or logging in directly as root.

Use
Code: [Select]
or give the full path, i.e.
Code: [Select]
Title: closing x server
Post by: cheese on 12 May 2004, 10:00
ooh ok, thanks a bunch  (http://smile.gif)
Title: closing x server
Post by: preacher on 14 May 2004, 20:39
If you can't get init3 to work, search out the pid and kill it.

$ps -ae | grep X

$kill [pid]
Title: closing x server
Post by: mobrien_12 on 17 May 2004, 04:31
quote:
Originally posted by ThePreacher:
If you can't get init3 to work, search out the pid and kill it.

$ps -ae | grep X

$kill [pid]



Very true, if you are not running a graphical login manager (xdm, gdm, kdm).  Killing the X process will just cause the manager to spawn a new one.  If one is not running a graphical login manager, the X process can be also killed with CTRL-ALT-BACKSPACE.