Restrict root ssh access to a single IP under Raspbian / Debian / Ubuntu

Today I configured a new backup solution that required me to restrict root ssh access to a single IP for the root user. I got tis to work by going the following steps (on Raspbian GNU/Linux 9): login via ssh on the maschine to access via root modify the /etc/ssh/sshd_config like that

add the following […]

Install KODI Mediacenter on Raspberry Pi 2 B+

Recently a  friend of mine asked me, if it would be possible to get a media center or something like that running on his old flat screen TV, that wasn’t a SmartTV. He wanted a kind of SmartTv-like app system (Add-Ons). So I decided to install KODI Mediacenter on Raspberry Pi 2 B+ that I had […]

Run a DynDNS client under Raspbian

For a home automation project I have to setup a local DynDNS client on my Banana Pi running with Raspian. Here are the steps I’ve taken to run a DynDNS client under Raspbian (will work on other Debian based Linux distributions too): Install ddclient package:

This command installs the package and starts the DynDNS configuration wizard. Select […]

Get MAC address from file system

On Debian based Linux distributions you can get the MAC address of the respective network adapter from the filesystem like shown below:

As you can see, all adapters have their own folder under  /sys/class/net/ that contains  a address file with the corresponding MAC address. If the system is not booted (offline edit). You can have a look into […]

Get GPIO pin overview (pinout)

On Banana Pi you can call:

This should give you an pinout like that:

As you can see you also will see the current value of the pins. If BCM (@see is activated it should look like that (Banana Pi Pro):


Set static IP

Sometimes its necessary that your machine gets a static IP-address. For example if you want to run a server or a other service on that machine. On Debian based machines you can do this by: Edit /etc/network/interfaces (f.e.: with nano)

In this case we set the IP fix to for both wlan and ethernet.  Setup […]