2020 version of our RPI4 Media Server setup
helper files to get the media server up and running properly
=> Latest Raspbian Image
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get upgrade
https://github.com/billz/raspap-webgui
=> setup a home page on the pi
sudo geany /etc/lighttpd/lighttpd.conf
=> modify the index file names to be html first so we can insert a static page
index-file.names = ( "index.html", "index.php" )
=> copy over the simple page and img from the ssd
sudo cp /mnt/MEDIA/shared-disk/www/* /var/www/html/
https://github.com/pimoroni/fanshim-python
sudo apt-get install -y samba samba-common
sudo mkdir /share
sudo chmod 777 /share
sudo geany /etc/samba/smb.conf (see the smb.conf file)
sudo smbpasswd -a pi
sudo apt-get install -y ntfs-3g
sudo mkdir /mnt/MEDIA
sudo chmod 777 /mnt/MEDIA
update fstab and add the line below - to get the drive to automount nicely
sudo geany /etc/fstab
LABEL=MEDIA /mnt/MEDIA ntfs-3g permissions,defaults,nofail,x-systemd.device-timeout=30 0 2
The main media drive must be labeled "MEDIA" and formatted NTFS
- movies
- music
- pictures
- shared-disk
download these files to /home/pi
- ledoff.py
- ledon.py
- up.sh
create the startup file (see the up.desktop file) you may have to create the autostart folder
sudo mkdir /home/pi/.config/autostart
sudo geany /home/pi/.config/autostart/up.desktop
python ledon.py
python ledoff.py