home / blog

Tag Archives: linux

13.04 Mythtv with minimal ubuntu desktop upgrade

Yes… I know about mythbuntu, however I prefer to roll-my-own and use the a standard minimal ubuntu-desktop for consistency, and also use netflix / chrome from the media-centre PC. # pre-setup # – backup home, etc and mysqldump # – … Continue reading

Posted in geek | Tagged , , | Leave a comment

Canon powershot SX110 remote control

It seems the remote control functionality for the powershot SX110 on MacOS X 10.7.5 has been broken for quite some time now. I stumbled across an open source project gphoto2 also offering remote control functionality. sudo port install gphoto2 gphoto2 … Continue reading

Posted in geek | Tagged , , , | Leave a comment

Touchpad not working on keysonic ACK 540 RF [solved]

The trackpad/touchpad on my keysonicACK 540 RF although the keyboard worked fine. So did lots of debugging with dmesg, udev, xev, research on forums etc… Turned out the batteries were just low, such that the keyboard worked but the mouse … Continue reading

Posted in geek | Tagged , , | 1 Comment

Command line perl

I find this much more useful than sed. Example 1: Filter/regex. Print numbers from matching lines. foo 12 bar 23 other baz 34 -e is script mode. -n loops over your input automatically. # -n option does the while loop … Continue reading

Posted in geek | Tagged , | Leave a comment

Filtered copy and preserve directory structure

Say you had a massive, slow clearcase VOB with many filetypes, but you just wanted to copy the java files to /tmp for fast searching, and preserve the directory structure. find . -name “*.java” | cpio –pass-through –verbose /tmp/horsecopy

Posted in geek | Tagged , | Leave a comment

Dreamhost php-cgi use different php.ini per directory

The popular gallery webapp still uses dated short PHP open tags <?, this makes it difficult to deploy in a subdirectory of a site that uses XHTML which requires short_open_tag=off to use &lt?xml… headers, leading to the following error. Parse … Continue reading

Posted in geek | Tagged , , , | Leave a comment

Minimal jenkins, git, gradle setup on Ubuntu 12.04

Minimal jenkins, git, gradle setup on Ubuntu 12.04 Although gradle is available via app-get, the current version is broken Manual install of jenkins apt-get remove gradle wget http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-8-bin.zip sudo mv gradle-1.0-milestone-8 /usr/share/ sudo ln -s /usr/share/gradle-1.0-milestone-8/bin/gradle /usr/bin/ Normal install of … Continue reading

Posted in geek | Tagged , , , | Leave a comment

ffmpeg x11grab compilation

For the x11grab input device to be compiled you need to run ./configure with –enable-x11grab. When you’ve run ./configure x11grab should be listed in the indev section like this. Enabled indevs: dv1394 lavfi v4l2 fbdev oss x11_grab_device If x11grab was … Continue reading

Posted in geek | Tagged , | Leave a comment

LVM hackery

Problem. Need to resize a LVM partition inside a Linux RHEL5 VM ware image. Constraints. A environment where lvresize does not support online resizing. No access to a rescue disk. First. Add the disk image to another VM image in … Continue reading

Posted in geek | Tagged , | Leave a comment

Tomcat7 server in eclipse with ubuntu

Annoyingly there isn’t one “installation directory” for tomcat on ubuntu, instead it is spread across /var/log, /usr/share /var/lib etc. Eclipse expects one directory with log, conf etc. This can be fixed with a few carefully placed symlinks. sudo apt-get install … Continue reading

Posted in geek | Tagged , | 1 Comment