Pi4

Raspberry Pi 4b 4gb

A great start for anyone who wants to start running digital services

   `.::///+:/-.        --///+//-:`
 `+oooooooooooo:   `+oooooooooooo:
  /oooo++//ooooo:  ooooo+//+ooooo.     pi4@rpi
  `+ooooooo:-:oo-  +o+::/ooooooo:      -------
   `:oooooooo+``    `.oooooooo+-       OS: Debian GNU/Linux 13 (trixie) aarch64
     `:++ooo/.        :+ooo+/.`        Host: Raspberry Pi 4 Model B Rev 1.5
        ...`  `.----.` ``..            Kernel: Linux 6.12.62+rpt-rpi-v8
     .::::-``:::::::::.`-:::-`         Uptime: 1 hour, 37 mins
    -:::-`   .:::::::-`  `-:::-        Packages: 671 (dpkg)
   `::.  `.--.`  `` `.---.``.::`       Shell: zsh 5.9
       .::::::::`  -::::::::` `        Terminal: /dev/pts/0
 .::` .:::::::::- `::::::::::``::.     CPU: BCM2711 (4) @ 1.80 GHz
-:::` ::::::::::.  ::::::::::.`:::-    GPU: Broadcom bcm2711-vc5 [Integrated]
::::  -::::::::.   `-::::::::  ::::    Memory: 212.09 MiB / 1.80 GiB (11%)
-::-   .-:::-.``....``.-::-.   -::-    Swap: 0 B / 1.80 GiB (0%)
 .. ``       .::::::::.     `..`..     Disk (/): 4.14 GiB / 228.81 GiB (2%) - ext4
   -:::-`   -::::::::::`  .:::::`      Local IP (eth0): 192.168.0.101/24
   :::::::` -::::::::::` :::::::.      Locale: en_GB.UTF-8
   .:::::::  -::::::::. ::::::::
    `-:::::`   ..--.`   ::::::.                                                                        `...`  `...--..`  `...`
            .::::::::::                OS: Raspberry Pi OS aarch64
             `.-::::-`

Old Install

Below is old news

       _,met$$$$$gg.          pi4@rpi
    ,g$$$$$$$$$$$$$$$P.       -------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) aarch64
 ,$$P'              `$$$.     Host: Raspberry Pi 4 Model B Rev 1.5
',$$P       ,ggs.     `$$b:   Kernel: 6.1.21-v8+
`d$$'     ,$P"'   .    $$$    Uptime: 2 mins
 $$P      d$'     ,    $$P    Packages: 1265 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15
 $$;      Y$b._   _,d$P'      Terminal: /dev/pts/0
 Y$$.    `.`"Y$$$$P"'         CPU: BCM2835 (4) @ 1.800GHz
 `$$b      "-.__              Memory: 202MiB / 1849MiB
  `Y$$
   `Y$$.
     `$$b.
       `Y$$b.
          `"Y$b._
              `"""

Surprised that it isn't Raspberry Pi OS? Instead I run the Debian 64 bit version as recommended by Home Assistant Supervised install. I'm a little bummed I don't get the cool Raspberry ascii art from neofetch, but honestly, the developer experience is pretty much identical

system wide backup

full-img-backup.sh

#!/bin/bash

#TODO clean out or ignore other folders and files before the copy

FILE_NAME="pi4--$(date +%y_%B_%d).img"
DEST="/ntwmnt/octo8/backups/pi4/img"
LOG="./backup-status.log"

echo " creating system wide backup "
echo $FILE_NAME

#backup img of SD card
if sudo dd bs=4M if=/dev/mmcblk1p2 of=$DEST/$FILE_NAME\
&& sudo zip -jm "$DEST/$FILE_NAME.zip" $DEST/$FILE_NAME\
; then
        sudo echo $FILE_NAME > $LOG
        sudo echo "SUCCESS" >> $LOG
else
        sudo echo $FILE_NAME > $LOG
        sudo echo "FAILURE" >> $LOG
fi

Programs & Apps

  1. Pi-hole
  2. PiVPN
  3. Home Assistant
  4. DuckDNS
  5. Hyperion

Homelab Hardware PC Builds