Op. 15 – Bomba de las Tortugas (String Quartet) – 2016

Bomba de las Tortugas is my new composition for this year’s Free-Scores Composition-Contest. It is a small piece written for String quartet based on rhythmic patterns of the Bomba.

If you are interested in the scores you can download them here. I also used the music for a short music video on Youtube:




Raspberry Pi as an Active Directory Domain Controller – my first “real” project

Now it’s time for a “real” project with my new toy. I want to get rid of my current Domain-Controller in the near future and decided to try¬†a Raspberry Pi instead. The main advantage is the low energy consumption compared to my current workstation (which by the way is already 10 years old). If my calculations are correct, the reduction of electricity consumption should save me at least¬†‚ā¨ 40 per year – that is approximately the price of the Raspberry Pi ūüėČ

Again this is more a future self-reference, but hopefully it may be useful for somebody else. Please note, that this is an experminent – I do not recommend this approach for any “professional” network !

Let’s begin with¬†some definitions of the new network and the domain:

  • Realm: CF.HOME
  • Domain: CF
  • Servername: merlin
  • Server-Roles: DNS, DHCP, NTP, Fileserver, Active Directory Domain Controller

Here are all the steps for a new installation

Step 1 – Installation of Raspbian and Upgrade to latest version

sudo apt-get update
sudo apt-get upgrade

Step 2 – Change the PI-Password

It is always a good plan to change the default password of pi – especially, if you setup a domain controller ūüėČ


Step 3 – Change the Hostname

This is done by editing the file /etc/hostname

sudo vi /etc/hostname

Step 4 – Define a static IP address

I wrote about this in my previous post. I chose to disable the eth0 interfacce in dhcpcd and define all he necessary parameters in /etc/network/interfaces:

auto eth0
iface eth0 inet static
dns-domain cf.home
dns-search cf.home

add the following lines to /etc/dhcpcd.conf:

denyinterfaces eth0
#interface eth0
#static ip_address=
#static routers=
#static domain_name_servers=

Step 5 – Some Changes via raspi-config

I changed the following parameters via raspi-config, because this Raspberry Pi will be a real server ūüėČ

  • Wait for Network Boot: It is essential, that our new Server knows the exakt time. As the Raspberry Pi does not have a RTC (=Real Time Clock) on board, it has to fetch the time from the internet. In order to have the correct time, when it is needed, you can wait for the network during the booting.
  • Boot-Option B1 – Console Text console, requiring user to login: As I do not need a graphical user interface¬†for this server, I disabled the start of the X-system

Step 6 – Ntp-Konfiguration

I added the Austrian NTP-Servers in /etc/ntp.conf.

sudo vi /etc/ntp.conf

server iburst
server iburst
server iburst
server iburst

Step 7 – Change /etc/hosts

Add our new static IP-Address and the hostname of our server to /etc/hosts: merlin

Step 8 – Install BIND

sudo apt-get install bind9 bind9utils dnsutils

Step 9 – Install Samba

Save old configuration File

mv /etc/samba/smb.conf /etc/samba/smb.conf_old

Install the Samba-Packages

sudo apt-get install samba samba-common-bin

Provision the domain interactively:

sudo samba-tool domain provision –use-rfc2307 –interactive

Step 10 – Configuration of Bind

/etc/bind/named.conf ergänzen mit

include “/var/lib/samba/private/named.conf”;

Check Bind-Version and activate the corresponding line in /var/lib/samba/private/named.conf:

# For BIND 9.9.x

database “dlopen /usr/lib/arm-linux-gnueabihf/samba/bind9/”;

Step 11 – Configuration of Samba

There are numerous possibilities you can do with a samba-server. A very common task is to provide a network-share. Just add a block like this to /etc/samba/smb.conf:

comment = Scanner-Freigabe
path = /home/shares/scans
read only = no
guest ok = yes


Check Kerberos, get a ticket with kinit and display it. Use the realm name in upper case after the @:

kinit administrator@AD.MYDOMAIN.COM

Add a smbuser (in this case hugo), and remember to use a complex password:

smbpasswd -a hugo

Test the user:

smbclient //localhost/netlogon -Uhugo -c ‘ls’

You can check the existing smbusers:

sudo pdbedit -L

If everything went right you can go to a Windows system and join the new domain by command-line or GUI.

Raspberry Pi – How to configure a static IP address

Today I wanted to configure my Rapberry Pi to use a static IP adress instead of DHCP. This time it was not so easy as I thought – therefore I decided to write down some options ūüėČ The reason for my troubles is the fact, that there are more than one options how you can define the IP address:

