Setting up the Raspberry Pi

There are plenty of great setup tutorials. Here are the ones I use to setup the pi.

Headless tweaks

Poached from here

touch /mnt/e/ssh

    country=US
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev 
    update_config=1
    network={
        ssid="YourNetworkSSID"
        psk="Your Network's Passphrase"
        key_mgmt=WPA-PSK
    }

Remove USB drive and boot Pi

The defaults will be” system name -> raspberrypi username -> pi password -> raspberry


NOTE: Once you boot, be sure to change your password and lock down ssh access.

Setting up dev environment and .Net for Pi

sudo timedatectl set-timezone America/Los_Angeles

Settup up Snap Store

Adding the Snap store simplifies adding / updating packages. Full instructions for rPi are here

sudo apt update
sudo apt install snapd
sudo snap install core
sudo snap install snapd
sudo reboot

To Refresh a store package

wget $(curl -s https://api.github.com/repos/PowerShell/PowerShell/releases/latest | grep "browser_download_url.*linux-arm32.tar.gz" | cut -d '"' -f 4)
mkdir ~/powershell
tar -xvf ./powershell*.tar.gz -C ~/powershell
sudo ln -s ~/powershell/pwsh /usr/bin/pwsh

Assembling the box

#

linux maintenence sudo apt update sudo apt full-upgrade

creating the autoststart script - https://www.raspberrypi.org/documentation/linux/usage/systemd.md