2024-08-01 17:45:46 -07:00
|
|
|
## Deployment Instructions
|
2024-08-01 17:20:44 -07:00
|
|
|
|
2024-08-01 17:45:46 -07:00
|
|
|
1. Install Python and pip:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y python3-pip
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Clone the repository:
|
|
|
|
|
|
|
|
```sh
|
2024-08-01 17:54:06 -07:00
|
|
|
git clone https://githaven.org/Alexander_Franklin/screen-monitor.git
|
2024-08-01 17:45:46 -07:00
|
|
|
cd my_service
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Make the install script executable:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
chmod +x install.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
4. Run the install script to install dependencies and configure the service:
|
|
|
|
```sh
|
|
|
|
./install.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
The service should now be installed, enabled to start on boot, and running.
|
2024-08-01 18:04:11 -07:00
|
|
|
|
|
|
|
To uninstall, run the following inside the repository folder. It does not have to be the same repository you installed it from.
|
|
|
|
|
|
|
|
1. Make the uninstall script executable:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
chmod +x uninstall.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Run the uninstall script to remove the service and program folders:
|
|
|
|
```sh
|
|
|
|
./uninstall.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that this script will not uninstall the pip packages.
|