Situation: you dont have monitor and peripherals, nor an Ethernet cable (another fun solution), but you know your #raspberrypi and your laptop are on the same network (or will be…) you can use #avahi on the pi to advertise itself on the local network as HOSTNAME.local.

Practically, this means once set up, you don’t need to know the current #ip of the Pi to be able to #ssh in.

**The process on the PI is:**

1. Install avahi-daemon and nss if necessary (avahi-daemon avahi-utils libnss-mdns) — on the latest FULL install of Raspberry Pi OS this is already present.
2. Start the systemd service: ‘systemctl enable --now avahi-daemon’

**Then, on your lappy:**

1. Make sure `avahi` and `nss-mdns` are installed on your system.
2. Make sure avahi is running. On Linux, this is a systemd service as above.
3. Edit **`/etc/nsswitch.conf`** so that `hosts:` line includes `mdns_minimal` before `resolve` or `dns`

You can use `avahi-browse -a` to see *everything* on your local network, this should include the Pi. You can also just try to ping it: `ping student334@334CES-N`