Category Archive: Raspberry Pi

HOWTO: Raspberry Pi with 3.5 inch TFT Waveshare clone.

This has been tested on Raspbian Jessie.

I recently build a kind of Raspberry Pi Rig, with the Pi 1B, 2B and 3B. To finish things I wanted to add some displays to it so I am not looking at a blind panel.

Luckily you can find all sorts of displays at E-bay so I bought one cheap-ass touch TFT display for around 11 Euro’s.

After playing around with the display I found out it’s a cheap waveshare clone. As expected, there came no documentation with the display, so basically you’re on your own.

I’ve searched the internet and found the things I needed to get things running. So after making a backup of my Pi3 SD card I installed the display and got to work.
After powering up th Pi the screen is white, with nothing else to see (backlight only).

Since I am running Raspbian lite, without X I won’t be doing anything with the touch features of the screen, I am on CLI only mode.e
Logon to your pi and enter the following commands (you don’t need sudo for the display installation)

sudo apt-get update && sudo apt-get upgrade -y
tar xvf LCD-show-*.tar.gz
cd LCD-show/
chmod +x LCD35-show

Some packages must be installed, answer with yes (y)

The pi will reboot and the display comes to life!

It is very well possible that your screen is up side down. If that is the case you need to find a solution yourself since I didn’t find any, and I don’t care about it since I just rotated the whole rig πŸ™‚

After installing the display it would be nice if it shows something more then just a login prompt. Htop would be nice, for a start.

This is how to do it:

sudo apt-get install htop
sudo raspi-config (boot options > console autologin)

Don’t reboot yet, do:

nano .bashrc

At the end of the file add:

if [ $(tty) == /dev/tty1 ]; then

crtl-x to save the file.

To keep the screen on, do:

sudo nano /etc/kbd/config

Set the folowing:

Save the file

sudo nano /boot/cmdline.txt
set consoleblank=0
to the single line

Comment (add a # in front) the line that starts with dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,….

Save the file.

sudo shutdown -r now

Sit back and enjoy your Raspberry Pi display showing HTOP πŸ™‚

If you want to watch pi-hole stats, replace /usr/bin/htop with /etc/.pihole/pihole -c in .bashrc

EDIT: Prune backups made with Relax and Recover #rear #linux

People keep asking me how I make incremental backups with rear, so I edited my posting about pruning backups with rear and inserted my config.

Prune backups …

If you don’t want to look that up you find my /etc/rear/local.conf below.

BACKUP_PROG_EXCLUDE=( β€˜/tmp/*’ β€˜/dev/shm/*’ β€˜/mnt/*’ β€˜/media/*’ $VAR_DIR/output/\* )

I also rsync my backups to an external (Raspberry Pi 1B) server, will post about that later on.

Have fun backing up!

Gimme some more Pi!

Ok, here it is, my brand new Raspberry Pi 2 Model B.

A 900MHz quad-core ARM Cortex-A7 CPU
Like the (Pi 1) Model B+, it also has:

4 USB ports
40 GPIO pins
Full HDMI port
Ethernet port
Combined 3.5mm audio jack and composite video
Camera interface (CSI)
Display interface (DSI)
Micro SD card slot
VideoCore IV 3D graphics core

When I start my project I’ll report. Probably I will test my download station on this one, and check out it’s performance. After that I will try some backup functions with plane rsync, or lftpd, and Bacula DR.


HOWTO: Easy install Raspberry Pi download station.

NOTE: Downloading TV shows and Movies might be illegal, as it is in Germany!!! I used this setup only to see if it works. For free and legal stuff go to

I created a simple script to create a full functioning download station with the Raspberry Pi model B.
I decommissioned my Pi after a long service as media player in my living room because I bought a CuBox-i4Pro which has more power. However, what to do with the Pi? Save power! As it uses only 3 Watts it’s the perfect alternative for my 90-150 Watt PC when it comes to downloading stuff πŸ™‚

Here are the simple steps to install Debian Wheezy, Couchpotato, Sickrage and Sabnzbdplus.

1) Download the image to run on your Pi from here:
2) Create your SD card following these instructions:
3) Login to your Pi using SSH (from Linux CLI: ssh pi@ip-address ie pi@ , password raspberry)
4) You have to change your password (A MUST, don’t be lazy and just DO THAT please!) and timezone and expand the file system (in that order): type sudo -i
Make the changes, exit and wait until the Pi has rebooted, then login again (with your NEW password)
5) Get my installer: wget
6) mv install
7) chmod +x
8) ./
9) If you get the following warning:

WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!

You get to answer this question:

You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

Type: Yes, do as I say!

10) Sit back and relax until the Pi has rebooted again. Give the Pi 5-10 minutes after reboot to get all services up and running. It isn’t a super fast computer …
11) You can now start to config using a web browser:
Couchpotato: http://ip-address:5050
Sickrage: http://ip-address:8081
Sabnzbdplus: http://ip-address:8080

As always: have fun!
(Some credits go to http://

Install OS-Ticket on Raspberry Pi v2

Another tiny project.

OS-Ticket is open source helpdesk software with ITIL like specs. And I want that to run on my pi, partly just for fun.

I am running the latest Wheezy image on my pi.

Let’s go!

Login to your pi using ssh (putty), then update first.

Now update, this may take a while.

sudo apt-get update
sudo apt-get upgrade

Install mc, for later use.

sudo apt-get install mc

Install a webserver.

sudo apt-get install apache2

Install mysql5 and php5.

sudo apt-get install mysql-server-5.5 php5 php5-mysql php5-gd

Run the installation script for mysql.

sudo mysql_install_db
I will post some info on creating the database and user later on.
Edit: instructions on that can be found on at mginternet

Download OS-Ticket.


Unpack the contents and copy all files in the upload directory to /var/www/ ,browse to http://yourwebserver/setup and follow the instructions.


Get a Rasberry Pi for free!

Unlimited stock, here’s a howto for Linux:

– Open a terminal, you will be in your home directory.
– Create a working directory for the project:

mkdir qemu_rpi
cd qemu_rpi

– Get the software: download the file from and unzip it to the qemu_rpi directory.
– Get the Qemu kernel:


– Install Qemu:

sudo apt-get install qemu-system

– Boot your Raspberry Pi!

qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append “root=/dev/sda2 panic=1” -hda 2012-10-28-wheezy-raspbian.img


You can do this under Windows too, but if you want to do that sort it out yourself πŸ™‚


My Raspberry Pi arrived. Let’s play!

… Oh, wait .. forgot to order some vacation πŸ™‚






First project: Raspberry Pi as thinclient using Citrix Receiver 12.1 and Iceweasel browser:


Now I can use it to work from home!