This project sets up a Raspberry Pi 4 or 5 as a music player with a touchscreen interface.
It supports: CD-ROM, USB (Any file VLC can play) and internet radio.
Can be controlled from other devices when going to the IP address of the Pi in your browser.
Follow the steps below to install and configure your system.
sudo nano /boot/firmware/config.txt
dtparam=i2c=on
dtoverlay=allo-boss-dac-pcm512x-audio
sudo apt install lighttpd php php-cgi
sudo apt install xserver-xorg xinit
sudo apt install chromium-browser
sudo apt install vlc
sudo apt install cd-discid
sudo apt install unclutter
sudo chown -R nobody:nogroup /var/www/html
sudo chmod o+w /var/www/html
/var/www/html
.index.html
first.sudo nano /etc/X11/Xwrapper.config
Add: allowed_users=anybody
sudo nano /etc/X11/xorg.conf
Add: Section "ServerFlags"
Option "blank time" "0"
Option "standby time" "0"
Option "suspend time" "0"
Option "off time" "0"
EndSection
sudo reboot
aplay -l
asound
configuration file: sudo nano /etc/asound.conf
2
with the actual card number from aplay -l
): defaults.pcm.card 2
defaults.ctl.card 2
sudo chmod +x /var/www/html/sh/auto_mount.sh
sudo chmod +x /var/www/html/sh/chromium.sh
sudo nano /etc/rc.local
Add before exit 0
: /var/www/html/sh/chromium.sh &
/var/www/html/sh/auto_mount.sh &
sudo ln -s /home /var/www/html/home
sudo ln -s /var/www/html /home/pi/htdocs
sudo apt install php-sqlite3
sudo nano /etc/php/8.2/apache2/php.ini
Add: extension=sqlite3
sudo systemctl disable NetworkManager-wait-online.service
sudo systemctl stop NetworkManager-wait-online.service
sudo systemctl disable raspi-config.service
sudo systemctl stop raspi-config.service
sudo systemctl disable e2scrub_reap.service
sudo systemctl stop e2scrub_reap.service
sudo systemctl disable bluetooth.service
sudo systemctl stop bluetooth.service
sudo systemctl disable systemd-journal-flush.service
sudo systemctl stop systemd-journal-flush.service
sudo systemctl disable rpi-eeprom-update.service
sudo systemctl stop rpi-eeprom-update.service
sudo reboot