Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hey guys, im running redhat 9, but alot of the tools i use are command line, and im only using the GUI occasionally... HOW do i stop x from running when the logon prompt appears ?
I used to use Mandrake 8.0 which had an option to shutdown just X server from the login manager shutdown menu. I'm using RedHat 9 now which uses the gnome login manager but doesn't have such an option. Isn't there any way at least to do so from the command-line ? Or at least a hotkey to press while the kernel modules are loading before X to stop X from loading just for that time?
" I'm using RedHat 9 now which uses the gnome login manager but doesn't have such an option. Isn't there any way at least to do so
from the command-line ?"
You could remove gdm and install kdm using rpm.
I use kdm instead of gdm. kdm has an option on the login screen to choose which GUI to login to. I have mine set up to choose between bash, gnome, and kde. You configure kdm by editing /etc/opt/kde3/share/config/kdm/kdmrc on SuSE. Red Hat may have the kdmrc file somewhere in /opt or /usr.
The last time I looked at gdm was several releases ago. At that time gdm was incapable of giving a choice of GUI interfaces.
I set my login manager choice to kdm by editing /etc/sysconfig/displaymanager. The last time that I told somebody that they reported back that there was no such file on their system.
So I have no idea where Red Hat sets the default diplay manager to gdm.
" I was wondering if u would know a command to tell X to shutdown?"
If you start X from gdm, then all the ways that I know to shut down X also log you out and take you back to gdm. I don't think that is what you are looking for.
If you set your default runlevel to 3 then you will boot to a command prompt instead of gdm. You can start X with "startx". When you stop X you will be back at the command prompt without having logged out.
I do not know of any way to boot into gdm, start X, stop X and be anywhere other than logged out and back at gdm. Perhaps somebody else knows how to do this.
If you use kdm you can set up options as to what to start. You can boot into kdm, select bash, log into bash, startx, stop X, and be back at a bash prompt and still be logged in. Or if you select gnome or KDE at the kdm screen then when you leave X you are logged out and back at the kdm screen.
/bin/hostname is an excutable program. I think that in Red Hat /bin/hostname is one of the programs included in the net-utils package. Look on your Red Hat install CDs for a file name that ends in rpm and has net-utils somewhere in the name. Install that rpm and you should get /bin/hostname back.
I do not know of any way to boot into gdm, start X, stop X and be anywhere other than logged out and back at gdm. Perhaps somebody else knows how to do this.
one way to do it is to switch to a text console by ctrl+alt+Fn, login, and then as root
init 3
this will get you to runlevel 3 (so no X)and kill dm (gdm, kdm or whatever).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.