cage-kiosk / cage

A Wayland kiosk
https://www.hjdskes.nl/projects/cage
MIT License
1.22k stars 78 forks source link

Extra steps for launching cage on boot with systemd #348

Open dpellegr opened 2 months ago

dpellegr commented 2 months ago

I have been following the wiki page --> https://github.com/cage-kiosk/cage/wiki/Starting-Cage-on-boot-with-systemd but I needed to take few extra actions to make it work and I thought reporting my experience here.

First of all I got rid of the offending line Alias=display-manager.service as suggested here: https://bbs.archlinux.org/viewtopic.php?id=145075 otherwise I was stuck on

# systemctl enable cage@tty7.service
Failed to enable unit: Cannot alias cage@tty7.service as display-manager.service

Then I needed to systemctl start seatd.service and add the cage user to the seat group usermod -a -G seat cage https://bbs.archlinux.org/viewtopic.php?id=274869

I am now up and running, thanks for the nice work!

Mr-Molina commented 1 month ago

Just adding my own discovery. In debian 12 the [seatd] service runs as group [video] there is no [seat] group in debian 12

joggee-fr commented 1 month ago

The wiki page has been added to give some hints to start Cage with systemd but it is not expected to be 100% right for all distros. An adapted systemd unit file should be added to the dedicated distro package according to their choices. By the way, Debian 12 package does not include (yet?) a systemd unit for Cage.

Mr-Molina commented 1 month ago

The wiki page has been added to give some hints to start Cage with systemd but it is not expected to be 100% right for all distros. An adapted systemd unit file should be added to the dedicated distro package according to their choices. By the way, Debian 12 package does not include (yet?) a systemd unit for Cage.

Yes, I have been building my own as a way to create a super cheap dynamic digital signage food menu for my school's cafeteria. Using cheap mini pc's and DakBoard. Its is almost 99% ready, and i'm excited to roll it out. The setting of the resolution refuses to work and i've reviewed the other issues for clues but haven't solved it. But i have ordered an HDMI edid plug to force the unit to see the tv as 1080p instead of 4K. So i think, I'll be ready to deploy this week.

I have written a script to take a basic debian install almost all the way to a chromium kiosk(minus the resolution). working on ARM, and soon X86 processors running some debian or armbian distro.

This post mentioned the [SEATD] which i had completely missed in my error logs. And while i got the [permission denied] error off by adding the [video] group it got me closer but no cigar.

septatrix commented 1 month ago

I have written a script to take a basic debian install almost all the way to a chromium kiosk(minus the resolution). working on ARM, and soon X86 processors running some debian or armbian distro.

I have a similar setup (though Fedora as a base) and can recommend mkosi for that. It also allows to easily create a robust A/B partition style for updates.