mythtv, linux, hardware, electric, software

warning: Creating default object from empty value in /home/vandergu/subdomains/ on line 34.

Ubuntu Lucid Lynx bug

After installing kernel v2.6.34 on an Ubuntu Lucid Lynx install (and using the discard mount option on the ssd partition) I got this boot error:
Serious errors were encountered while trying to mount...

Looks like the bug is in the mountall script.

Changing the UUID to /dev/sdxx entry fixed it for me.

Convert Android 3GP videos

I could playback the video on my ubuntu lucid lynx installation just fine but wanted to change the orientation of a movie I made with my Android phone.

Unfortunately the audio stream of the movie was not recognized. Seems the codec name is "samr", from Nokia apparently, (?) and ffmpeg issues this error message:
unsupported codec (id=73728) for input stream #0.1

The only way I could do this was build my own ffmpeg (via this guide)

Recording audio with Ubuntu lucid lynx

Install the 'paman' (PulseAudio manager) package via Synaptic. Let it resolve all dependencies and hit Apply.

Now you'll find a 'PulseAudio volume control' application in your Sound & Video menu. Run it.

From here on it's very easy to start recording all audio that gets played. Just start a recording application like Audacity and head to the 'Recording' tab of the Volume Control application. If everything is ok you'll see the recording application is detected (if it is recording). If not, use the selector on the bottom right and select 'Applications'.

Mounting remote drives on login with Ubuntu Lucid Lynx

Mounting drives with /etc/fstab and referring to an authentication file in the user's home directory is too complicated.
There is a simpler way: create a script that mount drives somewhere in the user's home directory.
I don't know how ubuntu does this but if you do it this way the drives still appear on your desktop. :)

Create this kind of script and make sure it automatically starts via Preferences / Startup applications and you're set!

/usr/bin/sudo /bin/mount -t cifs //mysambaserver/Public /home/user/mnt/public -o username=user,password=xxxxx,noexec


Silly physics game. :-) It requires you have the java plugin installed in your browser.

  • Try to get your ship into the rectangle! Don't crash on the planets (the big circles...).
  • Use numpad keys 4 and 6 to rotate the ship left and right.
  • Use numpad key 8 to apply forward thrust.
  • To restart or move to next level press 'r'.

Asterisk CDR on debian

After a fresh install of asterisk on debian lenny system there are certain things to be done.

In order to get asterisk cdr working on a mysql database you need to install the 'asterisk-mysql' package.

To get a feel start RTFM'ing in /usr/share/doc/asterisk-mysql

Edit /etc/asterisk/modules.conf and add this line in the [modules] section:
load =>

Next just copy the example cdr_mysql.conf file to /etc/asterisk and edit it.

Don't forget to create your mysql database and cdr table before starting asterisk!

Syncing with Android

I bought the HTC Desire this weekend at the demo days of!

Very impressive phone.

But the main reason we bought this is to have our calendar items on the road. This, unfortunately turns out to be a bit complicated since the Funambol android client only allows contacts to be synced. Bummer.

udev rules change on Debian

Creating a new udev rule for my 2nd external usb drive was quite easy:

ATTRS{model}=="5000AAK External", KERNEL=="sd?1", NAME="backupdrive"

But after restarting the udev service nothing happened.

Turns out you just have to reboot your system for the new device node to appear. Nothing else will work.

Encrypted filesystem

It was time to start being a bit more security conscious and encrypt my external backup drive.

The server is a massive piece of 4U rack but the backup drive is just a swipe away so...

Note: the server is a Debian Lenny system.

It all went pretty straightforward after following first this guide which should help you setup your encrypted partition and this guide to create a key file. Don't bother editing /etc/crypttab.

Mythbuntu 9.10 and RTC wakeup via ACPI

For the wakeup via ACPI to work correctly, the rtc device needs to be left alone during shutdown.
Apparently the hwclock-save service ignores the HWCLOCKACCESS setting in /etc/default/rcS

My fixed /etc/init/hwclock-save service script:

. /etc/default/rcS
[ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime"
[ "$BADYEAR" = "yes" ] && badyear="--badyear"
if [ "$HWCLOCKACCESS" != "no" ]; then
exec hwclock --rtc=/dev/rtc0 --systohc $tz --noadjfile $badyear
end script

Syndicate content