Nixpanic's Blog

Using git for Fedora's CVS

I prefer to use git over CVS. Unfortunately the main repository where all Fedora packages are located uses CVS.

Takis blog contains a very useful guide for working with git on projects located on a CVS-server.

Thanks Takis!

Making Adobe Flash work on a 64-bit Fedora 11

On the Fedora Wiki there is an excellent article which made my Fedora 11 (x86_64) run Flash 10.

This is a copy-paste from the article:

Adobe also has a pre-release version of a 64-bit plugin. Until this is supported via yum, you will need to do the following:

1. Download the .tar.gz version from Adobe here.
2. Use "gtar -xzvf" to extract libflashplayer.so and put it in either in /usr/lib64/mozilla/plugins/ or ~/.mozilla/plugins/.
3. Restart Firefox.

Splitting videos with mencoder

YouTube does not allow videos to be longer than 10 minutes. I really have the need to split videos... Googling for this issue brought me to MisterHowTo.com.

Splitting a video looks like this (first 6 minutes and 5 seconds):

$ mencoder -endpos 00:06:05 -ovc copy -oac copy leeuw-tuominen_0-2.AVI -o leeuw-tuominen_0-2_a.avi
MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz (Family: 6, Model: 15, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 0 data: 0x0 - 0x2e8da65c
AVI file format detected.
VIDEO: [MJPG] 640x480 24bpp 30.000 fps 9219.7 kbps (1125.4 kbyte/s)
[V] filefmt:3 fourcc:0x47504A4D size:640x480 fps:30.00 ftime:=0.0333
videocodec: framecopy (640x480 24bpp fourcc=47504a4d)
audiocodec: framecopy (format=1 chans=1 rate=16000 bits=8 B/s=16000 sample-1)
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing index...51f (54%) 3343.82fps Trem: 0min 744mb A-V:0.033 [9219:128]
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 9219.507 kbit/s (1152438 B/s) size: 420678432 bytes 365.033 secs 10951 frames

Audio stream: 128.000 kbit/s (16000 B/s) size: 5840000 bytes 365.000 secs


And the second part with offset 6 minutes 5 seconds:

$ mencoder -ss 00:06:05 -ovc copy -oac copy leeuw-tuominen_0-2.AVI -o leeuw-tuominen_0-2_b.avi
MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz (Family: 6, Model: 15, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 0 data: 0x0 - 0x2e8da65c
AVI file format detected.
VIDEO: [MJPG] 640x480 24bpp 30.000 fps 9219.7 kbps (1125.4 kbyte/s)
[V] filefmt:3 fourcc:0x47504A4D size:640x480 fps:30.00 ftime:=0.0333
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 16000 Hz, 1 ch, u8, 128.0 kbit/100.00% (ratio: 16000->16000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
videocodec: framecopy (640x480 24bpp fourcc=47504a4d)
audiocodec: framecopy (format=1 chans=1 rate=16000 bits=8 B/s=16000 sample-1)
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing index...90f (100%) 377.05fps Trem: 0min 337mb A-V:0.033 [9219:128]
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 9219.688 kbit/s (1152460 B/s) size: 349195660 bytes 303.000 secs 9090 frames

Audio stream: 128.000 kbit/s (16000 B/s) size: 4848059 bytes 303.004 secs


After uploading these videos they will be available in their own playlist.

Squash for 2016


Cloning xorg/freedesktop git projects over http

The network policy at my work makes me use a proxy-server. Unfortunately it looks like x.org or freedesktop.org does not support git usage over http. Just browsing to http://anongit.freedesktop.org does show an error which lets me guess that this server supports cloning over http. Indeed, afer some wrong URLs I've found a working one!


export http_proxy=http://proxy:81
git clone http://anongit.freedesktop.org/git/xorg/xserver.git xorg-xserver


A complete list of projects is available from http://cgit.freedesktop.org.

Sync Google Contacts with Thunderbird

Google Contacts is an Add-On for Thunderbird which creates an additional address book with your Google contacts.

Great tool!

CentOS-5 and file sharing over bluetooth

Dag Wieers wrote a very nice and simple blogpost called "OBEX for dummies. This post helped me getting bluetooth file-sharing work in less than five minutes. Thanks Dag! Tried to post a comment on the blog, however that failed for some reason...)

Switching from Linux to OpenBSD?

That grumpy BSD guy: Into a new year, slowly pounding the gates makes me think again about switching my Linux server (with lots of hacking attempts) to a more peaceful OpenBSD...

Support special functions keys on laptops with Linux

It's very uncool that some of the keys on my HP/Compaq nc6400 are not working by default. I get following messages in dmesg:

atkbd.c: Unknown key pressed (translated set 2, code 0xd9 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e059 ' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xd9 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e059 ' to make it known.


Jiri Koshina pointed me to
HAL Keymap Quirks which is written by a Red Hat engineer.

My Results


For these (and a lot more) keys I (and you) need at least hal-0.5.10 as said in the link above from Jiri. The keys supported by hal are available in the 30-keymap-*.fdi files from the hal-info git:

http://cgit.freedesktop.org/hal-info/tree/fdi/information/10freedesktop

Takis blog: CVS to GIT and back

Takis blog: CVS to GIT and back contains very nice info for using a CVS-server and a git-client.

Thanks Takis!