Skip to content

rern/rOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,038 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rOS - DIY rAudio

Build rAudio - Audio player and renderer for Raspberry Pi

  • For all Raspberry Pis:
  • Create rAudio from latest releases of Arch Linux ARM
  • Interactive interface
  • Options:
    • Pre-configure Wi-Fi connection
    • Exclude features (can be as light as possible in terms of build time and disk space)

Procedure

  • Download and create Arch Linux ARM
  • SSH to Raspberry Pi
  • Create rAudio
    • Upgrade kernel and default packages
    • Install feature packages
    • Install web user interface
    • Configure
    • Setup defaults

dialog1 dialog2

Need

  • PC - Linux or Linux Live USB e.g. , Manjaro (Arch Linux) , Debian , Mint
  • Raspberry Pi
  • Micro SD card or USB drive

Create rAudio

Target device:

  • Option 1: Micro SD card (Should be at least class 10 or U1)
  • Option 2: USB drive (Not for Zero and 1)
    • Suitable for much-faster-than-SD-card drives.
    • Normal hard drive needs external power, e.g., powered USB hub, to have it spin up 5+ seconds before boot.
    • USB mass storage boot must be enabled on Raspberry.
    • Boot might takes 10+ seconds longer: Detect no sd card » read boot loader » boot

Note: Device larger than 2TB will be setup as GPT

  • For Raspberry Pi 5, 4 and 3B+ only
  • Other models: Use the device as storage with rAudio on SD card

Note: Use router pre-assigned IP address for Raspberry Pi if possible.

Run script

  • Open terminal on Linux
    • Ubuntu: Drag terminal height to at least 40 lines
    • Others: Resized by script
  • Switch to user root
# live usb: set root password (no need for manjaro)
sudo passwd root

su
  • Run
bash <( wget -qO- https://raw.githubusercontent.com/rern/rOS/main/create-alarm.sh )

Optionals

Setup Wi-Fi auto-connect for headless/no screen (if not set during build)

  • On Linux or Windows
  • Insert micro SD card
  • 3 alternatives:
    1. From existing
      • Backup the profile file from /etc/netctl/PROFILE
      • Rename it to wifi then copy it to BOOT before power on.
    2. Edit template file - name and password
      • Open wifi0 in BOOT with text editor
      • Edit SSID and Key
      • Save as wifi
    3. Generate a complex profile - static IP, hidden SSID
  • Move micro SD card to Raspberry Pi
  • Power on

Create image file (BOOT and ROOT on single device only)

  • Once started rAudio successfully
  • SSH to RPi
  • Reset for image
ssh root@<RPI IP>
bash <( curl -sL https://github.com/rern/rOS/raw/main/image-reset.sh )
  • Shutdown
  • Move micro SD card to Linux
  • Create compressed image file
bash <( curl -sL https://github.com/rern/rOS/raw/main/image-create.sh )

LED flashes - errors Decode: https://support.pishop.ca/article/33-raspberry-pi-act-led-error-patterns

About

Raspberry Pi audio player

Resources

Stars

Watchers

Forks