Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hostname
16-03-2015, 04:35 PM,
#1
Hostname
Hi Guys,

I'm using a few of these Raspberry PI's how do I change the hostname on each one?

Thanks,

Ben
Reply
16-03-2015, 04:57 PM,
#2
RE: Hostname
As Admin noted in this post - http://forum.armtc.net/showthread.php?ti...74#pid2174

rpitc sets the hostname based on the Serial of the Pi (MAC I believe) so you must edit the /etc/init.d/hostname.sh script and comment out lines 24 and 25 first.

Then edit your hosts and hostname files with the hostname you want to use instead:

sudo nano /etc/hostname
sudo nano /etc/hosts

Reboot and your hostname is now set.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)