Last active
February 3, 2023 09:43
-
-
Save NorskNoobing/46e0928f61598277fb9fae8c57dfa4d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt upgrade -y | |
sudo dpkg --configure -a | |
sudo apt install -y unclutter | |
#Params | |
username="sys-tbkiosk" | |
url="https://selvbetjening.mrfylke.no/agent/app#/reports/report/223" | |
#Make folders for autostart | |
sudo mkdir -p "/home/$username/.config/lxsession/LXDE-pi/" | |
#Set chromium to fullscreen on startup with a set website, and remove mouse cursor when not in use | |
echo "@xset s noblank | |
@xset -dpms | |
@xset -s off | |
@sed -i 's/\"exited_cleanly\": false/\"exited_cleanly\": true/' ~/.config/chromium/Default/Preferences | |
@chromium-browser --noerrdialogs --kiosk $url | |
@unclutter -idle 0" | sudo tee "/home/$username/.config/lxsession/LXDE-pi/autostart" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment