-
Notifications
You must be signed in to change notification settings - Fork 1
/
rpi_test.sh
33 lines (29 loc) · 1.19 KB
/
rpi_test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# install
apt install -y xinit x11-utils chromium-browser xdotool
# configure
sed -i -e 's/console/anybody/g' /etc/X11/Xwrapper.config
echo '*/5 * * * * root export DISPLAY=:0.0 ; xdotool key Ctrl > /dev/null 2>&1 ' | tee -a /etc/cron.d/nosleep
nano /etc/systemd/system/browser.service
[Unit]
Description=browser service
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/bin/bash -c "xinit /usr/bin/chromium-browser \
--aggressive-cache-discard \
--no-sandbox \
--enable-features=OverlayScrollbar \
--window-size=1920,1080 \
--start-fullscreen \
--kiosk \
--incognito \
--noerrdialogs \
--no-first-run \
--fast \
--fast-start \
--disable-infobars \
'https://www.google.com' -- -nocursor"
Restart=always
[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl start browser.service