DbxIT

dealings with diverse tech challenges

Enabling Rfxcom protocols using Rfxcmd on Linux

I use the Rfxcom RFXtrx433 to receive signals from my weather station sensors on my Raspberry Pi in order to save them in a local database. This works great, but support for Linux from Rfxcom is limited. On Windows, it offers a user interface called Rfxmngr which allows you to configure the transceiver. Linux has no such option. This was an issue for me when I wanted to add a new TFA temperature sensor. As it turns out, all my existing Oregon Scientific sensors had worked out of the box because the protocol for those sensors is enabled by default, as per the documentation. TFA requires enabling the Hideki protocol. The documentation is clear on how to enable it using the Windows manager. Not so much on how to enable and disable protocols on Linux. »

Open a port for a specific ip with Firewalld

Sometimes - maybe quite often actually - I want to allow access to a specific port on my CentOS server for just a single ip, or a few. With firewalld, using a rich rule seems to be the most straight forward way to accomplish this. Other methods require diving into configuring other zones than 'public', which I prefer to avoid. My cases aren't that complex. »

Running Postleaf with NodeJS 10

As of this date, it has been some time since Postleaf has had an update. It will not run on a version of NodeJS higher than 7, which is now deprecated. Higher versions of NodeJS (and npm) will cause dependency issues. Making Postleaf run under NodeJS 10 requires just a few tweaks. »

Install PHP 7.x on CentOS 7

Whenever I install CentOS, it never comes with PHP 7 or its repositories installed. Since settling for PHP 5 is not an option any more, I manually install the PHP 7 remi repository and PHP 7.2 (or 7.1, 7.0) itself. This is done as follows. »

Laravel: creating a column with a specific encoding

In order to persist preformatted messages for social media postings, I needed to be able to save emoji's to a new column in my MySQL database. It turned out that my basic utf8 character encoding was not up to the task. »

Compressing files using tar command on Linux

The tar command on linux allows you to compress a file using gzip and create a .tar.gz archive, as well as decompress it. The command requires a few options to work properly. In order to compress a file, use the following command: »

Using multiple Java versions on Ubuntu

When installing a new Java version, the old one will not be overwritten. Only one of your Java installations will be active. It is easy to switch between versions. »