Important
All Raspberry Pi models are supported. For sufficient performance, we recommend Pi 2, 3 or Zero 2 (ARMv7
models). Because Pi 1 or Zero 1 (ARMv6
models) have limited resources, they are slower (during installation and start up procedure) and might require a bit more work! Pi 4 and 5 are an excess ;-)
Before you can install the Phoniebox software, you need to prepare your Raspberry Pi.
- Connect a Micro SD card to your computer (preferable an SD card with high read throughput)
- Download the Raspberry Pi Imager and run it
- Click on "Raspberry Pi Device" and select "No filtering"
- As operating system select Raspberry Pi OS (other) and then Raspberry Pi OS Lite (Legacy, 32-bit) (no desktop environment). 64-bit is currently not supported.
- For Pi 4 and newer also check this.
- Select your Micro SD card (your card will be formatted)
- After you click
Next
, a prompt will ask you if you like to customize the OS settings- Click
Edit Settings
- Switch to the
General
tab- Provide a hostname. (When on Mac, you will be able to use it to connect via SSH)
- Username
- Password
- Wifi
- Set locale settings
- Switch to the
Services
tab. Enable SSH with "Use password authentication" - Click
Save
- Click
- In the same dialog, click
Yes
- Confirm the next warning about erasing the SD card with
Yes
- Wait for the imaging process to be finished (it'll take a few minutes)
In case you forgot to customize the OS settings, follow these instructions after RPi OS has been written to the SD card.
You will need a terminal, like PuTTY for Windows or the Terminal app for Mac to proceed with the next steps.
-
Open a terminal of your choice.
-
Insert your card again if it has been ejected automatically.
-
Navigate to your SD card e.g.,
cd /Volumes/boot
for Mac orD:
for Windows. -
Enable SSH by adding a simple file.
$ touch ssh
-
Set up your Wifi connection.
Mac
$ nano wpa_supplicant.conf
Windows
D:\> notepad wpa_supplicant.conf
-
Insert the following content, update your country, Wifi credentials and save the file.
country=DE ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="network-name" psk="network-password" }
-
Eject your SD card and insert it into your Raspberry Pi.
-
Start your Raspberry Pi by attaching a power supply.
-
Login into your Raspberry Pi If
raspberrypi.local
does not work, find out your Raspberry Pi's IP address from your router.
Change network config
- run
sudo raspi-config
- select
6 - Advanced Options
- select
AA - Network Config
- select
NetworkManager
If you need Wifi, add the information now
- select
1 - System Options
- select
1 - Wireless LAN
- enter Wifi information
The installation process checks if a 32-bit OS is running, as 64-bit is currently not supported. This check also fails if the kernel is running in 64-bit mode. This is the default for Raspberry Pi models 4 and newer.
To be able to run the installation, you have to switch to the 32-bit mode by modifying the config.txt
and add/change the line arm_64bit=0
.
Up to Bullseye, the config.txt
file is located at /boot/
. Since Bookworm, the location changed to /boot/firmware/
(see here).
Reboot before you proceed.
Choose a version, run the corresponding install command in your SSH terminal and follow the instructions.
After a successful installation, configure your Phoniebox.
Tip
Depending on your hardware, this installation might last around 60 minutes (usually it's faster, 20-30 min). It updates OS packages, installs Phoniebox dependencies and applies settings. Be patient and don't let your computer go to sleep. It might disconnect your SSH connection causing the interruption of the installation process. Consider starting the installation in a terminal multiplexer like 'screen' or 'tmux' to avoid this.
This will install the latest stable release from the future3/main branch.
cd; bash <(wget -qO- https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/future3/main/installation/install-jukebox.sh)
This will install the latest pre-release from the future3/develop branch.
cd; GIT_BRANCH='future3/develop' bash <(wget -qO- https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/future3/develop/installation/install-jukebox.sh)
You can also install a specific branch and/or a fork repository. Update the variables to refer to your desired location. (The URL must not necessarily be updated, unless you have actually updated the file being downloaded.)
Important
A fork repository must be named 'RPi-Jukebox-RFID' like the official repository
cd; GIT_USER='MiczFlor' GIT_BRANCH='future3/develop' bash <(wget -qO- https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/future3/develop/installation/install-jukebox.sh)
Note
The Installation of the official repository's release branches (Stable Release and Pre-Release) will deploy a pre-build bundle of the Web App. If you install another branch or from a fork repository, the Web App needs to be built locally. This is part of the installation process. See the the developers Web App documentation for further details.
To follow the installation closely, use this command in another terminal.
cd; tail -f INSTALL-<fullname>.log