Update install method
This commit is contained in:
parent
8224161476
commit
a263a26c38
12
README.md
12
README.md
@ -8,20 +8,24 @@ This project seeks to replace the OEM control panel on a Lennox Winslow PS40 pel
|
|||||||
```bash
|
```bash
|
||||||
# Update and upgrade the system
|
# Update and upgrade the system
|
||||||
sudo apt update && sudo apt upgrade -y
|
sudo apt update && sudo apt upgrade -y
|
||||||
# Install Node.js and npm along with Python and pip
|
# Install dependencies and other useful utilities
|
||||||
sudo apt install nodejs npm python3 python3-pip
|
sudo apt install nodejs npm python3 python3-pip neofetch btop fish -y
|
||||||
# Install PM2 to manage the Node.js process
|
# Install PM2 to manage the Node.js process
|
||||||
sudo npm install -g pm2
|
sudo npm install -g pm2
|
||||||
# Set up a new user to run the process with home /srv/hestia
|
# Set up a new user to run the process
|
||||||
sudo useradd -m -s /usr/bin/fish hestia
|
sudo useradd -m -s /usr/bin/fish hestia
|
||||||
# Set hestia home to /srv/hestia
|
# Set hestia home to /srv/hestia
|
||||||
sudo usermod -d /srv/hestia hestia
|
sudo usermod -d /home/hestia hestia
|
||||||
# Create a runners group
|
# Create a runners group
|
||||||
sudo groupadd runners
|
sudo groupadd runners
|
||||||
# Add the new user to the runners group
|
# Add the new user to the runners group
|
||||||
sudo usermod -aG runners hestia
|
sudo usermod -aG runners hestia
|
||||||
# Add hestia to the gpio group
|
# Add hestia to the gpio group
|
||||||
sudo usermod -aG gpio hestia
|
sudo usermod -aG gpio hestia
|
||||||
|
# Give hestia ownership of the home directory
|
||||||
|
sudo chown hestia:runners /home/hestia -R
|
||||||
|
# Set permissions on the home directory
|
||||||
|
sudo chmod 775 /home/hestia -R
|
||||||
# Create a directory for the project
|
# Create a directory for the project
|
||||||
sudo mkdir /srv/hestia
|
sudo mkdir /srv/hestia
|
||||||
# Change ownership of the directory to the new user
|
# Change ownership of the directory to the new user
|
||||||
|
Loading…
Reference in New Issue
Block a user