From 45744fb5e466349956f6cc097a7a708ac2d57892 Mon Sep 17 00:00:00 2001 From: Hugvey Central Command Date: Sun, 12 May 2019 14:42:50 +0200 Subject: [PATCH] updated README --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed16384..d1c5994 100644 --- a/README.md +++ b/README.md @@ -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.