Compile lcdproc hd44780 driver on Raspberry Pi running Debian Stretch

In order to get my 20×4 LCD display with cheap IIC/I2C/TWI/SPI Serial Interface Board running on Raspberry Pi I had to use patched file downloaded from NeighborGeek. You can check it out here

This worked fine on my RPi3 running Debian Jessie, but recently I have upgraded to Stretch and found out that his driver now is having issues. After running for longer period of time the screen would be full of garbage characters.

I thought I could repeat the steps, download source, patch the source, compile and use again file instead of the one provided by distribution.

First thing I did was to download latest source from GitHub:

cd lcdproc-master

Now I tried to apply the hd44780-i2c.c patch but it failed. Then I checked the hd44780-i2c.c file in the source I found out that patch is no longer needed just proper configuration in LCDd.conf.

In order to compile the latest driver from GitHub following steps are needed:

./configure --disable-libusb --disable-libusb-1-0 --enable-drivers=hd44780 --disable-libftdi

After you have compiled the driver, go to directory:

 cd /usr/lib/arm-linux-gnueabihf/lcdproc/

and backup existing file just in case something goes wrong:


Then copy the newly compiled driver in proper place:

cp /usr/local/src/lcdproc-master/server/drivers/ .

Edit LCDd.conf and add the following after hd44780 part:


You can download my newly compiled driver and LCDd.conf from this link  hd44780_debian_stretch.

I hope this has saved you some time and got your 20×4 LCD working with Debian Stretch.

Install PHP 7.1 on Debian Jessie ARM 64bit architecture

I wanted to test PHP7 on my Debian Jessie install, but latest offered package in the repositories was 5.6.30+dfsg-0+deb8u1.

In order to install PHP 7.1 which was the latest at the time of this article, you need to add following repository by running following commands:

apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg
echo "deb $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
apt-get update

Continue reading “Install PHP 7.1 on Debian Jessie ARM 64bit architecture”

Compile Realtek rtl8812AU/8821AU USB WiFi driver on Debian Jessie

Install the driver first from github:

sudo apt-get install git
git clone
cd rtl8812AU_8821AU_linux
sudo cp -R . /usr/src/rtl8812AU_8821AU_linux-1.0
sudo dkms add -m rtl8812AU_8821AU_linux -v 1.0
sudo dkms build -m rtl8812AU_8821AU_linux -v 1.0
sudo dkms install -m rtl8812AU_8821AU_linux -v 1.0

Continue reading “Compile Realtek rtl8812AU/8821AU USB WiFi driver on Debian Jessie”

Change default editor in Debian and debian-like distributions

To check which editor is set as default in your Debian distro you can do two things:

  1. in your favorite shell press CTRL+X+CTRL+E which will launch your default editor or
  2. use command update-alternatives –list-editor to list installed editors and you can expect result similar like this one:
# update-alternatives --list editor

To set for example vim.basic as your default editor you can use following command:

# update-alternatives --set editor /usr/bin/vim.basic
 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in manual mode

Now if you again quick launch your editor with CTRL+X+CTRL+E you will notice that vim is invoked.