User Tools

Site Tools


raspi_fuer_kameras_installieren

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
raspi_fuer_kameras_installieren [2022/01/08 19:33] – created adminraspi_fuer_kameras_installieren [2022/01/08 21:00] admin
Line 6: Line 6:
  
 <code>tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=25M 0 0</code> <code>tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=25M 0 0</code>
 +
 +Für Fernzugriff autossh installieren und Reverse SSH Tunnel einrichten
 +
 +<code>apt install autossh</code>
 +
 +Dann SSH Key Paar generieren
 +
 +<code>ssh-keygen -t rsa -b 4096</code>
 +
 +SSH Key auf Server kopieren
 +
 +<code>ssh-copy-id -i .ssh/id_rsa.pub pi@server</code>
 +
 +Dann mit <code>crontab -e</code> den autossh Tunnel als Cronjob bei reboot einfügen.
 +
 +<code>@reboot autossh -fN -R 2222:localhost:22 pi@server</code>
 +
 +Jetzt den USB Stick dauerhaft nach /media/usb mounten. Dazu UUID von USB Stick herausfinden mit.
 +
 +<code>ls -l /dev/disk/by-uuid/</code>
 +
 +Höchstwahscheinlich ist es /dev/sda1. 
 +
 +   25  mkdir /media/usb
 +   26  chown -R ftpuser:ftpuser /media/usb
 +   27  adduser ftpuser --shell /bin/false --home /media/usb
 +   28  adduser ftpuser ftpuser
 +   29  chown -R ftpuser:ftpuser /media/usb
 +   30  systemctl restart proftpd.service 
 +
 +/etc/fstab 
 +
 +UUID=6D70-10A7 /media/usb vfat auto,nofail,noatime,users,rw,uid=pi,gid=pi 0 0
 +
 +
 +
 +ProFTPd installieren
 +
 +<code>apt install proftpd-basic</code>
 +
 +Dann in /etc/proftpd/conf.d/proftpd-custom.conf folgenden Inhalt hinterlegen
 +
 +<code>
 +# 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>
 +</code>
 + 
 +
raspi_fuer_kameras_installieren.txt · Last modified: 2022/01/08 23:13 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