44 lines
912 B
Markdown
44 lines
912 B
Markdown
## Deployment Instructions
|
|
|
|
1. Install Python and pip:
|
|
|
|
```sh
|
|
sudo apt-get update
|
|
sudo apt-get install -y python3-pip
|
|
```
|
|
|
|
2. Clone the repository:
|
|
|
|
```sh
|
|
git clone https://githaven.org/Alexander_Franklin/screen-monitor.git
|
|
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.
|
|
|
|
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.
|