2024-08-02 00:45:46 +00:00
|
|
|
## Deployment Instructions
|
2024-08-02 00:20:44 +00:00
|
|
|
|
2024-08-02 00:45:46 +00: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-02 00:54:06 +00:00
|
|
|
git clone https://githaven.org/Alexander_Franklin/screen-monitor.git
|
2024-08-02 00:45:46 +00: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-02 01:04:11 +00: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.
|