Install Belgian eID software in Ubuntu 16.04

Partially as a reminder to myself, here the steps how to get your eID working in Ubuntu (tested on 16.04, but should be working for other versions, Debian and Linux Mint as well) Download the .deb package from the official site Install the package: sudo dpkg -i eid-archive_*_all.deb Open a terminal and update your indexes: sudo… Continue reading “Install Belgian eID software in Ubuntu 16.04”

Example to send an e-mail from your Java application (with or without TLS authentication)

In this post I just wanted to share a small example to send an e-mail from your Java application, using TLS authentication. You’ll need to include the javax.mail.jar library from JavaMail in your project as a dependency…   I think all steps are pretty much self-explaining, like how to set the host, username and password,… Continue reading “Example to send an e-mail from your Java application (with or without TLS authentication)”

PHP7: Generate secure password based on a string of allowed characters

There are quite some easy implementations out there to generate a secure random string in PHP, most of them by encoding a binary string using Base64 or bin2hex. However, this limits the characters used in your password (Base64 = A-Z, a-z, 0-9 and + and /; bin2hex = 0-9 and a-f).   Here I’ll share… Continue reading “PHP7: Generate secure password based on a string of allowed characters”

MOSUNX USB-C to 3 Port USB 3.0 + Hub Ethernet Adapter – Cable not connected (Ubuntu 16.04)

Lately I bought a “MOSUNX Futural Digital USB C to 3 Port USB 3.0 Hub 10/100/1000 Gigabit Ethernet Adapter” over AliExpress. It’s available under different names and similar descriptions (Malloom, BGEKTOTH, iMice,…). About the device itself: it seems to get pretty hot and experience disconnections on the network part (because of that?), so I don’t… Continue reading “MOSUNX USB-C to 3 Port USB 3.0 + Hub Ethernet Adapter – Cable not connected (Ubuntu 16.04)”

DHCP and static IP on a single interface: static IP disappears

I recently migrated my Ubuntu Server to an OpenStack environment. I needed two different IP-addresses, and it seemed me wise to keep the first (primary) IP-address assigned by DHCP, and then the second one static.   Due to apparent OpenStack restrictions at my current provider, the easiest way was to assign both IP-addresses to the same… Continue reading “DHCP and static IP on a single interface: static IP disappears”

MySQLTuner on 16.04: ERROR 1054 (42S22) at line 1: Unknown column ‘password’ in ‘where clause’

When running MysqlTuner on Ubuntu 16.04, you might see the error “ERROR 1054 (42S22) at line 1: Unknown column ‘password’ in ‘where clause’”, since Debian hasn’t updated his package yet (the fix has been implemented in later versions of MysqlTuner).   The root cause of this issue is the fact that MySQL changed the name… Continue reading “MySQLTuner on 16.04: ERROR 1054 (42S22) at line 1: Unknown column ‘password’ in ‘where clause’”