News How to Change Your Raspberry Pi's Hostname

k9gardner

Honorable
Mar 27, 2015
2
0
10,510
0
I've just discovered that the methods outlined are not equivalent. I used the system Preferences GUI method, which seems equivalent to editing raspi-config, and it also affects /etc/hostname. However, after making this change, the value in /etc/hosts remains unchanged. This will cause errors when trying to elevate a command (sudo) as the new identity is not defined in the place where the system is looking for it. You'll get an "unable to resolve host" error each time. Editing the /etc/hosts value should correct this situation. Or so I hope. I'm about to do it.
 

ASK THE COMMUNITY