User Tools

Site Tools


raspi_fuer_kameras_installieren

This is an old revision of the document!


RasPi installieren für Kameras als FTP Server

Wie immer erstmal updaten.

Dann /var/log in den RAM legen. Dazu in /etc/fstab folgenden Eintrag zufügen

tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=25M 0 0

Für Fernzugriff autossh installieren und Reverse SSH Tunnel einrichten

apt install autossh

Dann SSH Key Paar generieren

ssh-keygen -t rsa -b 4096

SSH Key auf Server kopieren

ssh-copy-id -i .ssh/id_rsa.pub pi@server

Dann mit

crontab -e

den autossh Tunnel als Cronjob bei reboot einfügen.

@reboot autossh -fN -R 2222:localhost:22 pi@server

ProFTPd installieren

apt install proftpd-basic

Dann in /etc/proftpd/conf.d/proftpd-custom.conf folgenden Inhalt hinterlegen

# Ftp user doesn't need a valid shell
<Global>
    RequireValidShell off
</Global>
 
# Default directory is ftpusers home
DefaultRoot /media/usb

# Limit login to the ftpuser group
<Limit LOGIN>
    DenyGroup !ftpuser
</Limit>
raspi_fuer_kameras_installieren.1641674110.txt.gz · Last modified: 2022/01/08 20:35 by admin

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki