Raspberry Pi Raspi 11 OS Lite

Download Raspberry Pi OS Lite from this page.

To get a minimal install of Raspberry Pi OS download the Raspberry Pi OS (32-bit) Lite image.

This tutorial is done using 2021-10-30-raspios-bullseye-armhf-lite.zip

Burn the image to the SD card with balenaEtcher

Connect a keyboard, mouse and monitor to the RPi and boot up. Press enter key until login prompt shows up user pi password raspberry

Configure the Rpi

sudo raspi-config

Set WIFI Country

5 Localisation Options > L4 WLAN Country > US United States

Enable SSH

3 Interface Options > P2 SSH > Yes > Enter > Finish

Set Network Name

1 System Options > S4 Hostname

Finish and Reboot

SSH from another Linux PC

On the Rpi find IP address on the inet line

ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.60  netmask 255.255.255.0  broadcast 192.168.1.255

From another Linux PC SSH into the rpi

ssh pi@192.168.1.60

password raspberry

Change User Name

Create a temporary user and just press enter at all the prompts

sudo adduser pia

Allow the new user to run sudo by adding the user to sudo group:

sudo adduser pia sudo

Reboot and login as pia

sudo reboot

ssh into the rpi as pia

ssh pia@192.168.1.60

Change pi to john sudo usermod -l newUsername oldUsername

sudo usermod -l john pi

Change home directory to john sudo usermod -d /home/newHomeDir -m newUsername

sudo usermod -d /home/john -m john

Reboot and login as the new user

sudo reboot

If the PC and the Rpi have the same user name just ssh in

ssh 192.168.1.60

The password is still raspberry so change it now

passwd

Enable Auto Login

sudo raspi-config

1 System Options > S5 Boot / Auto Login > B2 Console Autologin… as “john” Finish > Reboot Yes should be logged in after boot.

Auto SSH Login

Check to see if you have an existing SSH key on the desktop PC

ls -al ~/.ssh/id_*.pub

If not generate a new key

ssh-keygen -t rsa -b 4096 -C "your_email@domain.com"

Press Enter to accept the default file location and file name Press Enter at the passphrase prompt

Copy the public key from the PC to the Raspberry Pi

ssh-copy-id remote_username@server_ip_address

If both the PC user and the RPi user have the same name just use this

ssh-copy-id 192.168.1.60

Now you can ssh 192.168.1.60 and be automaticly logged in

update the RPi with

sudo apt update
apt list --upgradable
sudo apt dist-upgrade
sudo apt autoremove
sudo apt clean
sudo reboot

Other Software you might want

sudo apt install git
sudo apt install python3-pyqt5