-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
6 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
3 changes: 3 additions & 0 deletions
3
mkosi.profiles/kiosk/mkosi.extra/usr/lib/systemd/system-preset/05-particleos-kiosk.preset
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
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 |
4 changes: 4 additions & 0 deletions
4
mkosi.profiles/kiosk/mkosi.extra/usr/lib/sysusers.d/10-particleos-kiosk.conf
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
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 |
8 changes: 8 additions & 0 deletions
8
mkosi.profiles/kiosk/mkosi.extra/usr/lib/tmpfiles.d/10-particleos-kiosk.conf
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
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 |
15 changes: 15 additions & 0 deletions
15
mkosi.profiles/kiosk/mkosi.extra/usr/share/factory/etc/gdm/custom.conf
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
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 |
5 changes: 5 additions & 0 deletions
5
mkosi.profiles/kiosk/mkosi.extra/usr/share/factory/var/lib/AccountsService/users/kiosk
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
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 |