When I search my network for devices, all my Raspberry Pi's are coming up with the name "Raspberry Pi".

How can I change that name? Because when I use my Raspberry Pi's it's easier to connect to a single one with the right name.

Currently it takes too long to try my tests out.

I hope I can change the name on the network to "PiAMP numb. X".

  • Is the name "Raspberry Pi" with a space or "RaspberryPi" without a space? My guess is the later as a space is not a valid character in a host name, at least as far as I know. Also, how many Raspberry Pi units do yo have? I'm just curious. – HeatfanJohn Jul 16 '13 at 15:58

See man hostname:

Hostname is used to display the system's DNS name, and to display or set its hostname or NIS domain name.

To make the change permanent, change "raspberrypi" to whatever in:

  • Its still showing Raspberry Pi in my network showing tool :/ – ParisNakitaKejser Jul 16 '13 at 10:39
  • @ParisNakitaKejser Whatever hostname reports (with no args) is the hostname the system is using. What is your "network showing tool"? Maybe it has something cached for the pi's IP or MAC address or something and needs to update or reset its records... – goldilocks Jul 16 '13 at 11:30

Changing the hostname is part of raspi-config (the thing you see when you first boot the Raspberry Pi). Just run:

sudo raspi-config

You'll get a nice GUI. Choose 8 Advanced Options and then A2 Hostname, and follow the instructions.

  • Its still showing Raspberry Pi in my network showing tool :/ – ParisNakitaKejser Jul 16 '13 at 10:39

protected by Ghanima May 19 '16 at 10:18

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.