Configuration in /etc/network/interfaces

Open the configuration-file

sudo nano /etc/network/interfaces

A complete IPv4 configuration for the ethernet-adapter would look like this:

# Ethernet
auto etho
allow-hotplug eth0
iface eth0 inet static
dns-domain raspberrypi.local # optional

That’s the option you can find everywhere in books and in the web – but beware: In Raspbian Wheezy (the current version of Raspbian) the DHCPCD is active and this setting will be ignored (at least in my case) !

If you do not need this DHCP-client you should deactivate it:

sudo service dhcpcd stop
sudo systemctl disable dhcpcd
(sudo update-rc.d -f dhcpcd remove)

I did not try this, because I want to use DHCP in case I use my Raspberry Pi with a WLAN-adapter.

Configuration via DHCPCD (=DHCP Client Deamon)

This option is recommended and the one I finally ended up with.

To configure the DHCPCD open the configuration file /etc/dhcpcd.conf and add the configuration for your interface. For example:

interface eth0
static ip_address=
static routers=
static domain_name_servers=

Disable the network interface via DHCPCD

You can also exclude the network-interface from DHCPCD by adding the following lines to /etc/dhcpcd.conf

denyinterfaces eth0

If you choose this option you have to configure your network interface as mentioned before in /etc/network/interfaces

Define your IP in your DHCP

To ensure a fixed IP-address it is of course possible to assign a fixed IP address in you DHCP-server based on the MAC-address of the network interface.



Raspberry Pi – Basic configuration tasks

In this post I want to collect some basic configuration task for the Raspberry Pi.¬†¬†I write this more as a future self-reference, but it may be useful for somebody else ūüėČ

The Raspberry Pi can of course be used as a¬†standard workstation, but that is not where the true strength of this device lies. I want to use it primarily for server applications. Therefore it’s best to put it in somewhere into your network and do all the configuration via SSH – which is actually standard procedure in the world of LINUX server administration. This means you have to learn all the necessary shell-commands and work with editors like vi or emacs.


Before disconnecting mouse, keyboard and monitor I tried to connect to my new Rapberry Pi via SSH. As¬†I only have Windows computers I downloaded PUTTY the standard program to connect to the LINUX world. Just type in the IP-address of the server and you get a shell to work on the server. In Raspbian the ssh-server is part of the operating system and is running by default – so I had no problem to connect to the Raspberry Pi from my notebook. Next step: Unplug mouse, keyboard and monitor and dive into the world of Linux-Shell-commands ūüėČ


When you login to your Raspberry Pi you use the standard user pi with raspberry as password, which is not very secure. So the first thing to do is to change this password to something more secure. The necessary command is passwd.

Some commands need administrative rights. Just put sudo in front of them and they will be executed in root-context.

Upgrade of distribution or packages

In order to install the latest packages of the system you need 2 commands:

To get all the current package-informations:

sudo apt-get update

To install the packages:

sudo apt-get upgrade

Change the Hostname

The default hostname of the Raspberry Pi is raspberrypi. If you plan to have more than one Raspberry Pi (like me) you should change the hostname. The hostname is read from the file /etc/hostname during booting. So you have to edit this file (sudo vi /etc/hostname) and reboot the device.


Raspberry Pi – My First Steps (buying and basic setup)

This year I decided to start a new private project: I want to learn what you can do with a Raspberry Pi.

What is a Raspberry Pi ?

The Raspberry Pi is a credit card-sized single-board computer developed by the¬† Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools and developing countries.¬†It primarily uses Linux-kernel based operating systems, but you can also install other operating systems like Microsoft Windows 10 IoT Core on it. You can attach up to 4 USB2-Devices, it has an Ethernet adapter, a HDMI connector and a 3.5mm phone jack. A SD-Card is used as data-storage. Furthermore there is a GPIO (General Purpose Input/Output),¬† some of which can be used for specific functions including I¬≤C, SPI, UART, PCM,¬†PWM …

In short – the Raspberry Pi is a fully functional personal computer with the ability to attach¬†various other electronic devices (like sensors, cameras, …) and for that – it is rather cheap ūüėČ

Why did I start this project ?

In my daily work as an IT Professional I am primarily designing and implementing Business Applications based on Microsoft products.¬†One goal of this small project is to learn more about Linux based systems. Furthermore I have some applications for this little computer in mind, which I hopefully can accomplish.¬†There are two reasons I am writing about this project¬†here. First of all¬†to share my experience with others and second to document the project¬†for myself ūüėČ

Step 1 –¬†Buying all the necessary things

