Keep a history of screenshots.
- https://superuser.com/questions/1594667/how-can-i-make-a-screenshot-log-on-linux
- https://www.perplexity.ai/search/systemd-script-that-runs-once-1HMPhyn9QoeqHJ6AfpfCRQ
- Install image magick
- Update
screen-log.service- Update
ExecStartpath
- Update
- Create
/srv/screen-logdirectorysudo mkdir /srv/screen-log
- Run
sudo ./screenshot.sh - Verify a new screenshot is added to
/srv/screen-log sudo cp screen-log.service /etc/systemd/system/screen-log.servicesudo cp screen-log.timer /etc/systemd/system/screen-log.timersudo systemctl daemon-reloadsudo systemctl enable screen-log.timersudo systemctl enable screen-log.servicesudo systemctl start screen-log.timer- Check that the trigger value is shown in
systemctl status screen-log.timer● screen-log.timer - Take a screenshot every minute or two Loaded: loaded (/etc/systemd/system/screen-log.timer; enabled; vendor preset: enabled) Active: active (waiting) since Thu 2025-01-23 03:09:43 EST; 30min ago Trigger: Thu 2025-01-23 03:41:42 EST; 1min 44s left Triggers: ● screen-log.service
`
Add the following to the bottom of /etc/samba/samba.conf
[sambashare]
comment = Screen Log
path = /srv/screen-log
read only = yes
browsable = yes