1758082 Members
2782 Online
108868 Solutions
New Discussion юеВ

Xwindow

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

Xwindow

I am running redhat 9. How do I shitdown the gui to see if it free's up some memory. Is it really X or is it something like X? I guess I am running gnome or kde.
UNIX IS GOOD
7 REPLIES 7
G. Vrijhoeven
Honored Contributor

Re: Xwindow

Hi Robert,


Edit your /etc/inittab and..

Change this line:

id:5:initdefault:

to..

id:3:initdefault:

and issue init 3

Regards,

Gideon
RAC_1
Honored Contributor

Re: Xwindow

Just logout from kde/gnome.

If you are botting to X by default, then look at /etc/inittab file and set the default level to 3

Anil
There is no substitute to HARDWORK
Nobody's Hero
Valued Contributor

Re: Xwindow

You mean there is no way to shutdown X without going to init level 3? Cant I just stop a certain process?
UNIX IS GOOD
Steven E. Protter
Exalted Contributor
Solution

Re: Xwindow

ctrl-shift-F1

I'm not sure any memory will be saved. It will certainly take you to a command line.

ctrl-shift-something, maybe F4 to go back.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Poff
Honored Contributor

Re: Xwindow

Hi SEP,

I believe you are thinking about Ctrl-Alt-F1 to get to a getty login screen, and Ctrl-Alt-F7 to get back to X.

Robert,

I think you have to switch to runlevel 3 because there is an entry in /etc/inittab to respawn the window manager:

# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon

I also think you probably meant to type "shutdown" in your original post, although your word would describe quite a few situations I have seen before. ;)


JP
Steven E. Protter
Exalted Contributor

Re: Xwindow

Hard to do this stuff without a workstation handy. Thanks for the correction John

Zero point this please Robert.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Johannes Krackowizer_1
Valued Contributor

Re: Xwindow

hi robert,

there are two ways one permanent disables the X and a second way that disables X until next reboot:

1)
Press Ctrl-Alt-F1 to enter command line
login in as root
type "init 3" to switch to runlevel 3 and Graphical login disapers
type "init 5" to get X back
or
type startx to start a X session for the current loged in user.

2)
open /etc/inittab
edit the following line
id:5:initdefault:
to
id:3:initdefault:

next reboot your linux will boot in runlevel 3 instead of runlevel 5

you can see what runlevel your box is by typing "runlevel"

the following runlevel are used under redhat 9:

0 - halt (Do NOT set initdefault to this)
1 - Single user mode
2 - Multiuser, without NFS (The same as 3, if you do not have networking)
3 - Full multiuser mode
5 - X11
6 - reboot (Do NOT set initdefault to this)

best regards

johannes
"First off, I'd suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it's a great symbolic gesture." (Linus Torvalds)