I visited the Raspberry Pi Homepage and various other websites in order to find out, what I need for a quick start:

  • Raspberry Pi (naturally;-))
  • SD Card
  • HDMI cable
  • USB-Keyboard and Mouse
  • 5V (2A) Power-Supply
  • USB-WLAN-Adapter (I want to connect the device to my intranet via WLAN)

I ended up ordering the following products with Amazon:

Raspberry Pi 2 Model B

SD Card

Power Supply


That’s about ‚ā¨ 60-70 for complete computer !

To get a quick overview I also bought a book about¬†the¬†¬†Raspberry Pi (in german).¬†It covers all aspects of the Raspberry Pi (Hardware, Software, …) and contains a lot of projects

Step 2 – getting the SD card ready for installation

There are various ways to install the Operating System. I chose to do it with NOOBS Lite.

NOOBS¬†(“New Out of the Box Software”) is an easy operating system installer which¬†contains Raspbian. It also provides a selection of alternative operating systems which are then downloaded from the internet and installed.

NOOBS Lite contains the same operating system installer without Raspbian pre-loaded. It provides the same operating system selection menu allowing Raspbian and other images to be downloaded and installed.

The following steps have to be done:

Step 3 – putting it all together

Now everything is prepared for the final steps:

  • Slot the SD card into the SD card slot on the Raspberry Pi
  • Plug in the USB keyboard and Mouse into the USB slots¬†on the Raspberry Pi
  • Connect the HDMI cable from the Raspberry Pi to the monitor
  • Plug in an ethernet cable connected to the internet
  • Plug in the power supply and turn it on

If everything¬†is ok you will see a screen where you can choose which operating system to install.¬†I¬†chose Raspbian and the installer began to download and install the operating system.¬†After a reboot the system came up without any problem and I was sitting in front of a fully functional Linux desktop ! Then I plugged in the small WLAN adapter into the USB slot, removed the ethernet cable and rebooted once again (probably not necessary – but I just cannot get rid¬†of my “Windows-habits” ;-)). I could connect the Raspberry Pi to my WLAN¬†like any other device – and that was it. My first goal to¬†install the operating system and to connect the device via WLAN to the internet was achieved in less than half an hour !

Of course there are still some administrative tasks to be done after this basic installation. I will write about those in my next post.



Ignacio Cervantes Kawanagh – Soledad (Cuban Dance)

Ignacio Cervantes Kawanagh (Havana, 31 July 1847 ‚Äď Havana, 29 April 1905) was a Cuban pianist and composer. He is famous for his cuban dances – “Soledad” is one of them. These dances (habaneras) were quite popular at that time and are the predecessors of the Danz√≥n and the Cha-Cha-Cha.

Here is one of my favourite interpretations on YouTube

I just finished an arrangement for Flute and Piano available here.

Joseph K√ľffner – 10 Pieces pour Guitarre, Flute et Alto – op. 12 (Trio)

I just finished another arrangement of a K√ľffner Trio originally written for Guitar, Viola and Flute. You can find the arrengements here:

Flute / Clarinet / Guitar

Flute / Viola / Guitar

If you are interested in other instrumentations, just tell me ūüėČ



Op. 14 – Charlando … (Flute, Alto-Sax, Piano) – 2015

I just finished a small piece for Flute, Alto-Sax (or Clarinet) and Piano called “Charlando …” (chatting). It’s a habanera and actually based on piano-variations I wrote last year.


Charlando – Full Score

Charlando – Flute, Alto Saxophone


Charlando – Clarinet – Full Score

Charlando – Clarinet – Flute, Clarinet in Bb

Joseph K√ľffner – Notturno op.110 (Trio)

Joseph K√ľffner wrote this Trio for Violin or Fute, Viola and guitar or piano. All¬†parts are not very difficult to play and it really sounds nice ūüėČ

As nobody plays the viola in my family, I decided to arrange it for the following instruments:

Flute РClarinet Bb РGuitar and Flute РAlto Flute РGuitar

If you are interested in the arrangements you can find them here:

Flute / Clarinet / Guitar

Flute / Alto Flute / Guitar

Flute / Viola / Guitar

If you are interested in other instrumentations, just tell me ūüėČ



My Magic Piano

My piano – a Yamaha pianino – was a birthday-surprise-present of my parents.¬†And it was really a surprise, because I did not have any clue – and when I came home from work, it suddenly was there – standing in my living room ūüôā

Some weeks ago I found out, that the piano itself is full of surprises. If you want to know more, you have to watch my video ūüôā

Page 1 of 212