#!/bin/bash # be new apt-get update #wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb #sudo dpkg -i google-chrome-stable_current_amd64.deb; sudo apt-get -f install -y rm -rf /etc/localtime ln -s /usr/share/zoneinfo/America/New_York /etc/localtime # get software apt-get install \ unclutter \ xorg \ openbox \ lightdm \ locales \ -y # dir mkdir -p /home/yuu/.config/openbox # create group groupadd kiosk # create user if not exists id -u kiosk &>/dev/null || useradd -m kiosk -g kiosk -s /bin/bash # rights chown -R kiosk:kiosk /home/yuu # remove virtual consoles if [ -e "/etc/X11/xorg.conf" ]; then mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup fi cat > /etc/X11/xorg.conf << EOF Section "ServerFlags" Option "DontVTSwitch" "true" EndSection EOF # create config if [ -e "/etc/lightdm/lightdm.conf" ]; then mv /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.backup fi cat > /etc/lightdm/lightdm.conf << EOF [SeatDefaults] autologin-user=yuu user-session=openbox autologin-user-timeout=0 EOF # create autostart if [ -e "/home/yuu/.config/openbox/autostart" ]; then mv /home/yuu/.config/openbox/autostart /home/yuu/.config/openbox/autostart.backup fi cat > /home/yuu/.config/openbox/autostart << EOF #!/bin/bash unclutter -idle 0.1 -grab -root & while : do xrandr --auto chromium \ --no-first-run \ --start-maximized \ --disable \ --disable-translate \ --disable-infobars \ --disable-suggestions-service \ --disable-save-password-bubble \ --disable-session-crashed-bubble \ --incognito \ --kiosk "https://rosterboard.jouleworks.net/board/fd2024/kiosk/e05b43bf-c7b8-4d3c-a942-c7502dc228ce/" sleep 5 done & EOF echo "Done!" reboot