<2020-04-16>
From time to time I have to setup a Raspberry Pi including ssh and wlan. But it's always super annoying to connect keyboard and screen to setup ssh and wifi. And there are other ways:
- Use
dd
or etcher to flash your (raspbian) image to the Pi - Enable SSH
- Mount sd card on your Computer (not on your raspberry pi)
- Create an empty file named
ssh
and store it on the sd card on /boot
Enable Wifi
- create /boot/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev network={ ssid="YOUR_SSID" psk="YOUR_WIFI_PASSWORD" key_mgmt=WPA-PSK }
- Pi will get an IP adress from your DHCP-Server
- unmount
- Start Rarspberry Pi
- put in sd card
- power on
Get IP Adress
On your computer:
nmap -sP 192.168.XXX.1/24 # replace XXX
- most likely the hostname you are locking for is rasberrypi ;)
Connect to Raspberry Pi:
ssh pi@IpFromPrevCommand # pw: raspberry
Configure system
sudo raspi-config # Change default password! # Update System # Change settings