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 # – minimal install using mini.iso from https://help.ubuntu.com/community/Installation/MinimalCD # – install. select only open SSH server apt-get… Continue reading 13.04 Mythtv with minimal ubuntu desktop upgrade

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 –auto-detect Model Port ———————————————————- Canon PowerShot SX110 IS usb:253,003 So far so good… gphoto2 –summary… Continue reading Canon powershot SX110 remote control

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 didn’t. Fresh batteries. Fixed. #checkhardwarefirst

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 for you horse:~ adam$ perl -ne ‘print “$1\n” if /(\d+)/’ foo.txt 12 23 34 Without… Continue reading Command line perl

Published
Categorized as geek Tagged ,

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

Published
Categorized as geek Tagged ,

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 error: syntax error, unexpected T_STRING in /home/foo/example.com/index.php on line 3 This problem is further complicated… Continue reading Dreamhost php-cgi use different php.ini per directory

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 jenkins. sudo apt-get install jenkins Setup of jenkins. Add plugin : git Add plugin :… Continue reading Minimal jenkins, git, gradle setup on Ubuntu 12.04

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 not listed, then it is most likely Xfixes.h and/or XShm.h files are not in your… Continue reading ffmpeg x11grab compilation

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 VM player. Now startup. We can see both volumes. vgscan Reading all physical volumes. This… Continue reading LVM hackery

Published
Categorized as geek Tagged ,

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 tomcat7 # fix directories cd /usr/share/tomcat7 sudo ln -s /var/lib/tomcat7/conf conf sudo ln -s /var/log/tomcat7… Continue reading Tomcat7 server in eclipse with ubuntu