Monthly Archives: July 2016

Use a Let’s Encrypt certificate with ejabberd

If you want to use a custom certificate on your ejabberd instance, here is how to make it in a way which is understandable by your server.

Ejabberd requires the key, the certificate, and the chain all together in a single file (in this order).
So, if you are obtaining your certificate from let’s encrypt, you can simply:

cd /etc/letsencrypt/live/<the domain>
cat privkey.pem fullchain.pem > server.pem
chown ejabberd server.pem && cp server.pem <ejabberd certificate location>
Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?

vmware on fedora 24 with kernel 4.6

With the new kernel 4.6 found in fedrora 24, you will need to patch two modules for vmware to work again:

/usr/lib/vmware/modules/source/vmmon.tar → vmmon-only/linux/hostif.c
/usr/lib/vmware/modules/source/vmnet.tar → vmnet-only/userif.c

and replace any occurence of “get_user_pages” by “get_user_pages_remote” in these two files.

This comes particularly handy with vim where it’s only a matter of typing :%s/get_user_pages/get_user_pages_remote/g in hostif.c and userif.c . A nice feature of vim (that not everyone is aware of) is that it lets you browse zipped archives and edit the files it contains as if they were plain, uncompressed files.

Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?