Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: Assw04992 on 20 August 2002, 04:45

Title: redhat 7.3
Post by: Assw04992 on 20 August 2002, 04:45
ive installed redhat 7.3 and everything was going great till I change localhost.localdomain to something else.  
Now it asks me to login in a command prompt screen with no gui at all (being a linux novice, I have no idea how to start the gui from here)

Please help

Allan
x
Title: redhat 7.3
Post by: Assw04992 on 20 August 2002, 05:03
ok, i was browsing the forum and found a similar problem.

I typed "Startx"  

and then got the error "no screens found"

Plz help before i install xp again, I dont want to!
Title: redhat 7.3
Post by: voidmain on 20 August 2002, 08:45
And how/where did you change the host name?  There are several things that depend on the name and there are more than one place where the host name is defined.  There is the command "hostname" that you can change the name of your server, which should match the entries in the "/etc/hosts" and "/etc/sysconfig/network".  

In addition to that, there may be other places where the name of your server is used and could cause problems if you change the system but not the config files. Those would be Apache and Sendmail configurations to name a couple.

Now I certainly wouldn't want to discourage you from changing your machine name as I do it regularly.
Title: redhat 7.3
Post by: choasforages on 20 August 2002, 21:37
ahhh, i think you have a /etc/hosts problem, well, you can have more then one entry in there, just for example, here is my /etc/hosts config


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1      choasnet_7.3 choasnetv73  localhost.localdomain localhost choasnet_v7 choasnetv_7.3 choasnet_v7.3


so just add the localhost.localdomain in the /etc/hosts

now, as to how to do that

at the login prompt type in your name

and it should prompt for you password, type it in


then type in

su
and enter the root password

the type in

vi /etc/hosts

then hit the i key once

and scroll down to the entry and add localhost.localdomain on the entry

then hit escape key, then hold shift down and hit z twice
then type into the console
reboot

and it should come back with a graphical login on reboot, i hope this helps you
Title: redhat 7.3
Post by: choasforages on 20 August 2002, 21:38
if it does not help you, i can try to guide you through reseting X up and such, its really easy actally
Title: redhat 7.3
Post by: Assw04992 on 20 August 2002, 14:11
Vi Solution didnt help work :'(

Plz help reset x

Allan
x
Title: redhat 7.3
Post by: voidmain on 20 August 2002, 20:09
quote:
Originally posted by Assw04992:
Vi Solution didnt help work :'(

Plz help reset x

Allan
x



What *exactly* did you change before it stopped working and how in what file using what editor or command?  If you answer my questions I can help you fix it.
Title: redhat 7.3
Post by: Assw04992 on 21 August 2002, 20:26
Sorry voidmain, I really cant remember, I think it was in the dialog where you setup your network card properties (etho 1, 2 , 0 etc)

Thats the only clue I can give.

Thanks for all your help above, you are all nice people here  (http://smile.gif)  im glad to be part of the forum.
Title: redhat 7.3
Post by: Master of Reality on 21 August 2002, 21:06
what about /var/log/XFree86.0.log?
Could you look in there then go to the end(where the error 'no screens found' should be seen) and look to see if there was any other error before that.
open up /var/log/XFree86.0.log in less:
less /var/log/XFree86.0.log