LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-26-2003, 02:07 PM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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 ?
 
Old 07-26-2003, 02:32 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
"HOW do i stop x from running when the logon prompt appears ?"

edit /etc/inittab and change:

id:5:initdefault:

to:

id:3:initdefault:
 
Old 07-26-2003, 02:48 PM   #3
renjith
Member
 
Registered: Jul 2003
Posts: 30

Rep: Reputation: 15
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?
 
Old 07-26-2003, 04:03 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
" 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.
 
Old 07-28-2003, 02:53 PM   #5
renjith
Member
 
Registered: Jul 2003
Posts: 30

Rep: Reputation: 15
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?
 
Old 07-28-2003, 04:21 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
" 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.
 
Old 09-02-2003, 02:46 PM   #7
yeahright
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
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?
 
Old 09-02-2003, 04:19 PM   #8
yzedf
LQ Newbie
 
Registered: Sep 2003
Location: CT
Distribution: Mandrake
Posts: 5

Rep: Reputation: 0
http://tldp.org/HOWTO/From-PowerUp-T...mpt-HOWTO.html

rc3.d needs a 'S' it appears...

http://www.icculus.org/~chunky/writing/sysVinit_things
 
Old 09-02-2003, 05:07 PM   #9
yeahright
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
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...
 
Old 09-02-2003, 09:46 PM   #10
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
"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.
 
Old 09-02-2003, 09:53 PM   #11
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
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).
 
Old 09-02-2003, 10:02 PM   #12
yeahright
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
There's several free Windows RMP extrators here....

http://www.webattack.com/freeware/do...er/fwzip.shtml
 
Old 09-02-2003, 10:39 PM   #13
yeahright
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Anyway I got it and it's good. Now to get samba running.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Programs at Startup burningsun1981 Linux - Newbie 2 07-03-2005 07:56 PM
Running scripts on startup darrenjhopkins Linux - Newbie 7 12-09-2004 04:51 AM
running scripts on startup kaguru Linux - Newbie 2 01-10-2004 06:59 AM
running a program at startup beccala33 Linux - Newbie 3 04-25-2002 05:00 PM
running a program at startup beccala33 Programming 1 04-23-2002 04:10 PM


All times are GMT -5. The time now is 02:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration