Create Image Gallery

More a note to myself.

Put all images in folders and create a corresponding index.md file in each folder:


Title: Fuschoelpass (18.08.2016)
Representative: DSC01775.JPG

## Fuschoelpass (18.08.2016)

DESCRIPTION

Resize all images in each folder:


for file in *.JPG; do convert $file -resize 1920 $file; done

Generate Gallery using sigal:


sigal build source . ../generated

Compile rtl8812au Driver on Raspbian (Kernel 3.18.5+)

I tried the everywhere mentioned method with https://github.com/gnab/rtl8812au, but this was not working as expcected. Therefor I tried the method mentioned on the Fedora Mailing List. This does not contain the patches for the Raspberry PI. The Makefile needs to get adopted, so that you can compile this driver on the Raspberry Pi.

The compile seems to work now. I have uploaded all sources to Github. In this repository is also the 8812au.ko, which is compiled on a Raspbian Box with Kernel 3.18.5+. Hope this will work out now.

Peehwww…

Finally I have made it and ripped the whole CD collection of us. The whole collection can be seen on discogs. I will add new CDs in there, if those are added to the ripped cd. The whole process took more then one and a half year (well, I really starte end of Mai 2013), but I guess, it was worth it.

Update eTrex 30 with Linux

I am a proud owner of an Garmin etrex 30. Since I do run Linux on all my machines at home, I tried several ways to update the firmware of this device. Unfortunately this is not possible, using WebUpdater from garmin directly. A tool which should make it easy (and most probably it does on windows and/or mac) makes it hard to do on Linux.

Anyways, a download of the lates firmware can be found at http://garmin-etrex.wikispaces.com/firmware. You just need to rename the Downloaded file to GUPDATE.GCD and move it to /Garmin/ on your Garmin device.

After a restart of the eTrex 30, all seems to be fine.

Rotate Images based on EXIF Tags

Back from vacation I am currently in the process to create an image gallery using sigal.

Unfortunately sigal can only copy EXIF tags to the (smaller) images in the gallery or rotate the images correctly.

Since this is needed for some of the pictures, I have done, I use jhead.

The following line is quite helpful to rotate jpgs based on the EXIF tags:

find -name "*.JPG" -exec jhead -autorot {} \;

MPD and ALSA settings on cubox-i

I have had some trouble with some songs playing on my cubox-i via the SPDIF-Toslink connection. I heard crackling noises on those songs. First I thought, that those were due to some mistake done during ripping those from my CDs. But I tested those songs on some other devices and recognized, that it is most probably due to high frequencies or something similar.

Therefor I digged into the concrete settings of ALSA and MPD to fiddle around with Frequency- and Volume-Settings. In the end it turned out, that the solution is rather easy and I just had to reduce the volume of the cubox-i SPDIF out to 98%. Now all crackling noises are gone and I can enjoy the music via my home stereo system.

Here are the settings of ALSA (/etc/asound.conf):


pcm.imxspdif {
type hw
card imxspdif
}

pcm.imxhdmisoc {
type hw
card imxhdmisoc
}

ctl.imxspdif {
type hw
card imxspdif
}

ctl.imxhdmisoc {
type hw
card imxhdmisoc
}

The above settings are just setting the devices in the Cubox-I to be used by alsa. The „imxspdif“ is important, because this one is used by the following MPD-setting:


audio_output {
type "alsa"
name "imxspdif"
mixer_type "software"
}

Unfortunately I could not use „alsactl store“ to store my alsamixer settings, therefor I have set the mixer_type of MPD to software, which allows to call the


mpd volume -2

command inside of my mediaplayer-startup script. This command sets the used volume to 98%. Now everything is working fine, on every boot, like wanted 😉

Install Gollum with Unicorn and nginx

I just documented on how to install gollum on an ArchLinux machine using Unicorn and an nginx reverse proxy. This documentation provides detailed installation instructions as well as config files.

One of the requirements I had, was to be able to run multiple instances of gollum, as well as using systemd to start and stop these instances easily. There is a gollum package in the AUR, but this does use the webRick, and therefor I decided to start from scratch.

IPv6 on Netcup using ArchLinux

I just enabled IPv6 on my Netcup Server, this is quite easy. There is one real important point in the documentation (found here): „poweroff“ is needed, without this, the Adress will not get assigned to the VServer.

I am using netctl for the configuration, and my config looks like this:


Description='A basic static ethernet connection'
Interface=ens3
Connection=ethernet

IP=dhcp

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
IP6=static
Address6=('2a03:4000:5:f1::1/64')
Gateway6='fe80::1'
DNS=('2001:4860:4860::8888' '2001:4860:4860::8844')

Note, that IPv4 is configured via DHCP whereas IPv6 is configured static. Furthermore the gateway for IPv6 is set to the current machine, this is according to the documentation of Netcup (found in some forums). Furthermore I did configure some DNS-Server here. These are the ones of Google.

You can then use ping6 to ping some hosts and test, if the connection is working. The host is reachable from the outside with the given IP.