<br><br><div><span class="gmail_quote">On 3/3/07, <b class="gmail_sendername">Andrew Parker</b> <<a href="mailto:andrewparker@bigfoot.com">andrewparker@bigfoot.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 3/2/07, Gerry Tool <<a href="mailto:gerrytool@gmail.com">gerrytool@gmail.com</a>> wrote:<br>> When in F7T2, the terminal prompt lists my computer as localhost, even<br>> though I gave it a name during install.
<br>> [root@localhost ~]#<br>><br>> When in F7T1, it lists my computer as F7T1, the name I gave it when<br>> installing from DVD.<br>> [root@f7t1] ~]#<br>><br>> The /etc/hosts files have the same form:
<br>> [root@localhost ~]# diff /etc/hosts /mnt/f7t1/etc/hosts<br>> 3c3<br>> < <a href="http://127.0.0.1">127.0.0.1</a>     <a href="http://f7t2.thetoolshed.us">f7t2.thetoolshed.us</a>     f7t2    localhost.localdomain
<br>> localhost<br>> ---<br>> > <a href="http://127.0.0.1">127.0.0.1</a>     <a href="http://f7t1.thetoolshed.us">f7t1.thetoolshed.us</a>     f7t1    localhost.localdomain<br>> localhost<br>><br>> This naming persists, even though I set hostname with the hostname command.
<br>><br>> The next time I boot to f7t2, the hostname is back to "localhost"<br>> [root@localhost ~]# hostname<br>> localhost<br>> [root@localhost ~]# hostname <a href="http://f7t2.thetoolshed.us">
f7t2.thetoolshed.us</a><br>> [root@localhost ~]# hostname<br>>  <a href="http://f7t2.thetoolshed.us">f7t2.thetoolshed.us</a><br>><br>> In f7t1:<br>> [root@f7t1 ~]# hostname<br>> <a href="http://f7t1.thetoolshed.us">
f7t1.thetoolshed.us</a><br>><br>> Here are the /etc/sysconfig/network file contents:<br>> [root@localhost ~]# cat /etc/sysconfig/network<br>> NETWORKING=yes<br>> yesHOSTNAME=<a href="http://f7t2.thetoolshed.us">
f7t2.thetoolshed.us</a><br>> [root@localhost ~]# cat /mnt/f7t1/etc/sysconfig/network<br>> HOSTNAME=<a href="http://f7t1.thetoolshed.us">f7t1.thetoolshed.us</a><br>> NETWORKING=yes<br>> yesHOSTNAME=<a href="http://f7t1.thetoolshed.us">
f7t1.thetoolshed.us</a><br>><br>> There was a bug in F7t1 anaconda (bugzilla #227250) that didn't honor the<br>> host name set by the user; is that still the problem?  Or, is there<br>> something I'm forgetting to do?   I added this comment to the bug report.
<br>><br>> In this case, removing the yes from yesHOSTNAME and restarting the network<br>> does not solve the naming problem.<br>> [root@localhost ~]# service network restart<br>> Shutting down interface eth0:
<br>> [  OK  ]<br>> Shutting down loopback interface:<br>> [  OK  ]<br>> Bringing up loopback interface:<br>> [  OK  ]<br>> Bringing up interface eth0:<br>> Determining IP information for eth0... done.
<br>><br>> [  OK  ]<br>> [root@localhost ~]#<br>><br><br>During install, I had my hostname supplied by DHCP checked (it was<br>right), but after installation it says localhost too.</blockquote><div><br>One
of the things I did above took care of the problem.  A reboot later
resulted in the hostname in the prompt line being f7t2 as I wanted. 
The service restart evidently did not take care of recognizing the new
name.<br><br></div>Gerry<br></div>