Raspberry Pi

Installation

Using rpi-imager

Flashing .img

Install rpi-imager on the host system by running:

sudo apt install rpi-imager

Insert Micro-SD card into the Raspberry Pi and connect to system with USB. Usually, a USB with power/data transmission capability is preferred. Then run:

sudo rpi-imager

Headless

Need to run this in sudo for reasons explained here.
Then basically:

You can also set the login configurations by pressing Ctrl+Shift+x to open OS Customisation menu. There you can set the Host, User, LAN and Locale settings. This is useful if you want to run headlessly.

Warning

This didn't seem to work for me the last time I tried it.

w/ Head

This is easy. For that, you need:

Boot into the Raspberry Pi with SD Card inserted and follow step-by-step process.

Also set-up SSH in the device to be able to access it remotely.

Using dd

Flashing .img

This is an alternative strategy that is supposedly completely headless. First download the appropriate .img file from the Raspberry Pi website.

# first find the SD card
sudo fdisk -l

# Take note of the mount-point usually as /dev/sdX
sudo dd if=/path/to/your/image.img of=/dev/sdX bs=4M status=progress conv=fsync

Set up User, Host and SSH

Access SD card's filesystem - specifically the bootfs. Add the following files:

Now unmount the SD card and plug it into the Raspberry Pi.

Connecting to Raspberry Pi

Important

It is important to have a wired-LAN access point available. You also need to be able to connect into the web-interface of the router that is providing the Internet access so that you can access the assigned IP of the Raspberry Pi.

Connect the Raspberry Pi to access point over ethernet and provide power to the device. Access the web-interface for the router and find out the IP of the Raspberry Pi.

SSH into the device with previously assigned username and password using the IPv4 address as the hostname.