From 7634ee33120e7ef601ba1e806c63fe61c53e46bb Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 18 Jun 2021 10:00:10 +0200 Subject: WIP: Implement Transport --- README.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 7ea1b71..e8f7716 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,50 @@ A software to take beautiful pictures of birds with a Raspberry Pi Camera. +# Usage + +## Prepare the Target Fileserver + +TODO + +Some notes: +``` +ssh-keygen -y -f ~/.ssh/id_rsa # generates and prints public key of this private one +sudo mkdir /srv/birdscan +sudo chown -R birdscan:birdscan /srv/birdscan +sudo chmod -R 700 /srv/birdscan +sudo setfacl -m u:myuser:rwx /srv/birdscan +``` + +## Install and configure birdscan on main Server + +Install and configure birdscan in these few steps on an Arch Linux system: + +``` +mkdir -p ~/ABS # create a directory for the arch build system +cd ~/ABS +git clone https://aur.archlinux.org/python-picamera.git # download picamera from AUR +cd picamera +makepkg -si # build and install picamera dependency +mkdir ../birdscan +cd ../birdscan +# (download PKGBUILD for birdscan to current directory FIXME: insert link here) +makepkg -si # build and install birdscan +sudo ssh-keyscan -t rsa >> /etc/ssh/ssh_known_hosts # add host key of fileserver +sudo vim /etc/birdscan/config.json # edit config file +sudo systemctl enable --now birdscan # start and enable birdscan +``` + +Change the configuration like this: + +``` +sudo vim /etc/birdscan/config.json +sudo systemctl restart birdscan +``` + +If something does not work you can get a live log of birdscan like this: + +``` +journalctl -fu birdscan +``` + -- cgit v1.2.3-70-g09d2