Skip to content

Instantly share code, notes, and snippets.

@Deadlyelder
Last active October 16, 2023 08:07
Show Gist options
  • Save Deadlyelder/60e70341fe970ae7fa1940905f3c0a6e to your computer and use it in GitHub Desktop.
Save Deadlyelder/60e70341fe970ae7fa1940905f3c0a6e to your computer and use it in GitHub Desktop.
v1 script for terminal
#!/bin/sh
# ROCKY.sh
#
#
# Created by Meow on 16/10/2023.
#
useradd -m kiosk
passwd -d kiosk
yum -y install gnome-kiosk-script-session
cat > /etc/gdm/custom.conf << EOF
# GDM configuration storage
[daemon]
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false
AutomaticLoginEnable=True
AutomaticLogin=kiosk
[security]
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
#Enable=true
EOF
mkdir -p /home/kiosk/.local/bin /home/kiosk/.config
cat > /home/kiosk/.local/bin/gnome-kiosk-script << EOF
#!/bin/sh
firefox -kiosk https://tracethefacecorner-test.powerappsportals.com
sleep 5.0
exec "$0" "$@"
EOF
chmod +x /home/kiosk/.local/bin/gnome-kiosk-script
cat > /var/lib/AccountsService/users/kiosk << EOF
[User]
Session=gnome-kiosk-script
SystemAccount=false
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment