screen-monitor/install.sh
2024-08-01 17:20:44 -07:00

19 lines
423 B
Bash

#!/bin/bash
# Install Python dependencies
pip3 install -r requirements.txt
# Copy the systemd service file
sudo cp src/screenmonitor.service /etc/systemd/system/
# Reload systemd to recognize the new service
sudo systemctl daemon-reload
# Enable the service to start on boot
sudo systemctl enable screenmonitor
# Start the service
sudo systemctl start screenmonitor
echo "Service installed and started successfully."