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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.