| « HOWTO Enlarge A VMware Disk | HOWTO get a Packard Bell scanner working. » |
So for whatever reason you need to change the hostname of your Fedora Linux machine. For me this is usually because I am playing around with a virtual machine. I have automated the setup of a generic machine installation the name always ends up as "generic".
...
Check your host name is set to something and no errors are returned. The commands below will return the host name with an without the domain.
uname -a
To change the hostname temporarily use the hostname command, and assuming you use the variable substitution in the network config for your NIC this will also change when you restart the network service. See my HOWTO: Handcraft Network Configurations
To change the hostname permanently you will also need to change the value of HOSTNAME in /etc/sysconfig/network
now when you reboot the name will be changed
Once the machine has rebooted use check that the new name is set correctly
uname -a
There you go all done!