Lately I have been playing a lot with Docker and one of the things I want to try out is the multi-host network and perhaps even swarm support. To be able to do that however you need to expose the Docker daemon on your host machine. That’s all fine and dandy when you are working on a private network but what happens if you want to do this with hosts on multiple locations separated by public links? Even though you can secure the Docker daemon with TLS I don’t feel comfortable having service ports out in the open like that so I want to set up my own private network.
While I have set up OpenVPN links for these kind of things in the past I would now like something more flexible (easy adding of nodes, mesh topology, STP, …) so I started looking at Open vSwitch but I could not find a complete guide. Especially the part on using certificates instead of the pre-shared keys is lacking so I pieced this procedure together from different sources.
Continue reading 'Setting up Open vSwitch with ipsec_gre'»
I have a client that started using Google Apps but had a huge history of emails in the Mail app on OS X which they wanted to have imported into GMail. While the Outlook mailboxes worked without a problem using the program provided by Google, for Mac this doesn’t seem to be maintained any more. The information on the web on this subject is also rather scarce so this is how I did it using some scripting, Dovecot and imapsync.
Continue reading 'Exporting OS X Mail to a GMail account'»
I started testing Enlightenment E19 a while back and while I like the lightweight environment, there are still some areas that could use a little TLC / better documentation. One of those is the system tray. I’m not going to elaborate on the technical and/or political details of why but it suffices to say that the Linux world is moving away from the old XEmbed standard towards libappindicator.
Here are some of the symptoms I was seeing:
- Missing tray icons
- Empty spaces where the icons are expected
- Icons that were stretched across other icons
Granted, some of this is probably because of my choice of Gentoo as distribution but still this seems to be a dark area. There is a lot of wrong information to be found on Google and after a while you start feeling you went down the rabbit hole to never come out the other end. This information is probably also not restricted to Enlightenment but that’s just the environment I was working in.
First you need to unmask some packages:
Next install the necessary packages:
emerge dev-libs/libappindicator dev-libs/libappindicator:2 dev-libs/sni-qt -av
Now you should have everything to make roughly 95% of all the Qt4, Qt5, GTK+2 and GTK+3 applications out there work.
The only thing that is left (if you are using E19) now is to disable XEmbed. First close all the applications that possibly are in the system tray, then right click it and select Settings where you can disable it. After that restart applications and (hopefully) marvel at the icon goodness.
There is an issue in the current stable release (0.19.8) of E19 where for example the Spotify icon is not shown because the system can’t find it. Instead you see a warning triangle with an exclamation mark. The issue is reported and will probably be fixed in the next release.
My overlay containing a patched ebuild:
Sarah Hagstrom wrote a really nice guide here.
I was having issues with the volume keys on my Linux desktop when using applications like Spotify and Kodi. I found out that this is because the channel that is created by PulseAudio by default is linked to the master channel resulting in all kind of weirdness when adjusting the volume. This can be fixed by disabling the flat-volumes option in /etc/pulse/daemon.conf
Foremost is an excellent tool for this!
I was playing around a bit with cryptocoins but was missing quite some ebuilds. As most of them don’t diverge to far from the reference Bitcoin client it is however quite easy to set them up. Usually copying the ebuild is enough, sometimes some more adaptations are needed.
To make it easier for anyone I created an overlay on GitHub so you don’t have to redo my work:
I’m not going to describe how to add the overlay to your portage, there are guides enough for that. Don’t forget to unmask the packages.
At the moment there are ebuilds for following currencies:
DOGE (dogecoin, such profit!)
If while you are testing out your shiny new client you want to donate to me for some basic copy/paste and editing work you can do so at:
Or you can just Flattr this post!
My complete audio CD collection is ripped in FLAC format on my server. Because I also want to play the songs on MP3 players I was looking for a way to easily convert them all at the same time. This would be very easy with some easy scripting but why invent warm water again? I found this great Python script that does it for you called flac2all. It ignores files that have been converted already so I can just run it again after I ripped a new CD.
1000 interwebs to you Ziva Vatra (if that is your name).
I have had a Raspberry Pi lying around for ages now and finally found some time to play with it. After quite some research I decided to first set up a basic system that I can easily use to start from when I think of a new usage for a Pi. Since I like keeping “full control” over everything I do it would mean setting everything up from scratch without relying too much on existing pre-built images. The only image I tried was (the excellent) Raspbmc to verify quickly that XBMC would run smooth enough to pass the WAT (Wife Acceptancy Test).
The system I had in mind when starting should provide the following:
- Remote boot using NFS as root fs (thus enabling the usage of cheap, small SD cards)
- Easily create a full SD card when stand-alone device is required
- Gentoo based (yes, I do love that distro for its simplicity)
- Distcc enabled for faster compilations (I don’t love Gentoo enough to let a Raspberry compile everything on its own)
Continue reading 'My Raspberry Pi setup'»
I switched from developing on a server to running development on my local computer as a part of my effort to better document and package the websites and their dependencies that I maintain. Therefor it also doesn’t make sense to maintain the DNS entries in my local server but instead I use the excellent Firefox add-on HostAdmin Host Editor.
I noticed however that IE was ignoring these entries in the hosts file for some reason. After some googling I stumbled into this blog post describing the solution which is to disable the “Automatically detect settings” check box in the IE options.