diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 47 |
1 files changed, 47 insertions, 0 deletions
@@ -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 <fileserver_ip_or_host> >> /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 +``` + |