updated README

This commit is contained in:
Hugvey Central Command 2019-05-12 14:42:50 +02:00
parent 53c157d023
commit 45744fb5e4
1 changed files with 20 additions and 2 deletions

View File

@ -92,18 +92,27 @@ chown=pi:pi
## Deploy / usefull commands
rsync them all
```bash
for i in {1..26}; do echo $i; rsync -av ~/hugvey/ pi@hugvey$i.local:/home/pi/hugvey/ --exclude=www --exclude=venv --exclude=local --exclude=*.pyc --exclude=.git --exclude=recordings --exclude=/voice* --exclude=/pd; done
```
shut all of them down
```bash
for i in {1..6}; do ssh pi@hugvey$i.local "sudo shutdown -h now"; done
for i in {1..26}; do ssh pi@hugvey$i.local "sudo shutdown -h now"; done
```
restart supervisor on all of them
```bash
for i in {1..6}; do ssh pi@hugvey$i.local "supervisorctl restart hugvey_client"; done
for i in {1..26}; do ssh pi@hugvey$i.local "supervisorctl restart hugvey_client"; done
```
install bash on all of them
```bash
for i in {1..26}; do echo $i;ssh pi@hugvey$i.local "cd hugvey && sudo bash install_server.sh"; done
```
### Monitoring the server processes
@ -205,3 +214,12 @@ times occured/only on n-th instance: determines the order of diversions of the s
Visit 192.168.5.1
The password is at the bottom of the device.
# Restoring a hugvey
- Write image `/mnt/stash/hugvey.img` to the microSD card.
+ You can use `gnome-disks` 'restore image' for that
- Open partition called rootfs, and `sudo nano etc/hostname`
+ Change hugvey20 into hugveyX (the number you need)
- Start it, rsync, install_server.sh as mentioned above.