Skip to content

Commit

Permalink
Add kiosk profile
Browse files Browse the repository at this point in the history
This adds a profile for a kiosk-style appliance leveraging gnome-kiosk.
The user can customize the application run on first boot, or at image
build time with something like the following in `tmpfiles.d`:

```
d     /home/kiosk/.config                      0755 kiosk kiosk - -
f     /home/kiosk/.config/gnome-initial-setup-done 0644 kiosk kiosk - -
d     /home/kiosk/.local                       0755 kiosk kiosk - -
d     /home/kiosk/.local/bin                   0755 kiosk kiosk - -
C     /home/kiosk/.local/bin/gnome-kiosk-script 0755 kiosk kiosk -
```

Signed-off-by: Davide Cavalca <[email protected]>
  • Loading branch information
davide125 committed Oct 31, 2024
1 parent faddd4e commit 5b54d6a
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mkosi.profiles/kiosk/mkosi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: LGPL-2.1-or-later

[Match]
Distribution=fedora

[Content]
Packages=
@base-x
gdm
gnome-kiosk-script-session
gnome-text-editor
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: LGPL-2.1-or-later

disable systemd-homed-firstboot.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later

#Type Name ID GECOS Home directory Shell
u kiosk - "Kiosk" /home/kiosk /bin/bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: LGPL-2.1-or-later

#Type Path Mode User Group Age Argument
d /home/kiosk 0700 kiosk kiosk - -
d /var/lib/AccountsService/users 0700 root root - -
C /var/lib/AccountsService/users/kiosk 0600 root root - -
L /etc/gdm
L /etc/dbus-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-License-Identifier: LGPL-2.1-or-later

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=kiosk

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
#Enable=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1-or-later

[User]
Session=gnome-kiosk-script-wayland
SystemAccount=false

0 comments on commit 5b54d6a

Please sign in to comment.