updated README
This commit is contained in:
parent
53c157d023
commit
45744fb5e4
1 changed files with 20 additions and 2 deletions
22
README.md
22
README.md
|
@ -92,18 +92,27 @@ chown=pi:pi
|
||||||
|
|
||||||
## Deploy / usefull commands
|
## Deploy / usefull commands
|
||||||
|
|
||||||
|
rsync them all
|
||||||
```bash
|
```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
|
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
|
```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
|
```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
|
### 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
|
Visit 192.168.5.1
|
||||||
The password is at the bottom of the device.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue