Skip to content
Snippets Groups Projects
Commit 93a94422 authored by Charles JAVERLIAT's avatar Charles JAVERLIAT
Browse files

Move avahi instructions

parent 51626a38
No related branches found
No related tags found
No related merge requests found
......@@ -67,8 +67,6 @@ You can add your personnal SSH public key to the Raspberry Pi's `authorized_keys
ssh-copy-id pi@raspberrypi.local
```
**Note**: It is possible to encounter an issue where SSH is very slow when connecting using mDNS `your-hostname.local` after changing the default hostname... After a bit of research and experiments, it looks like you need to edit the `/etc/avahi/avahi-daemon.conf`, uncomment and change `host-name=your-hostname` to match your hostname. Now reboot and it should be working just fine.
### Change locale
```sh
......@@ -110,8 +108,10 @@ sudo raspi-config
Go to 'System Options'> 'Hostname' and enter the new hostname you want to use. This will modify the `/etc/hostname` and `/etc/hosts` files.
In `/etc/avahi/avahi-daemon.conf`, uncomment the `host-name` and set it to your new hostname: `host-name=your-hostname`. For some reason, if you don't change this then the SSH connection when using the custom domain name is very slow...
Reboot your Raspberry Pi for the `avahi` mDNS daemon to apply the changes.
You should now be able to `ping your-hostname.local` from your computer if it is on the same network as the Raspberry Pi.
You should now be able to `ping your-hostname.local` and `ssh pi@your-hostname.local` from your computer if it is on the same network as the Raspberry Pi.
## Allows control of the GPIOs
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment