Setting up a Raspberry Pi without a monitor or keyboard
- Install Raspberry Pi OS onto the Raspberry Pi via an SD card
- Add a blank file named
ssh
(without an extension) to the boot partition of the Raspberry Pi -
Add a file called "wpa_supplicant.conf" to the boot partition, with the following contents:
country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="YOUR_WIFI_NAME" psk="YOUR_WIFI_PASSWORD" }
-
Connect to the Raspberry Pi via SSH, for example:
ssh pi@raspberrypi.local
. The default username is pi, and the default password is raspberry. - Update the repositories via
sudo apt-get update
- Install RDP on the Raspberry Pi via
sudo apt-get install xrdp
- Create a new user that you'll use to connect, via
sudo adduser NEW_USER_NAME
- From your computer, connect to the Raspberry Pi via Remote Desktop Protocol (raspberrypi should work as the computer name to connect to). Use the username and password that you created in the previous step, since the pi user by default can't use Remote Desktop Protocol.