Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm sure this is an extremely simple command, however I can't seem to find it! I would like to be able to shutdown the graphical interface so that it is not running on my system. I'm running Red Hat 9.
NOTE: I'm looking for the command to totally shutdown the graphical interface and enter the command line. I've been using CTRL-ALT F 1-5, but this doesn't seem to close the graphical interface all way; maybe it is and I have no idea what I'm doing, but when I try to rerun the interface it says it is already running.
Originally posted by JayCnrs Go to the console and type the command:
init 3
This will shutdown the graphical interface completely.
Worked like a charm, although there were some services I had to manually bring up: HTTP, IMAP, MYSQL. Other than that everything worked great!
Thank you!
P.S. Ctrl-Alt-Backspace sends the system into sleep mode...and does a very poor job of waking back up as it didn't re-recognize my USB ports/hubs.
Alrite, this is a similiar question so I thought I would drudge up an old topic...
Here's my scenario:
I turn on my system and it goes straight into the GUI login and desktop. I check my e-mail and what not and then I use "init 3" to shutdown the GUI and goto the command prompt only. Then when I want to get the gui back up I type "startx". But now when I type "init 3" to get back to command prompt only nothing happens! I am assuming that it's because I am still running init 3 from the first time I logged out of the GUI. So, how do I turnoff the x server (I am assuming that's what "startx" actually starts) once I have already used init 3 to get to the command prompt?
Yes if you are always doing the init 3 I would go to the file /etc/inittab and then edit the line that says id:5:initdefault and change it to id:3:initdefault then when you want to go into X use startx and then when done just click logoff takes you back to a console.
There is also a a lock-screen/log out applet that you can install on your task bar if you use KDE. Clicking on it will log out of KDE. If you run init level 3 by default, It will exit to a virtual console. If you use run level 5 by default, you will be returned to the session manager (kdm, gdm or xdm) you are using.
The session managers will re-spawn if exited. To do what you want, you really have to start out at run level 3.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.