Setting up Open vSwitch with ipsec_gre

By , 21/12/2015 01:45

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'»

Flattr this!

Exporting OS X Mail to a GMail account

By , 06/10/2015 02:17

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'»

Flattr this!

Where are my systray icons?

By , 21/08/2015 15:24

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:

dev-libs/libappindicator ~amd64
dev-libs/libdbusmenu ~amd64
dev-libs/sni-qt ~amd64
dev-libs/libdbusmenu-qt ~amd64

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.

Related commit:
https://phab.enlightenment.org/rE2e00876a4072f19cc92686aed690f440295583b7

My overlay containing a patched ebuild:
https://github.com/MathyV/gentoo-overlay-mathy

Flattr this!

Getting started with django-allauth

By , 08/07/2015 22:41

Sarah Hagstrom wrote a really nice guide here.

Flattr this!

Separate volume channels

By , 25/01/2015 20:44

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

  1. flat-volumes = no

Flattr this!

Corrupt SD card recovery

By , 05/06/2014 19:16

Foremost is an excellent tool for this!

Flattr this!

Cryptocoin Gentoo ebuilds

By , 13/01/2014 23:54

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:

https://github.com/MathyV/gentoo-overlays-coins

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:

FRC (Freicoin)
RPC (RonPaulCoin)
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:

FRC 12W1M5LRsCAmLWZfUhfkRzpqJfaLEzN7M5
RPC RJudw63kAs19agortQk45ks6nLXCdQZSVx
DOGE DJS6nuKu3n84zV86Qb7crFMcL8XzTc6kUv

Or you can just Flattr this post!

Flattr this!

Batch convert FLAC to MP3

By , 08/11/2013 16:15

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).

Flattr this!

My Raspberry Pi setup

By , 30/08/2013 22:24

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'»

Flattr this!

IE ignoring hosts file

By , 18/08/2013 11:13

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.

Flattr this!

Panorama Theme by Themocracy