ok I will edit it and see how it behaves that was just what I came up with that worked how I wanted it to from a couple templates I was using as guides.
User and Group default to root so there is no need to specify them. You also shouldn't need to set the WorkingDIrectory to /usr/bin. If that is a requirement of kaiengine it would need to be done when started from the command line which I doubt is the case.
And if it is the case I'd class that as a bug that needs to be fixed.
The kaiengine does in fact (if launched manually) run from the command line after install by typing kaiengine, afterwards you right click an IP in the command line and select OPEN URL to use their servers.
details on that here:
https://www.teamxlink.co.uk/wiki/Instal ... spberry_Pi
If that is not what you meant by your statement and still feel that thefield is not required I will remove it and check its behavior.Code:
WorkingDirectory=/usr/bin
So if I understand you correctly I should be able to do this instead and get the same results (with or without the working directory field):Code:
[Unit]Description=XLink Kai EngineAfter=network-online.target[Service]Type=simpleWorkingDirectory=/usr/binExecStart=/usr/bin/kaiengineRestart=always[Install]WantedBy=default.target
Yes. And you can remove "WorkingDirectory=...". from what you've said it isn't necessary.
No. For a number of reasons:then followed steps 3 through 9 here:
https://linuxtldr.com/create-systemd-service/oops I realize that after giving it a quick glance lol. I followed steps 3 threw 6 on that page. Good catchNot going to comment on that except to say that steps 8 and 9 undo steps 4 and 6.I'm pretty sure I have this sorted out as well. From what I have found this far I need to edit a file called autostart located inNow for the second part of this, getting my web browser to launch on start up. Off to do some more reading and sorting. i will post my progress with this part once i either need help or achieve what I am after.Code:
/etc/xdg/lxsession/LXDE-pi/
- That's the global (all users) file. Use the one specific to your user.
- It'll only work if you're using X11 with Bookworm.
to contain the following lines at the end of the file:Code:
@xset s off@xset -dpms@xset s noblank@chromium-browser --kiosk --start-maximized https://yoururl.com
Im in the process of figuring out what some of those lines are now currently to see if they even apply to what I'm doingCode:
@xset s off
Tells the computer to not go to sleep or turn on a screen saverCode:
@xset -dpms
Disables DPMS which I believe is Display Power Management Signaling if i understand correctlyCode:
@xset s noblank
Prevents the screen from blankingCode:
@chromium-browser --kiosk --start-maximized https://myurl.com
This one confuses me a little. I don't understand why or if I even need theportion as I'm not certain what this does or changes.Code:
--kiosk
It does appear that I can set the first page it loads up with theportion without having to select a homepage within the browser which is super convenient and exactly what I want any way.Code:
https://myurl.com
I'm curious if all of the following lines are absolutely needed though as it does all seem pretty redundantCode:
@xset s off@xset -dpms@xset s noblank
Can't comment on most of that except to say that you don't want or need the @ on those three xset lines. @ is lxde specific shorthand for "if the this thing exits run it again" and those commands only need to be run once each session.
As for "--kiosk", I can't be certain as I've not used it but my guess is that it tells chromium not to display things like the window decorations, the address bar, menu bar, etc. Check the documentation to be sure.
Lastly, you are aware of the security implications of doing it this way? With the "standard" RPiOS configuration and a keyboard* attached I can get a terminal with three keys. Once I have that I can get root level access with just eight more.
*: Doesn't have to be a keyboard. There are lots of devices available that can pretend to be a USB keyboard and insert key presses
Statistics: Posted by thagrol — Wed Feb 11, 2026 12:24 am