replace service for start on login #1
Owner
```#!/bin/bash
# Create a new user
sudo adduser --gecos "Kiosk User" --disabled-password kiosk-user
echo "kiosk-user:UckfieldRfc1954!" | sudo chpasswd
# Set up auto login
sudo bash -c 'cat << EOF > /etc/lightdm/lightdm.conf
[SeatDefaults]
autologin-user=kiosk-user
autologin-user-timeout=0
user-session=ubuntu
greeter-session=unity-greeter
EOF'
# Create the autostart directory if it doesn't exist
mkdir -p /home/kiosk-user/.config/autostart
# Create a startup script for Firefox
sudo bash -c 'cat << EOF > /home/kiosk-user/.config/autostart/firefox.desktop
[Desktop Entry]
Type=Application
Exec=firefox -kiosk http://your-url-here
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Firefox
Name=Firefox
Comment[en_US]=
Comment=
EOF'
# Set the correct permissions for the startup script
sudo chmod 755 /home/kiosk-user/.config/autostart/firefox.desktop
sudo chown -R kiosk-user:kiosk-user /home/kiosk-user/.config
# Reboot the system
sudo reboot
```
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Chris/ClubhouseDisplays#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?