RaspberryPi - xslim/dotfiles GitHub Wiki

DietPi

Flashing img

  • sudo apt-get install p7zip-full
  • 7z x DietPi*.7z
  • ls -l /dev/disk/by-uuid/ - see where the USB is connected (sda1)
  • sudo dd if=DietPi_RPi-ARMv6-Buster.img of=/dev/sda

Fix Radarr

sed -Ei 's/^(User=|Group=)/#\1/' /etc/systemd/system/radarr.service
systemctl daemon-reload
systemctl restart radarr

Fix mount

sed -i 's/SSD\sexfat\snoatime,lazytime/SSD\sexfat\snoatime,uid=dietpi,gid=dietpi,file_mode=0770,dir_mode=0770,lazytime/g' /etc/fstab
umount /mnt/SSD
mount -a
ls -al /mnt/SSD

USB OTG

  • config.txt - add dtoverlay=dwc2
  • cmdline.txt - add modules-load=dwc2,g_ether after rootwait

Ethernet fallback

  • Edit /etc/dhcpcd.conf
## define static profile
profile static_eth0
static ip_address=192.168.0.100/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

## fallback to static profile on eth0
interface eth0
fallback static_eth0