-
Notifications
You must be signed in to change notification settings - Fork 371
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.
- 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
- At the command prompt type
sudo nano /etc/hostname
- Change the hostname from octopi to your preferred hostname. Do not leave spaces before or after and I would recommend keeping it all lowercase.
- Ctrl-X and Y to save.
- At the command prompt enter
sudo nano /etc/hosts
- Find the line with 127.0.1.1 and octopi
- Replace octopi with exactly the same hostname as you entered into the hostname file. Note: This has to exactly match, so the same CaSE.
- Reboot, using
sudo reboot