Skip to content

Instantly share code, notes, and snippets.

@robwilkerson
Created August 1, 2013 13:01
Show Gist options
  • Save robwilkerson/6131112 to your computer and use it in GitHub Desktop.
Save robwilkerson/6131112 to your computer and use it in GitHub Desktop.
Sets and persists a custom hostname on an Ubuntu server.
# Set a helpful hostname as a convenient reference.
echo "project-name" > /etc/hostname
echo "127.0.0.1 project-name" >> /etc/hosts
hostname project-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment