linux

warning: Creating default object from empty value in /home/vandergu/subdomains/www.spiff.be/public_html/drupal6/modules/taxonomy/taxonomy.pages.inc 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

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 => cdr_addon_mysql.so

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 www.pdashop.be!

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.

Ubuntu karmic 9.10 and very slow xorg

My Acer Travelmate 800 with its ATI Radeon mobility 9000 is quite old but still pretty decent.

Unfortunately the latest ubuntu 9.10 rendered it unusable due to very slow graphics rendering.

Turns out my xorg configuration is missing some important option.

Ekiga softphone and Asterisk

We are using Ekiga as a softphone under linux and experienced a very annoying 2 second delay.

Turns out the ulaw/alaw audio codec used by Ekiga is flawed. Switching to the gsm codec fixed the problem.

The sip entry in the sip.conf file of Asterisk looks like this now:

[1337]
username=geek
type=friend
secret=xxxxxxxxx
auth=md5
nat=yes
host=dynamic
dtmfmode=rfc2833
callerid="Philippe"
disallow=all
allow=gsm
;allow=ulaw
;allow=alaw
context=mysipclients

Syndicate content