Ubuntu 20.04 LTS install (summary)

xzcat ubuntu-20.04-preinstalled-server-arm64+raspi.img.xz | sudo dd of=/dev/mmcblk0 bs=32M

Connect pi via ethernet and login into it remotely

ssh ubuntu@< ip >

password is ubuntu too

Connect to wireless network
wpa_passphrase your-ESSID your-passphrase | sudo tee /etc/wpa_supplicant.conf
sudo cp /lib/systemd/system/wpa_supplicant.service /etc/systemd/system/wpa_supplicant.service

Edit /etc/systemd/system/wpa_supplicant.service
ExecStart=/sbin/wpa_supplicant -u -s -c /etc/wpa_supplicant.conf -i wlan0


Enable wireless dhcp (and static ethernet) on boot via netplan. Edit /etc/netplan/x0-xxx
    version: 2
    renderer: networkd
            optional: true
            dhcp4: true
            optional: true

Disable the slow motd message when at login over ssh in /etc/pam.d/sshd:

#session    optional     pam_motd.so  motd=/run/motd.dynamic
#session    optional     pam_motd.so noupdate

Update /etc/hostname, /etc/hosts, ... and reboot

Quick install - Raspbian-nspawn-64

A combined 32/64 bit "repackaging" of Raspian/Buster. 64 bit kernel with 32 bit Raspbian, with on top of that a 64 bit Debian Buster running in a nspawn container, more info at https://github.com/sakaki-/raspbian-nspawn-64

Can be installed with a single command from the Internet on to a USB stick...
curl -L https://github.com/sakaki-/raspbian-nspawn-64/releases/download/v1.3.0/raspbian-nspawn-64.img.xz | xzcat > /dev/sdX && sync

(not so) Quick Install - Raspian Lite

Download latest Raspbian Lite

wget https://downloads.raspberrypi.org/raspbian_lite_latest

Post Flash

Fix the annoying Perl warnings, edit /etc/ssh/sshd_config

#AcceptEnv LANG LC_*

Enable ZRAM swap
apt install zram-tools

Disable and remove swapfile
dphys-swapfile swapoff
dphys-swapfile uninstall
update-rc.d dphys-swapfile remove
apt purge dphys-swapfile

Disable and remove bluetooth
apt purge bluez bluez-firmware pi-bluetooth
Topic revision: r11 - 28 Feb 2021, AdminUser
This site is powered by FoswikiCopyright © by Eddy Vervest