screen-monitor/install.sh

19 lines
423 B
Bash
Raw Normal View History

2024-08-02 00:20:44 +00:00
#!/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."