Consists of
- registrationserver, a http server used for automatic adding of new PoECams
- capture, an application that downloads captures from the connected cameras
- configserver, a local http server to configure the system
- Download Raspberry Pi Imager and run it
- Select OS → Raspberry Pi OS (other) → Raspberry Pi OS Lite
- Click
CTRL + SHIFT + X
to enter advanced options - Check the button next to
enable SSH
- Set an SSH password
- Enter Wifi credentials (best is a smartphone hotspot) and set the WiFi-country
- Click Save
- Select your SD card
- Click Write
- Insert the SD card into the Raspberry Pi
- Plug in the power supply
- If you are using a smartphone hotspot, you will see a connected device and its ip
- Open a cmd terminal and type
ssh pi@<raspberrypi_hostname>.local
, e.g.
- enter your password
- If you have chosen a weak password, change the password with:
passwd
curl https://raw.githubusercontent.com/WullT/APGateway/main/scripts/clone_install_add_services.sh | bash
Change login credentials for configserver
sudo nano /etc/systemd/system/configserver.service
In line 10, change username (default admin
) and password (default CHANGE_ME
)
To apply changes, run
sudo systemctl restart configserver.service
- format the USB stick / Harddisk to ntfs
- give it a name
- on the Raspberry Pi, create a new directory, e.g.
mkdir /mnt/usb
- edit
/etc/fstab
sudo nano /etc/fstab
- append this line to the file, change LABEL=data to the name of your storage device.
LABEL=data /mnt/usb ntfs defaults,auto,users,rw,nofail,umask=000,x-systemd.device-timeout=30 0 0
- reboot the Raspberry Pi
Edit /etc/network/interfaces
Example with an additional interface (USB-ethernet dongle → eth1
):
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*
auto lo eth0 eth1 wlan0
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug eth1
iface eth1 inet static
address 192.168.50.1/24
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf