Created
August 19, 2021 08:25
-
-
Save satr/da8fd528057a30ecad822fbd93265470 to your computer and use it in GitHub Desktop.
Setup Raspberry Pi as kiosk
This file contains hidden or 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 | |
#add following line to the file /etc/xdg/lxsession/LXDE-pi/autostart or /home/pi/.config/lxsession/LXDE-pi/autostart | |
@chromium-browser --start-fullscreen --kiosk URL | |
#some people suggest to use files /etc/xdg/lxsession/LXDE /autostart or /home/pi/.config/lxsession/LXDE /autostart | |
# which does not work for me (as seems they are not for “pi” user) | |
#Options: | |
#”--kiosk" option – hides “F11 to full screen” message, but to exit from the browser - hit Alt+F4 | |
#instead of specifying the URL in the autostart file – add the URL as a home startup page | |
#Disable Swap | |
sudo dphys-swapfile swapoff && \ | |
sudo dphys-swapfile uninstall && \ | |
sudo systemctl disable dphys-swapfile | |
#disable scree saving | |
xset s 0 | |
xset -dpms | |
#validation: | |
xset q | |
#or install a screensaver and in the System Preferences/Screensaver – turn it off | |
sudo apt install xscreensaver | |
# To remove a black border around the display – in the /boot/config.txt file uncomment disable_overscan=1 and set negative numbers in overscan_left, overscan_right, etc and restart the RPi | |
sudo nano /boot/config.txt | |
disable_overscan=1 | |
overscan_left=-16 | |
overscan_right=-16 | |
overscan_top=-16 | |
overscan_bottom=-16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment