Headless installation with wifi and ssh enabled

Use the “Raspberry Pi imager” to make a simple installation.

Choose OS & Choose storage and press “SHIFT+CTRL+X” or the config icon in the new version 1.7 – nice to know we have now 64bit for our Raspberry PI it use more RAM so not use 64bit for the Zero W2 here the 32bit is better.

Config your wifi, ssh, keyboard layout and hostname.

You can boot from sdcard, usb flash drives, hdisks or ssd – if you have a new Raspberry, sdcard’s is not all times the best option.

If you have a synology or you own managed DHCP with tftp also PXE network boot is an good option. This is not complicated, but you need to set DHCP option 66 and define a tftp server. Synology can tftp and also manage your DHCP. Alternative use a NAS as TFTP server and PfSense for DHCP. An normal router can not manage DHCP options.

With the advanced menu in the imager is it easy to boot up the first time. You have wifi connection, ssh enabled and the right host name. Save this options for next time by simply choose “to always use” this in the advanced menu.

After the first boot you have to find the “ip-address” and login with ssh.

Remember to buy the right power supply, adapters for hdmi, sdcard, cords so you can connect keyboard and monitor if you need this.

From Windows or Linux can you now login in with ssh or use keyboard and monitor to login to your Raspberry.

ssh [email protected]

The user name is “pi”, change the ip to your ip and the password is your password from the advanced menu.

On the command prompt we now need to update the Raspberry OS.

Sudo for run as superuser, update to get new packages and upgrade to install. Raspi-config for configuration. Take a look on this menu here can you change your wifi connection, change the keyboard layout and change the hostname.

sudo apt update
sudo apt upgrade -y
sudo raspi-config

Config your installation.

Important is the “Advanced Options” – “Expand Filesystem” so you can use all space on your sdcard or boot device. And you are ready to go.

sudo reboot now

Also her a good idea is to give your Raspberry Pi an static ip address, do this in DHCP on your router, Synology or PfSense.