Sebastian Mogilowski's Blog

Just another blog about administration, linux and other stuff

Mai, 2020

Your own search engine part 2: web interface

Please read part 1 first. Once we have built the search engine, we need a nice web interface for it. I created a simple one with AJAX Solr. You can download it here: search.tar.gz Just put it on any web server like Apache or NGINX. Settings: In ‚lib/nutch.js‘ you can configure your solr server: solrUrl […]

Docker on Debian 10 managed with Cockpit

With Cockpit, you can also manage docker containers. Here is a small example setup: Install Docker apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add – add-apt-repository „deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable“ apt update apt-cache policy docker-ce apt install docker-ce Make sure that docker is running: systemctl status docker Output: […]

Servermanagement with Cockpit on Debian 10

Cockpit is an easy and simple remote management software for Linux servers. It is now included in Debian 10 Buster.It runs on several Linux distributions, including Debian, Ubuntu, Fedora, CentOS, RHEL and Arch Linux.With Cockpit, you can manage multiple Linux servers via your web browser. Here is an simple setup to get started with Cockpit. […]

Two-factor authentication with Guacamole 1.1.0 (Part 4)

You can add totp-auth to your Guacamole login process. You can use any TOTP App like „Google Authenticator“ or „OTP Auth“ to add a two-factor authentication to Guacamole. First download and install the totp-auth plugin: cd /usr/src/ wget http://apache.mirror.digionline.de/guacamole/1.0.0/binary/guacamole-auth-totp-1.0.0.tar.gz tar xvzf guacamole-auth-totp-1.0.0.tar.gz cp /usr/src/guacamole-auth-totp-1.0.0/guacamole-auth-totp-1.0.0.jar /etc/guacamole/extensions/ Now configurate ‚/etc/guacamole/guacamole.properties‘ with your favorite editor and add the […]

Setup LDAP/AD authentication for Guacamole 1.1.0 (Part 3)

If you don’t want to add all your users to the guacamole db for authentication you can combine the DB authentication with LDAP authentication. (You don’t have to modify your LDAP) First download and install the LDAP auth extension: wget http://apache.mirror.iphh.net/guacamole/1.1.0/binary/guacamole-auth-ldap-1.1.0.tar.gz tar xvzf guacamole-auth-ldap-1.1.0.tar.gz cp /usr/src/guacamole-auth-ldap-1.1.0/guacamole-auth-ldap-1.1.0.jar /etc/guacamole/extensions/ Now configurate ‚/etc/guacamole/guacamole.properties‘ with your favorite editor and […]

Homematic Schalter zur Stromversorgung Batteriebetriebener Homematic Komponenten nutzen

Über den meisten Lichtschaltern habe ich ein Homematic Wandthermostat (HM-TC-IT-WM-W-EU) montiert. Dieses wird mit 2 AAA Batterien betrieben, welche regelmäßig gewechselt werden müssen. Tauscht man nun den Lichtschalter durch einen Homematic Schalter (hier HM-LC-Sw1PBU-FM) aus kann man sich von dessen Netzteil auch die Stromversorgung für das Thermostat holen. Dazu öffnet man zunächst das Gehäuse des […]