Created
February 23, 2023 22:56
-
-
Save Nathan22211/077b9c46d4a3122cd04784b2d3b2a4ae 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
#setup chromium in kiosk mode | |
sudo apt-get install xserver-xorg-video-all xserver-xorg-input-all xserver-xorg-core xinit x11-xserver-utils | |
sudo add-apt-repository ppa:xtradeb/apps #<-- doing this because canicol forces a snap of chromium on Ubutnu 20.04 and newer | |
sudo apt-get install chromium | |
sudo apt-get install unclutter | |
Xaxis=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1) | |
Yaxis=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2) | |
cd ~ | |
touch .xinitrc | |
echo -e "#!/bin/sh\nxset -dpms\nxset s off\nxset s noblank\n\nunclutter &\nchromium-browser 127.0.0.1:5000 --window-size=" + Xaxis + "," + Yaxis + " --start-fullscreen --kiosk --incognito --noerrdialogs --disable-translate --no-first-run --fast --fast-start --disable-infobars --disable-features=TranslateUI --disk-cache-dir=/dev/null --password-store=basic" >> .xinitrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment