Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-26-2003, 02:07 PM
|
#1
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
sto X from running at startup ?
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 ?
|
|
|
07-26-2003, 02:32 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,352
|
"HOW do i stop x from running when the logon prompt appears ?"
edit /etc/inittab and change:
id:5:initdefault:
to:
id:3:initdefault:
|
|
|
07-26-2003, 02:48 PM
|
#3
|
Member
Registered: Jul 2003
Posts: 30
Rep:
|
shutting down X from X login manager?
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?
|
|
|
07-26-2003, 04:03 PM
|
#4
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,352
|
" 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.
|
|
|
07-28-2003, 02:53 PM
|
#5
|
Member
Registered: Jul 2003
Posts: 30
Rep:
|
This probably sounds weird but I kinda like the gnome login manager. I was wondering if u would know a command to tell X to shutdown?
|
|
|
07-28-2003, 04:21 PM
|
#6
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,352
|
" 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.
|
|
|
09-02-2003, 02:46 PM
|
#7
|
LQ Newbie
Registered: Sep 2003
Posts: 4
Rep:
|
didnt work
i'm running rh9 and set the initab as specified, rebooted, and it came right back up into x. So i went further and # here....
#15:5:wait:/etc/rc.d/rc 5
And it still went graphical
I fixed it by specifying BOOTUP in rc.sysinit right before it is used.
BOOTUP=text
if ["$BOOTUP" = "graphical"]; then
Where does this BOOTUP var come from?
|
|
|
09-02-2003, 04:19 PM
|
#8
|
LQ Newbie
Registered: Sep 2003
Location: CT
Distribution: Mandrake
Posts: 5
Rep:
|
|
|
|
09-02-2003, 05:07 PM
|
#9
|
LQ Newbie
Registered: Sep 2003
Posts: 4
Rep:
|
i though /bin/hostname was like /etc/hostname and overwrote it with my hostname.
pft
Where do i get a new one?
About to download the cd's again, was hoping to avoid this...
|
|
|
09-02-2003, 09:46 PM
|
#10
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,352
|
"Where do i get a new one?"
/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.
|
|
|
09-02-2003, 09:53 PM
|
#11
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
jailbait:
Quote:
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).
|
|
|
09-02-2003, 10:02 PM
|
#12
|
LQ Newbie
Registered: Sep 2003
Posts: 4
Rep:
|
|
|
|
09-02-2003, 10:39 PM
|
#13
|
LQ Newbie
Registered: Sep 2003
Posts: 4
Rep:
|
Anyway I got it and it's good. Now to get samba running.
|
|
|
All times are GMT -5. The time now is 12:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|