[ Home ] [ Tech Tips ] [ Raspberry Pi ] [ Powershell ] [ Ubuntu ] [ Django ] [ About ]
Ubuntu | Change Hostname

Ubuntu | Change Hostname

Morning, lets look how to change hostname of your Ubuntu machine. Just change the newhostname variable to your new machine name and tadah
newhostname="pi-enviro"
echo "$newhostname" | sudo tee /etc/hostname
# add hostname to /etc/hosts
echo "127.0.1.1   $newhostname" | sudo tee -a /etc/hosts

 

That's all and funky time


Luke Keam
Thank you for reading. Any questions, comments or suggestions email me [email protected]
Luke Keam
techgeek.biz

FOLLOW US

Name
Email:

AD

quick-time-management logo.biz

Quick-Time-Management.com

We strive to make you healthy and productive for the long haul. Easily look back and see how you effective you have been.