I am installing a new Lucid Lynx server, and need to set the hostname.
echo "squire" > /etc/hostname hostname -F /etc/hostname
That didn't work. anyone knows how to set the hostname?
I believe the appropriate method from a normal user account is
Which successfully sets the hostname of my Lucid Lynx box to "testbox"
As an asside, don't forget to add your new hostname in /etc/hosts, or else sudo (and a couple other things) will complain about unknown hosts.
Example: I changed my hostname from localhost to "tara" using
and made it
(because I still wanted "localhost" to work, too)
Hostname -F does not work for me either. But try /etc/init.d/networking restart and ping your new hostname. Will be ok.