2.6 KiB
Disclaimer
I cannot guarantee that passwords in the screenshots generated by this script will be safe. It seems to be a pretty good blur, but I am not well acquainted with image recovery practices.
Introduction
This script is designed to help you help others keep you accountable. It places blurred screenshots every few minutes into ~/.screenmonitor/output and deletes them after three days. From there, you should set up an automated distribution method to get them to someone who will agree to browse them on occasion. One such method is suggested under the header "File Distribution".
No accountability system can replace the need for self control, and there are some obvious workarounds for this one. However, I believe it is valuable as a simple tool.
Deployment Instructions
-
Install Python and pip:
sudo apt-get update sudo apt-get install -y python3-pip
-
Clone the repository:
git clone https://githaven.org/Alexander_Franklin/screen-monitor.git cd my_service
-
Make the install script executable:
chmod +x install.sh
-
Run the install script to install dependencies and configure the service:
./install.sh
The service should now be installed, enabled to start on boot, and running.
To uninstall, run the following inside the repository folder. It does not have to be the same repository you installed it from.
-
Make the uninstall script executable:
chmod +x uninstall.sh
-
Run the uninstall script to remove the service and program folders:
./uninstall.sh
Note that this script will not uninstall the pip packages.
File Distribution
Syncthing is a wonderful tool for peer to peer file synchronization. You can install it, then set up the output folder for this script as a syncing folder in syncthing. The person who you send your screenshots to will need to download it as well and pair with your device. They can set their folder to keep staggered backups to avoid letting you delete or replace your screenshots, and they can set it to "receive only" to be able to sync it with other people so they can view them all at once, though that may cause issues if they aren't sure who a screenshot is from. It may also help to sync them to a server between you, so that the screenshots are immediately uploaded.
Here's the download instructions for Debian, Ubuntu, etc. And here are the instructions to start in on startup. I suggest using systemd with a system service.