Pi 5

From Wildsong
Revision as of 05:11, 10 July 2024 by Brian Wilson (talk | contribs)
Jump to navigationJump to search

I have two Pi 5s now, "pi5" and "asl". I started out setting up All Star Link on ASL, hence its name. It's not there right now. It's just Bookworm.

I put a reservation for both 5s for addresses on Wenda DHCP and into pihole on Bellman.

Getting an operating system onto the NVME is a trick. You install a full GUI onto an SD card and then run the Raspberry Pi Imager and target the NVME. This is the easiest way, really. It's a squeeze to get an SD card into the Pi when it has the NVME adapter installed because the ribbon cable gets in the way. You can set the Pi to boot first from the NVME or the SD, so it's possible to just leave the SD card in there "for next time" or as a rescue disk.

WiFi did not get set up during installation. I did it with command line, like this

sudo nmcli d wifi connect "wildsong" password "YOUR SECRET HERE" ifname wlan0

Disable ipv6 by adding this to /etc/sysctl.conf

# Disabling the IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.wlan0.disable_ipv6 = 1

NVME

I added the Pimroni NVME interface and wanted to start again.

I did not want to have to mess around with taking the NVME card out to rewrite it so I downloaded the OS image, then used the SD card image to write to it, like this

wget https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-07-04/2024-07-04-raspios-bookworm-arm64-lite.img.xz
sudo rpi-imager --cli *xz /dev/nvme0n1

I set the boot order with raspi-config to be NVME first, then SD card.

I had to edit the config.txt to add these lines to get UART access.

enable_uart=1 
dtoverlay=disable-bt
dtparam=uart0=on

This ends up not setting up an account though, it's back to logging in as "pi". This was a minor problem since I was never able to set the password and so the system was useless. I disconnected the NMVE, booted from SD, set it to boot from SD, reconnected NVME, booted from SD, used commands to mount the NVME, and manually edited passwd, shadow, and group. Then set it to boot from NVME again and finally I am back in business.