Blog

Running Owncloud WebDAV with Nginx

Here is how I got OwnCloud's WebDAV feature to work in Nginx. I use Nginx with dav-ext-module which provides support for OPTIONS and PROPFIND methods, but it works with plain http_dav_module, too.

With dav-ext-module, you have to be very careful not to set dav_ext_methods in the root context, otherwhise the hole site's folder structure can be browsed with webdav. It's best to set the dav handler only on the files/webdav.php, apps/contacts/carddav.php and other DAV scripts.

Global windeco appmenu to be fully integrated in KDE out of the box

The oxygen-appmenu windeco got deprecated in favour of a more integrated solution consisting of a kded-appmenu module that exports the application menus via dbus, and a patched version of KWin. See here: http://kde-look.org/content/show.php/kde-workspace-appmenu?content=148583 for more info.

Seems this is giong to be integrated in KDE 4.9 by default. Pretty cool.

Using OpenSUSE's snapper on ArchLinux to manage btrfs snapshots

Today I created a PKGBUILD for OpenSUSE's snapper utility for creating and managing BTRFS snapshots. You can find it on AUR here.

Snapper is a quite handy tool to manage BTRFS snapshots. On OpenSUSE it comes with a YaST2 plugin, so it even has a GUI. On Arch you can still get the command line version though.

Trying Gnome3.. ah wait.. it still can't handle seperate X screens

From time to time I like to take a look at new things, like e.g. Gnome3 and its gnome-shell.

My setup uses proprietary nvidia drivers and two seperate X screens, one for the LCD, one for the Samsung TV over HDMI (XBMC that is). This works just fine in KDE4, Gnome2 and anything else I've tried. But Gnome3 just blatantly fails to start with this setup. Last time I tried, it was Gnome 3.0.0 or something, but meanwhile there is Gnome 3.2.2 and still they did manage or refused to fix this issue.

Well, I'm not alone:

Convert from VirtualBox to KVM/Qemu

Konverting from VirtualBox to KVM is actually quite easy.

If you use snapshots in VirtualBox, then you will first have to clone the current running state into a new VM (Right clickt -> Clone -> blah -> select only current state)

Then, if you use dynamic growing disks, convert them to raw format

VBoxManage clonehd --format RAW Win7.vdi Win7.raw

Now convert it to qcow2

Project T5220, try 1: How NOT to configure a T5220 as a complete Oracle/Weblogic development environment

Currently I have to configure a Sun Enterprise T5220 as our new "developemnt environment", replacing our V440 (Oracle) and the T1000 (Weblogic). We chose a Sun CMT machine as we wanted to stay close to production in regards of architecture (processor type/OS etc).

The machine will have to run an Oracle instance, and some containers for the Weblogic environments (we have an integration env, daily build env + some development environments for projects). The new T5220 ist packed with a 1.4GHz T2 Niagara, 64GB of memory, 2x146GB for the OSes, and 6x300GB for the database and NFS.

Howto create a youtube video from mp3/ogg audio using a picture

If you want to create a youtube video from an audio file, here is how to do this.
All you need is the audio file, a single picture, and ffmpeg.

First find out the lenght of the audio file in seconds, you'll need it. Here is an example with a 420 seconds file:

ffmpeg -loop_input -i picture.jpg -vcodec mpeg4 -r 25.00 -qscale 2 -s 480x360 \
-i audiofile.mp3 -acodec libmp3lame -ab 128k -t 420 video.avi

This will create a Hi-Res MPEG-4 video with 128k audio. The trick here is to use that one picture and loop it for -t seconds.

Howto print text between tags or characters with awk or sed

Took me a while to figure out this one. All I wanted to do is to print the text between two tags/characters/strings.

The IMHO nicer Awk way:

$ echo "bla(foo)"|awk -F'[(|)]' '{print $2}'
foo
$ echo "bla=@@foo@@"|awk -F'[@@|@@]' '{print $3}'
foo

 and with sed:

$ echo "blah(foo)"|sed -n 's/.*(\([^ ]*\))/\1/p'
foo
echo "aaafoobbb"|sed -n 's/.*aaa\([^ ]*\)bbb/\1/p'
foo

Figured.

Pages