Cookies helfen uns bei der Bereitstellung unserer Dienste. Durch die Nutzung unserer Dienste erklären Sie sich damit einverstanden, dass wir Cookies setzen.

Unser Blog

schönen Mittwoch!

Change the hostname of your Raspberry Pi

Changing the hostname of your Raspberry Pi is easy.
Just follow these simple steps:


SSH into your box with ssh pi@{IP} and enter your password.


Edit the hostname in /etc/hostname. Use an editor of your choice to do so (i prefer nano).
sudo nano /etc/hostname

Change the name to whatever you like and save it.


Now you need to edit the name in /etc/hosts right next to sudo nano /etc/hosts

Note: the name in /etc/hostname and /etc/hosts need to be identical so double check for typos.


Reboot your box with sudo reboot.

comments powered by Disqus