Skip to content

Instantly share code, notes, and snippets.

@gianrubio
Created June 30, 2016 16:52
Show Gist options
  • Save gianrubio/e1006d3a7fe00cfafe6c0ba36ba2988a to your computer and use it in GitHub Desktop.
Save gianrubio/e1006d3a7fe00cfafe6c0ba36ba2988a to your computer and use it in GitHub Desktop.
echo 127.0.0.1 localhost > /etc/hosts
echo `ifconfig eth0 | awk '/inet addr/{print substr($2,6)}'` `hostname` >> /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment