howtogeek — 2013-07-09T12:36:01-04:00 — #1
Originally published at: http://www.howtogeek.com/167195/how-to-change-your-raspberry-pi-or-other-linux-devices-hostname/
The default hostname for the Raspberry Pi is, creatively enough, “raspberrypi“. What if you want a different hostname or you want to avoid hostname conflicts on your local network? Read on as we show you how to quickly change the hostname of a Linux-based device.
sudobash — 2013-07-10T15:33:54-04:00 — #2
On some ditros,
/etc/HOSTNAME is used rather than
/etc/hostname. Slackware is one such distro, (but if you use Slackware, you probably already knew that.)
And also, just to be technical. There is no default hostname for the Raspberry Pi, but there is a default hostname for each distro.
lucylamutt — 2013-10-18T15:05:46-04:00 — #3
You'll also need to add a line to /etc/hosts or the Pi will ask you to login on bootup. You need these 2 lines --
::1 MyWeatherPi ip6-localhost ip6-loopback
Format these just like the existing 127.0.0.1 localhost lines
geek — 2013-12-13T11:00:05-05:00 — #4
This topic is now closed. New replies are no longer allowed.