HostEurope dynDNS mit Raspberry Pi – Docker

Docker_(container_engine)_logo

Voraussetzungen:

  • dynamische IP-Adresse
  • Domain bei HostEurope
  • Raspberry Pi mit Docker Image (Aktuelles Raspbian mit angepasstem Docker-Linux-Kernel)

Installation / Config / Start:

  • docker pull andreasprang/hosteurope_dyndns_arm
  • sudo docker run -d –restart=always -e KUNDENNR=123456 -e PASSWORD=mySecurePass -e DOMAIN=domain.ltd -e HOSTID=12345678 andreasprang/hosteurope_dyndns_arm

Für details: Dockerfile und Script bei gitHub für AMD64/x86

Continue reading “HostEurope dynDNS mit Raspberry Pi – Docker”

Raspberry Pi in Browser Kiosk Mode with HDMI Monitor

// remove the cursor
sudo apt-get install unclutter

// install Google Chrome on Raspberry Pi
sudo apt-get install chromium

// Open Chromium in Fullscreen mode after booting the Raspberry Pi
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

It should look like this:

@lxpanel –profile LXDE
@pcmanfm –desktop –profile LXDE
@xscreensaver -no-splash

@xset s off
@xset s noblank
@xset -dpms
@chromium –kiosk http://andreasprang.de

@unclutter

 

// Disable Screen to become black

nano /etc/kbd/config
set BLANK_TIME=0

How to set dd (disc dump) verbose (mac / bsd / linux)

Because of the missing verbose mode in GNU dd there is an other application with verbose mode by default. It’s dcfldd.

dcfldd is an enhanced version of GNU dd written by Nicholas Harbour

I especially used it for duplicating Raspberry Pi SD Cards. Without dcfldd you don’t know what time it will take to create the backup or SD Card.

Running Example:

Mac:Downloads andreas$ sudo dcfldd if=RaspberryPi.img of=/dev/disk1 bs=512
1798144 blocks (878Mb) written.

How to install dcfldd:

  1. Download dcfldd-1.3.4-1 :
    (wget http://andreasprang.de/?attachment_id=534)
  2. tar -xvf dcfldd-1.3.4-1.tar
  3. cd dcfldd-1.3.4-1
  4. ./configure
  5. sudo make install clean

Raspberry Pi – set sound interface shell script

Raspberry Pi
Raspberry Pi B © GijsbertPeijs/Flickr (CC BY 2.0)

 

For selecting the audio output I wrote a little script.

 

 

 

 

#!/bin/bash

if test $1  #check if parameter 1 / 0=auto, 1=analog, 2=hdmi is set
then

        echo "Try to select sound Interface:" $1
        sudo amixer cset numid=3  $1

else
        echo " select interface :" 
        echo "0=auto"
        echo "1=analog"
        echo "2=hdmi"
        read -p "Which interface should be used? " interfaceID
        echo "Try to select sound Interface:"  $interfaceID
        sudo amixer cset numid=3 interfaceID
fi