Skip to content

Changing the hostname

quietbiker edited this page Oct 8, 2017 · 1 revision

The default hostname will be octopi If you only have 1 system on your network, this will probably be fine. Some users will have multiple systems and this will cause a problem with networking.

To change the hostname.

  1. Log in via SSH (of if you have a screen & keyboard hooked up, use that). The default host is: octopi.local Username: pi Password: raspberry
  2. At the command prompt type sudo nano /etc/hostname
  3. Change the hostname from octopi to your preferred hostname. Do not leave spaces before or after and I would recommend keeping it all lowercase.
  4. Ctrl-X and Y to save.
  5. At the command prompt enter sudo nano /etc/hosts
  6. Find the line with 127.0.1.1 and octopi
  7. Replace octopi with exactly the same hostname as you entered into the hostname file. Note: This has to exactly match, so the same CaSE.
  8. Reboot, using sudo reboot
Clone this wiki locally