Click to See Complete Forum and Search --> : can't get graphical login!


ukio_net
03-03-2002, 05:34 AM
yes it is a newbiezied question...

but i just can't get red hat 7.2 to boot in X... yes at startup is at runlevel 5 /etc/inittab is at 5...

what else can i do?

thx

btw how can i disable the 'grouping' programs in the task menu? under sawfish?

ScRapZ_1
03-03-2002, 05:41 AM
Any error messages might help...

Try running the X config and sse if you can get it working. Did you configure X during the install? Thats probably the best way of doing it, it does it all for you. Unless of course you want to do uber stuff like graphics or games. That requires a driver update.

...but yeah, error messages. If you want, type cat /var/log/XFree86.0.log |grep EE and that will spit out all the error messages trying to start X.

TTFN,
ScRapZ_1 :p

[ 03 March 2002: Message edited by: ScRapZ_1 ]

scanez
03-03-2002, 05:54 AM
Can you get into X with startx? Do you have gdm/xdm installed?

BTW, you don't have to cat to grep...grep accepts a file as an argument

grep message filename

;)

Ludootje
03-03-2002, 07:13 AM
Originally posted by scanez:
<STRONG>Can you get into X with startx? Do you have gdm/xdm installed?</STRONG>
or check for kdm or wdm, that should do it too.

mdwatts
03-03-2002, 09:48 AM
As scanez suggested, try startx and post the errors. You'll likely have 'no screens found' as it seems to be the most popular problem.

You can pipe the startx command output to a file to make it easier to review and post the errors here.

startx &gt; /path/output_filename

bigrigdriver
03-03-2002, 11:34 AM
Another possibility: not enough memory to load GUI. Check your partition; how much of it is available (see man du or man df). If you don't have enough left, you will not be able to get a graphical login (did it to myself once by copying a directory recursively - filled up the partition). I had to do a lot of manual deletion to free up the partition. Graphical login came back like magic.

ukio_net
03-03-2002, 03:59 PM
sorry.. i forgot to say it... but yes... i can get to X using startx, no prob, about it... the issue is that can't get the system to start in X... how?

mdwatts
03-03-2002, 04:19 PM
So /etc/inittab has something like this?

# Default runlevel.
id:5:initdefault:

and

# Run kdm in runlevel 5
gu:5:respawn:/bin/sh -c 'C=/etc/rc.d/rc.gui;[ -x $C ]&&exec $C;init 3'

Any error messages? Perhaps a permissions problem?

ukio_net
03-04-2002, 05:21 PM
nop.. no error messages at startup or when starting X with startx, i mean.. i can get up and running X with startx.....

insuficient space? i got almost 700mb of free space... that seems to be enough..

any faq or howto? ..

ukio_net
03-04-2002, 07:32 PM
ohhh sheez... what a newbie i am...

now i've figure it out why X didnt' boot.. i had this problem with my network configuration... it says the system can't lookup the computer name ip... i don't know.. it all was assigned by the DHCP (my ISP i guess), so i add my computer name to the host list... but now i cant get the computer to lookup the DHCP for mi ip adress... wtf?? what can i do?

:confused:

Grif
03-05-2002, 09:58 AM
I've got the same problems. How did you get X to start automatically?

ScRapZ_1
03-05-2002, 10:06 AM
Well, I dont really know about the DHCP - I dont use it. But I've had a look around and in the file /etc/rc.d/rc.inet1 (this file contains all the info to configure your network, remember this ;) ) there is a line that says:

# To use DHCP instead of a static IP, set this value to "yes":
DHCP="no" # Use DHCP ("yes" or "no")

...my guess is to change that 'no' to a 'yes', then restart your network.

And as for starting X automatically, in /etc/inittab theres a line that says:

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

...change that '3' to a '5'. 3 means startup without X, 5 means start X automatically.

TTFN,
ScRapZ_1 :p

Grif
03-05-2002, 10:12 AM
my /etc/inittab already has:

# Default runlevel. (Do not set to 0 or 6)
id:5:initdefault:

I still get the shell prompt at bootup. "startx" works fine -- I just want to skip this step. It sounds like ukio_net had the same issue but got it to work somehow. It also says the system can't lookup the computer name ip when X is almost finished loading. any other thoughts?

ScRapZ_1
03-05-2002, 10:32 AM
Hmmm... interesting. I can think of one thing that may be a solution, but I dont know if its such a good idea. I can suggest it, and then everyone else will flame me :)

Open and edit the /etc/rc.local file and add startx at the bottom of the file (making sure its the LAST thing it'll run). Restart to test.

WARNING: This is a really clumsy hack that I thought up of just then. It might not be a good idea to do this. Although it might be ok. I'm not saying that it'll fry your machine, its probably more of a moral reason than technical, but you might want to wait until some people tell me I'm a dickhead before trying it. ;)

TTFN,
ScRapZ_1 :p

ukio_net
03-05-2002, 05:28 PM
hey ya' Grif..

i had the same problem.. /etc/inittab was already on id 5.. etc etc...

my problem was that my hostname wasnt in the /etc/hosts file.., because of that X didn't boot.. still i can get into it using startx...

look if u got an error message when starting into X..

ukio_net
03-05-2002, 05:31 PM
ohh btw

i don't have an rc.inet1 file on /etc/rc.d

?? :confused:

Grif
03-05-2002, 06:06 PM
ukio, what did you add to your /etc/hosts? did that fix it?

mdwatts
03-05-2002, 06:25 PM
In /etc/hosts, you need at least

127.0.0.1 localhost

and since I use static ip, I also have

192.168.1.4 mdw4.mdwsystems.net mdw4

and also my hostname in /etc/HOSTNAME

mdw4.mdwsystems.net

ukio_net
03-06-2002, 02:18 AM
yeap...

that was exactly what fix my problms..

mdwatts
03-06-2002, 07:39 AM
Originally posted by ukio_net:
<STRONG>yeap...

that was exactly what fix my problms..</STRONG>

So it's working now? Good news.. You're very welcome as we're glad to help.

z0mbix
03-06-2002, 09:06 AM
Originally posted by ukio_net:
<STRONG>ohh btw

i don't have an rc.inet1 file on /etc/rc.d

?? :confused:</STRONG>

Yeah that's for Slackware.

ScRapZ_1
03-06-2002, 09:31 AM
:rolleyes:

Whats the use of "If you need help RTFM. If you still need help ask a Slackware user" if the freakin config is different.

Everyone should just move to Slackware to make it easier on us ;)

TTFN,
ScRapZ_1 :p

Grif
03-06-2002, 11:12 AM
two more questions:

what if I don't have a static IP? say my local name is "linuxnewbie" -- how then should I enter it in /etc/hosts?

also, I don't have a /etc/hostname. should I create one and just put "linuxnewbie" in it?

thanks again for all the great help on this forum!

Grif
03-06-2002, 02:51 PM
got it! i put 192.168.0.1 as my ip along with my new localhost and localname and also changed /etc/hosts and /etc/sysconfig/network and it worked fine.

thanks again for your help.

mdwatts
03-06-2002, 07:34 PM
Hostname goes in /etc/HOSTNAME