feat(setup): vervang Chromium door Puffin browser via Pi-Apps
Chromium is verwijderd en vervangen door de Puffin browser in zowel pi-setup-desktop.sh als pi-setup.sh. De installatiestappen voor Puffin zijn toegevoegd met behulp van Pi-Apps. Dit zorgt voor een naadloze installatie en configuratie voor gebruik van Puffin in kiosk mode. Overbodige Chromium-specifieke browseropties zijn verwijderd, en relevante opties voor Puffin zijn behouden om de werking te optimaliseren.
This commit is contained in:
parent
9b77fed389
commit
adbeb66e9b
@ -20,7 +20,15 @@ fi
|
||||
|
||||
# Zorg dat Chromium er is
|
||||
echo "🌐 Browser controleren..."
|
||||
sudo apt install -y chromium-browser
|
||||
sudo apt install -y unclutter
|
||||
|
||||
# Installeer Pi-Apps voor Puffin browser
|
||||
echo "🌐 Pi-Apps en Puffin browser installeren..."
|
||||
wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/install | bash
|
||||
|
||||
# Installeer Puffin via Pi-Apps (automatisch)
|
||||
echo "🚀 Puffin browser installeren..."
|
||||
~/.local/share/pi-apps/pi-apps install Puffin || echo "⚠️ Puffin installatie handmatig voltooien via Pi-Apps"
|
||||
|
||||
# Configureer HDMI audio automatisch
|
||||
echo "🔊 HDMI audio automatisch configureren..."
|
||||
@ -52,11 +60,11 @@ docker-compose -f docker-compose-pi.yml up -d
|
||||
sleep 10
|
||||
|
||||
# Sluit eventuele andere browsers
|
||||
pkill -f chromium-browser 2>/dev/null || true
|
||||
pkill -f puffin-browser 2>/dev/null || true
|
||||
|
||||
# Start browser in kiosk mode met audio optimalisaties
|
||||
echo "Starting browser..."
|
||||
DISPLAY=:0 chromium-browser \
|
||||
DISPLAY=:0 puffin-browser \
|
||||
--kiosk \
|
||||
--start-maximized \
|
||||
--noerrdialogs \
|
||||
@ -65,14 +73,10 @@ DISPLAY=:0 chromium-browser \
|
||||
--disable-session-crashed-bubble \
|
||||
--disable-restore-session-state \
|
||||
--disable-web-security \
|
||||
--disable-features=VizDisplayCompositor \
|
||||
--autoplay-policy=no-user-gesture-required \
|
||||
--allow-running-insecure-content \
|
||||
--disable-background-timer-throttling \
|
||||
--disable-renderer-backgrounding \
|
||||
--disable-translate \
|
||||
--disable-features=Translate \
|
||||
--disable-component-extensions-with-background-pages \
|
||||
--lang=nl \
|
||||
http://localhost:5090 &
|
||||
|
||||
|
||||
34
pi-setup.sh
34
pi-setup.sh
@ -26,9 +26,16 @@ sudo apt install -y --no-install-recommends \
|
||||
x11-xserver-utils \
|
||||
xinit \
|
||||
openbox \
|
||||
chromium-browser \
|
||||
unclutter
|
||||
|
||||
# Installeer Pi-Apps voor Puffin browser
|
||||
echo "🌐 Pi-Apps en Puffin browser installeren..."
|
||||
wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/install | bash
|
||||
|
||||
# Installeer Puffin via Pi-Apps (automatisch)
|
||||
echo "🚀 Puffin browser installeren..."
|
||||
~/.local/share/pi-apps/pi-apps install Puffin || echo "⚠️ Puffin installatie handmatig voltooien via Pi-Apps"
|
||||
|
||||
# Configureer HDMI audio automatisch
|
||||
echo "🔊 HDMI audio automatisch configureren..."
|
||||
sudo raspi-config nonint do_audio 2 # Force HDMI audio
|
||||
@ -58,42 +65,23 @@ docker-compose -f docker-compose-pi.yml up -d
|
||||
sleep 5
|
||||
|
||||
# Sluit eventuele andere browsers
|
||||
pkill -f chromium-browser 2>/dev/null || true
|
||||
pkill -f puffin-browser 2>/dev/null || true
|
||||
|
||||
# Start browser in kiosk mode met audio optimalisaties
|
||||
echo "Starting browser..."
|
||||
/usr/bin/chromium-browser \
|
||||
puffin-browser \
|
||||
--kiosk \
|
||||
--start-maximized \
|
||||
--noerrdialogs \
|
||||
--disable-infobars \
|
||||
--no-first-run \
|
||||
--disable-session-crashed-bubble \
|
||||
--disable-restore-session-state \
|
||||
--disable-background-timer-throttling \
|
||||
--disable-backgrounding-occluded-windows \
|
||||
--disable-renderer-backgrounding \
|
||||
--disable-features=TranslateUI \
|
||||
--disable-ipc-flooding-protection \
|
||||
--enable-features=OverlayScrollbar \
|
||||
--no-first-run \
|
||||
--fast \
|
||||
--fast-start \
|
||||
--disable-default-apps \
|
||||
--disable-popup-blocking \
|
||||
--disable-prompt-on-repost \
|
||||
--disable-hang-monitor \
|
||||
--disable-background-networking \
|
||||
--aggressive-cache-discard \
|
||||
--memory-pressure-off \
|
||||
--max_old_space_size=100 \
|
||||
--force-device-scale-factor=1 \
|
||||
--autoplay-policy=no-user-gesture-required \
|
||||
--allow-running-insecure-content \
|
||||
--disable-web-security \
|
||||
--disable-features=VizDisplayCompositor \
|
||||
--disable-translate \
|
||||
--disable-features=Translate \
|
||||
--disable-component-extensions-with-background-pages \
|
||||
--lang=nl \
|
||||
http://localhost:5090 &
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user