I am trying to create a kiosk client that stores its configuration on the server. Client is based on Raspberry Pi OS Lite (it runs on RevPi). Server is an Debian system. What I had in mind is following process:
- boot kiosk (first boot with customized Raspberry Pi OS Lite)
- kiosk will ask for server IP (maunual input)
- kiosk will create ssh key at this moment
- kiosk will ask server at given IP for registration (passing its MAC and generated key?)
- ? Server will receive request from kiosk with MAC and generated key.
- server will create config file for that MAC address (copy from template) and do some more adminitrative tasks.
- kiosk will reboot
- after boot kiosk will check if his local config file is same as version on the server
- if not: kiosk will download it AND reboot.
- if yes: it will precess it and run... for ever till end of electricity.
I am done with cleaning up kiosk, I have installed what I need, all is configured as I wanted. Now I am looking for an elegant solution to my only problem, atm: How to send kiosks MAC address to server without any login ceremony. I thought of using a daemon on server side that listens at port for and messages with MAC address and ssh-keys but it have no idea how to
I used info from how to pass arguments to Linux daemon/service and my daemon is based on http://www.netzmafia.de/skripten/unix/linux-daemon-howto.html