hans wrote:
> Hi,
>
> I've installed RH 9. When it boots and i log in as root (or whatever
> user) the prompt always is: [root@(none).
What hostname did you assign during the installation?
What is in /etc/sysconfig/network?
What is in /etc/sysconfig/networking/profiles/default/network?
Do you know that a hostname doesn't have a domain attached to it? If you
were mysite.com, the hostname is "mysite," the domain name is "com."
> When i run hostname, it does not return anything. When i run hostname
> with a name behind it, e.g. hostname mycomputer, and i run hostname
> again, the hostname is not set.
No way (as root). Try this again:
# hostname myhost
# hostname
myhost
Always, perpetually, forever (as root).
>
> In my /etc/hosts i have:
> 127.0.0.1 localhost.localdomain localhost
> 10.0.0.155 mycomputer.localnet mycomputer
>
> In my /etc/sysconfig/network i have:
> NETWORKING=yes
> HOSTNAME=mycomputer.localnet
That is not a hostname. A hostname would be "mycomputer".
> DOMAINNAME=localnet
> FORWARD_IPV4=yes
> GATEWAY=10.0.0.138
>
> What can be wrong and why is the hostname command not working?
Perhaps you need to read up a tiny bit on hostnames.
--
Paul Lutus
http://www.arachnoid.com