summaryrefslogtreecommitdiff
path: root/README.md
blob: e8f77166a3db603374c1c4ad52617bd149a96368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

# birdscan

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
```