Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra steps for launching cage on boot with systemd #348

Open
dpellegr opened this issue Aug 18, 2024 · 4 comments
Open

Extra steps for launching cage on boot with systemd #348

dpellegr opened this issue Aug 18, 2024 · 4 comments

Comments

@dpellegr
Copy link

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 [email protected]
Failed to enable unit: Cannot alias [email protected] 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
Copy link

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
Copy link
Collaborator

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
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants