Skip to main content

Setup pis for fubar2k22

#Remount USB as RW
sudo /home/pi/pi_video_looper/remount_rw_usbkey.sh
use root to write to USB (sudo)
#To preserve UTF-8 filenames make USB filesystem ext4 (not exfat or fat)
#burn image to sdcard
sudo dd bs=32M if=fubar2k22pi.img of=/dev/mmcblk0

#(adjust if and of)

#Insert USB before powering pi on, delete any system files on the USB (they will be visible in tree)

#rename SSID
sudo nano /etc/hostapd/hostapd.conf

#make tree
cd /var/www/html/pivilion/gen/files
ls (USB content should be here)
 tree -H files -T fubar2k22 --charset UTF-8 -C > /var/www/html/pivilion/gen/index.html

#Edit HTML (/var/www/html/pivilion/gen/index.html)
#add <meta name="viewport" content="width=device-width, initial-scale=1">

#change charset to UTF-8 if needed

#remove credit lines

#.htaccess allow access to files (end of the file)

RewriteCond %{REQUEST_URI} !(\/aud/.*)$
RewriteCond %{REQUEST_URI} !(\/img/.*)$
RewriteCond %{REQUEST_URI} !(\/web/.*)$
RewriteCond %{REQUEST_URI} !(\/style/.*)$
RewriteCond %{REQUEST_URI} !(\/files/.*)$

Test rpi :) 
*Hug*