Networking :: Hostname



How do I permanently change the hostname on a hd-install?

Also how do I let other machines on my network know the name of this computer especially XP....

bring up a terminal
sudo su    #become root
scite /etc/hosts
replace box with your host name

I did that, but it still asks me to log onto box. The prompt also still says box.

And now it says this when I try to sudo su:
sudo: unable to lookup box via getHostbyname()

If I ping from my XP machine it still says it can't find the host both with box and my new hostname.

There is a line in /etc/init.d/knoppix-autoconfig that says:
hostname box

I had to change this to make it work. But still it isn't available by hostname from a xp machine anybody know how?


original here.