live cam stuff

Florian Schlegel 5a405b8705 Notiz zur Ermittlung der Alsa-Gerätenummern ergänzt 10 months ago
cam1 b32876ebbe backlight_compensation und Cleanup 10 months ago
cam2_alt df8d12d0f2 neue Startscripte begonnen 10 months ago
systemd e0eb5a6cd5 Installationsscript praxistauglicher gemacht 10 months ago
terminal1 80e62c0ef4 Cleanup 10 months ago
README.md 5a405b8705 Notiz zur Ermittlung der Alsa-Gerätenummern ergänzt 10 months ago
hosts 620b498752 /etc/hosts 2 years ago

README.md

LiveCam

Kamera-Steaming-Setup auf Basis von ZOTAC ZBOX PRO PI335 pico.

Vorbereitung (debian 10)

apt install htop git vim lshw sudo screen tmux

  • /etc/vim/vimrc.local erstellen:

autocmd BufEnter * set mouse=

  • /etc/apt/sources.list alle Zeilen erweitern auf:

… main contrib non-free

  • /etc/default/grub in Zeile GRUB_CMDLINE_LINUX_DEFAULT= einfügen:

rootflags=data=journal

  • grub updaten:

update-grub2

  • Pakete nachinstallieren:

    apt update
    apt install firmware-linux firmware-iwlwifi firmware-realtek wpasupplicant wireless-tools iw gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-alsa alsa-utils v4l-utils
    
  • in /etc/network/interfaces

    # Eventnetz
    allow-hotplug wlo2
    iface wlo2 inet manual
    	wpa-ssid "Begehungen Inklusion"
    	wpa-psk xxxxxxxxxx
    	up iw wlo2 set power_save off
    	post-up wpa_cli -i wlo2 set fast_reauth 1
    	post-up wpa_cli -i wlo2 set ap_scan 1
    	post-up wpa_cli -i wlo2 set autoscan=periodic:30
    	post-up wpa_cli -i wlo2 set_network 0 bgscan "\"simple:5:-60:60\""
    
    iface wlo2 inet dhcp
    
    iface wlo2 inet6 static
    	address fd63:bb49:f2eb:1337::c1/64
    
  • /etc/hosts ergänzen:

    fd63:bb49:f2eb:1337::c1         cam1
    fd63:bb49:f2eb:1337::c2         cam2
    fd63:bb49:f2eb:1337::a1         terminal1
    fd63:bb49:f2eb:1337::a2         terminal2
    
    useradd -m livecam -s /bin/bash -G video,audio,sudo
    passwd livecam # set the usual password
    su -l livecam
    
    reboot && exit
    
  • ggf. Anpassung der Audiodevices in den Scripten (aplay -l und arecord -l zur Ermittlung der Nummern)