MongoDB: Too many open files under Ubuntu 15.04

Lately I had troubles with MongoDB after my database exceeded 2TB and started to constantly complaining about “too many open files“. In order to fix this issue I appended the following lines to “/lib/systemd/system/mongodb.service”: [Service] # Other directives omitted #…

RSync Support on Zyxel nsa325-v2 NAS

Unfortunetly the Zyxel nsa325-v2 NAS doesn’t anymore support rsync capabilities out of the box. It can be reinstalled though (even on the latest firmware 4.80) with the help of the ffp package. To be able to use it I added…

Decypher Salted OpenSSL Files with C++

I like my encrypted files salty: Especially when stored in the cloud this add protection against rainbow table attacks. Usually I encrypt my files therefore with: openssl aes-256-cbc -salt infile -out outfile It took my quite a while to figure…

Ubuntu 14.04 Swiss Keyboard Problem

After updating to Ubuntu 14.04 I experienced some serious annoyances / problems with the keyboard layout. My swiss keyboard was always put back to the english layout. After a few unsuccessfull attempts I was able to manage the get it…

Backing up Baikal via SSH

Just a one-liner for backing up Baikal remotely: ssh -C {REMOTE_USER}@{REMOTE_ADRESS} ‘mysqldump –user={MYSQL_USER} –password={MYSQL_PASSWORD} {BAIKAL_MYSQL_DATABASE} | bzip2 -c’ > baikal-backup.sql.bz2 – Needless to say that you need to add the public key of your client to servers known_keys (see here).

CalDav and CardDav Server on Raspberry Pi

In my attempt to reduce my dependencies of external cloud providers of caldav/carddav (PIM) solutions I’ve been trying out a few different servers on my raspberry pi. Among the options I’d tried were CalendarServer from Apple, ownCloud, Radicale and Baïkal….