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?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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
sudo hostname tara, so I edited the line in /etc/hosts that was
and made it
127.0.0.1 localhost tara
(because I still wanted "localhost" to work, too)