Alpine Linux

If 'the event' or societal collapse happens anytime soon, it will be more important to save stored energy as much as possible. Using Alpine imo is eco friendly, cute, and generally really efficient compared to other popular distros.

Alpine RPi Router

1) Format with fdisk

fdisk /dev/sdb
o # set to dos partition table
n # new partition
enter #default for first seg
enter #default last seg
t
b # hex value for WIN FAT32 
a # bootable

2) Create filesystem

mkdosfs -F 32 /dev/sdb1
# or
mkfs.vfat -F 32 /dev/sdb1

3) Boot and run setup-alpine

Where do you want to store configs? (lbu cache)
Where do you want to cache apks? (apk cache inside lbu cache)

4) Setup Interfaces + wpa_supplicant

setup-interfaces
# or
ip link set <wlan0> up
iwlist <wlan0> scanning
wpa_passphrase <ssid> <passphrase> >> /etc/wpa_supplicant/wpa_supplicant.conf

4.5) Pulling and confirming device firmware

  • look for packages named linux-firmware-rt*
  • issues loading rt2800lib(usb) to kernel
  • seems the rtxxxx.bin used for the device is located in the 'linux-firmware-other' package now
  • rt2870.bin works when installed from 'linux-firmware-other' does not when installed directly through linux-firmware-rt* packages
https://forums.kali.org/showthread.php?37575-rt2800usb
https://gitlab.alpinelinux.org/alpine/aports/issues/274
https://www.raspberrypi.org/forums/viewtopic.php?t=15465
https://gitlab.alpinelinux.org/alpine/aports/issues/7613

5) Setting Up Access Points

  • Might have to switch to raspbian lite, the AP's wont switch to master mode and I have a feeling it's due to the drivers
  • next steps are to configure hostapd and hope for the best
    
    

```

6) Use ufw for firewall