Embedding a stream from a camera

Möchte mann den Feed einer Webcam auf einer Webseite einbinden, gibt es ein paar Punkte die beachtet werden müssen. Je nach Kamera-Hersteller ist dies einfacher, komplizierter oder nicht direkt möglich. Viele Kameras können mittels RTSP-Stream angebunden werden, welches mit einem geeignetem Programm angesehen, aber nicht direkt auf einer Webseite eingebunden werden kann. Stream Setup Im Idealfall kann die Kamera so konfiguriert werden, dass ein MJPEG stream abgerufen werden kann. Je nach Hersteller kann die Konfiguration zum Beispiel mittels dem Common Gateway Interface (CGI) erfolgen. Ist diese Möglichkeit gegeben, erfolgt die Befehlseingaben, in meinem Fall mittels der folgenden URL im Browser: ...

July 27, 2025 Â· 2 min Â· 265 words Â· Fabian

bat – more beautiful cat and MANPAGER

Reading man- and help- pages is boring. Thankfully we can color it with batcat. cat- alternative bat is an alternative for displaying file content instead of using cat. bat is capable of recognizing the syntax of multiple languages and displaying it highlightet known from our beloved IDE’s and texteditors. It even brings some Git integration. To install bat, run the following command in your terminal: sudo apt install batcat On Debian and Ubuntu bat uses the command batcat due to a conflict with a different binary. If you haven’t installed that binary, bacula-console-qt you can use bat with the creation of a symlink. ...

February 24, 2023 Â· 2 min Â· 320 words Â· Fabian

ssh – Konfigurationen für Linux

Für Linux 20.04 groovy SSH Konfig (ssh_config) Um die Administration zu vereinfachen kann eine ssh-Konfigurationsdatei erstellt werden. user@ubuntu:~$ cd .ssh user@ubuntu:~/.ssh$ nano config Die Syntax für die Konfigurationsdatei sieht folgendermassen aus, viele weitere Parameter sind möglich. Manpage: ssh_config Host servername Hostname x.x.x.x Port 22 User root IdentityFile /path/to/keyfile.pem Aufruf einer ssh Verbindung im Terminal mittels Befehl ssh und dem Parameter (Hostname) aus dem Configfile. user@ubuntu:~/.ssh$ ssh servername ssh Key Import / Export Variante 1 mit ssh-copy-id Führe den Befehl ssh-copy-id mit dem untenstehenden Parameter auf und gib das Remote System Passwort ein Zur überprüfung kann die Datei authorized_keys mittels cat geöffnet werden user@ubuntu:~/.ssh$ <strong>ssh-copy-id -i ~/.ssh/id_rsa.pub root@server root@server:~# cd .ssh root@server:~/.ssh# ls -l total 1 -rw------- 1 root root 92 Apr 16 18:17 authorized_keys root@server:~/.ssh# cat authorized_keys Variante 2 mit cat Verbinde dich mit dem Server via ssh. Zeige den Inhalt der Public Key an mittels cat. Und kopiere den Inhalt in die Zwischenablage. user@ubuntu:~/.ssh$ ls -l -rw------- 1 user user 2655 Apr 16 18:06 id_rsa -rw-r--r-- 1 user user 575 Apr 16 18:06 id_rsa.pub user@ubuntu:~/.ssh$ cat id_rsa.pub ssh user@dns cd .ssh bash: cd: .ssh: No such file or directory Verbinde dich mittels ssh mit dem Zielserver Wechsle ins Home-Verzeichnis Erzeuge den Ordner .ssh, falls dieser noch nicht vorhanden ist Prüfe, ob die Datei authorized_keys existiert, falls nicht, lege eine neue Datei an Kopiere den Inhalt des Public Key in die Datei, speichere diese ab KEYGEN user@ubuntu:~$ ssh-keygen -t ed25519 -C "dns pihole" Generating public/private ed25519 key pair. Enter file in which to save the key (/home/user/.ssh/id_ed25519): /home/user/.ssh/dns_pihole_ed25519 user@ubuntu:~$ cd .ssh user@ubuntu:~/.ssh$ ls -l insgesamt 16 -rw-rw-r-- 1 User User 227 Apr 16 17:59 config -rw------- 1 User User 444 Apr 16 20:13 dns_pihole_ed25519 -rw-r--r-- 1 User User 92 Apr 16 20:13 dns_pihole_ed25519.pub -rw-r--r-- 1 User User 444 Apr 16 18:14 known_hosts user@ubuntu:~/.ssh$ -t für Keytype -C für Comment anstelle User und Computername am ende des pub Key ...

February 22, 2023 Â· 4 min Â· 664 words Â· Fabian

MariaDB / MySQL – wordpress – change SiteURL

If you need to change the Site URLs of your WordPress installation you can do this by connecting to the server through the command line. This works if you are running MariaDB or MySQL. Connecting to the server To connect to your server on localhost run the following command. This will give you a prompt for the password. mysql -u root -p If you want to connect to a different server add the flag -h. ...

February 13, 2023 Â· 2 min Â· 248 words Â· Fabian

Doom emacs – Cheat Sheet

I recently startet working with emacs and the Doom framework. Below you find a list with usefully keybindings to start with. General SPC h r r restarts emacs SPC q q quit emacs SPC h d h or C-h d h or M-x doom/help shows the Doom emacs help SPC : or M-x open dialogue to search for any command SPC t l toggle line numbers (Disabled - Normal - Relative) SPC h v describe variable (show also the actual value) SPC h f describe function ...

January 26, 2023 Â· 2 min Â· 308 words Â· Fabian

Vim – Cheat Sheet

Movement h Move cursor left j Move cursor down k Move cursor up l Move cursor right ...

January 20, 2023 Â· 2 min Â· 218 words Â· Fabian