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 […]