Last active
October 16, 2023 08:07
-
-
Save Deadlyelder/60e70341fe970ae7fa1940905f3c0a6e to your computer and use it in GitHub Desktop.
v1 script for terminal
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
#!/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