Fix update bugs

This commit is contained in:
2021-11-29 06:53:32 +00:00
parent 0053b78e41
commit 8a05f1aacb
4 changed files with 21 additions and 35 deletions
+11 -2
View File
@@ -17,6 +17,8 @@ $ sudo raspi-config
- Reboot
```
If wifi doesn't work, you're on your own.
For the watchdog to work, we need write access to `/dev/watchdog/`.
Configure `/etc/udev/rules.d/60-watchdog.rules`:
@@ -25,13 +27,20 @@ Configure `/etc/udev/rules.d/60-watchdog.rules`:
KERNEL=="watchdog", MODE="0666"
```
Change the hostname:
```text
$ sudoedit /etc/hostname
$ sudoedit /etc/hosts
```
### Script
Install dependencies:
```text
$ sudo apt update
$ sudo apt install python3 python3-pip python-virtualenv python3-virtualenv supervisor
$ sudo apt install python3 python3-pip python-virtualenv python3-virtualenv supervisor python3-rpi.gpio
```
**Make sure you have at least Python 3.9 installed.**
@@ -42,7 +51,7 @@ Clone this repo:
$ cd
$ git clone https://tanner@git.tannercollin.com/tanner/doorbelldingdongringringdoorbell.git
$ cd doorbelldingdongringringdoorbell/
$ virtualenv -p python3 env
$ virtualenv --system-site-packages -p python3 env
$ source env/bin/activate
(env) $ pip install -r requirements.txt
```