Syncthing, wie man mit bereits existierenden Ordner umgeht

Normalerweise wird man bei Syncthing so vorgehen:

  1. Ordner auf Gerät A der Syncthing-Konfiguration hinzuzfügen und für Gerät B freigeben.
  2. Auf Gerät B auf die Freigabe warten und einem neuen lokalen Verzeichnis zuweisen.

Was aber, wenn beide Verzeichnisse bereits (weitestgehend) synchronisiert sind? Wenn man den Zeitpunkt ungünstig erwischt und z.B. Gerät B noch nicht mit Scannen beendet hat, werden u.U. unnötig Daten übertragen.

In dem Fall hat sich folgende Vorgehensweise bewährt:

  1. Ordner auf Gerät A der Syncthing-Konfiguration hinzufügen, aber noch nicht freigeben.
  2. Ordner auf Gerät B der Syncthing-Konfiguration hinzufügen, dabei diesselbe Ordner-Kenning (Folder ID) wie auf Gerät A wählen. Der Ordner wird auch hier noch nicht freigegeben.
  3. Warten bis der Scan-Vorgang auf beiden Geräten beendet ist.
  4. Auf Gerät A den Ordner auf für Gerät B freigeben und umgekehrt.
  5. Jetzt werden idealerweise nur noch die Meta-Daten mit den Hashes ausgetauscht

Start firefox with a clean profile

There are numerous plugins for Firefox, some of them are very useful as they provide anti-tracking, security and privacy related features.


Nevertheless there are some websites having problems with these plugins. Private browsing mode is not an option in this case as by default most of the plugins are activated there too. If you just need to get things done quickly usually its the best to start with an empty profile in this case.

Continue reading “Start firefox with a clean profile”

Hotfix for courier-mta on Ubuntu 16.04

On Ubuntu 16.04 the installation of the Courier MTA package fails  with the following error message:

courier-mta.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable courier-mta
insserv: script courier-mta: service courier-mta already provided!
insserv: exiting now!

Continue reading “Hotfix for courier-mta on Ubuntu 16.04”

Howto: Courier-MTA forward only setup

Folgendes Aufgabenstellung:

  • Es gibt ein zentrales Mail-Relay (“Relay”)
  • Es gibt einen Rechner mit einem lokalem Mailserver, bei dem smartd-Alarme etc. Cron-Jobs auf dem root-Account aufschlagen (“Server”)
  • Die Mails des Rechners sollen an einen Account auf dem Relay geschickt werden, damit sie (zusammem mit den Mails anderer Rechner) gelesen werden

Continue reading “Howto: Courier-MTA forward only setup”

Ubuntu 15.10 fulldisk encryption howto

The following howto has been partly stolen from somewhere else . I adapted it to my situation. The main setup is the same: The whole installation (swap + root fs + home) should reside in a single encrypted container so that at boot we only have to provide one password and hibernate is encrypted too. Only the bootloader is unencrpyted.

Continue reading “Ubuntu 15.10 fulldisk encryption howto”