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

Install Arch-Linux on a Raspberry Pi

Arch Linux is a very clean and lightweight Linux distribution. With the following steps you can install it on a SD-Card to run it on a Raspberry Pi: Get the device name (dev-path) of the SD-Card to run the operating system (see Get a list of partitions or List, partitioning and format drives)

You should see […]

Adafriut webIDE BETA release

Yeah the next prank from Adafruit! They build up their own web-based development IDE. At the moment it’s only in beta state but I think the chance is very high that it will become very awesome. Right now it runs on Raspberry Pi and BeagleBone and supports Ruby, Python and JavaScript. The genius part is, that the code […]

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 http://raspberrypi.stackexchange.com/questions/12966/what-is-the-difference-between-board-and-bcm-for-gpio-pin-numbering) 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 192.168.88.6 for both wlan and ethernet.  Setup […]