This is a simple application that can broadcast cryptographically signed commands to all computers in the same broadcast domain using a pre-shared key.
The Daemon should run on computers which should execute the commands.
The pre-shared key should be provided as an evironmental variable NETLOCK_PSK.
Optionally a --debug argumentum could be provided to the daemon so that it will print out debug messages.
Commands could be sent by running the netlock_cmd.py script with the command as the only argumentum.
The pre-shared key should be provided as an evironmental variable NETLOCK_PSK.
A simple lock with Mate Screensaver command is implemented as an example. Any command could be easily added.
Keep in mind that all computers that use this system must have their clocks synchronized. Even one second difference could cause invalid signature errors.