Fix update bugs
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user