lauantaina, joulukuuta 12, 2015

How to change hostname in Raspberry PI

You need to edit 2 files replace raspberry with <name> this is what you choose and does not need <> brackets

1. Edit the hostname file

sudo nano /etc/hostname

You will see raspberry change this to whatever you want (one word with  limited characters apply) <name>
CTRL+X press Y then hit Enter

2. Next you need to change the hosts file

sudo nano/etc/hosts
Change the entry raspberry
To <example>

3. Reboot

When you login you will see pi@<name> ~ this is your new prompt
sudo reboot

Ei kommentteja: