Skip to content

Instantly share code, notes, and snippets.

@grenade
Created August 28, 2013 10:52
Show Gist options
  • Save grenade/6364777 to your computer and use it in GitHub Desktop.
Save grenade/6364777 to your computer and use it in GitHub Desktop.
Set hostname on Fedora, RedHat
echo "hostname.domain.example.com"> /etc/hostname
hostname -F /etc/hostname
echo "HOSTNAME=$(hostname)">/etc/sysconfig/network
echo 127.0.0.1 $(hostname) $(hostname -s) localhost.localdomain localhost > /etc/hosts
echo ::1 localhost6.localdomain6 localhost6 >> /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment