25 Mar, 2021
I regularly find myself wanting to prepare a Raspberry Pi SD card with SSH and Wifi already set up so that I don't need to connect a monitor and keyboard before I begin using it.
This post explains how to achieve that.
First use Imager to write Raspbery Pi OS Lite (32bit) to a 64GB SD card:
Use the Advanced Options Menu Ctrl+Shift+X
:
Keyboard layout, WiFi network, timezone etc should be automatically detected. You'll just need to choose a password for the pi
user and enter your WiFi password. You can also choose a custom hostname.
See https://www.raspberrypi.org/blog/raspberry-pi-imager-update-to-v1-6/
Then, boot up - The pi will restart first to resize the filesystem, then again, then boot properly.
If you are connected to an HDMI monitor, the prompt will include the hostname you set, and just above it will be the IP address that has been assigned.
In my case this was 192.168.0.4. You can also find out the IP by looking at the connected devices on your WiFi router.
You can then connect from another machine with:
ssh pi@192.168.0.4
The password will be the password you set in the Imager.
Once I'm in I run this to get up to date.
sudo apt update
sudo apt dist-upgrade -y
Be the first to comment.
Copyright James Gardner 1996-2020 All Rights Reserved. Admin.