My Life

Maybe you will read about it, maybe not, but I'm still writing about it

Browsing Posts tagged ubuntu

References Used

continue reading…

I often find that people that are not familiar with virtualization are amazed when I open Windows on my Mac laptop. I figured I would go over virtualization a bit to help get the idea of the technology out there.

continue reading…

Ubuntu packages MySQL with yassl support instead of OpenSSL. These two implementations are incompatible. Recently we found this out at work as Red Hat and OpenSUSE both bundle MySQL with OpenSSL. One of our MySQL servers is running on Red Hat and we were unable to connect using the Ubuntu binary MySQL client. This of course also breaks things like the php-mysql, python-mysql and ruby-mysql libraries as they are compiled against the MySQL client on the distribution.

continue reading…

Well I’ve just completed an adventure figuring out sound for Amarok in Gnome under Jaunty and feel it necessary to share the knowledge.

This of course assumes you have Jaunty and Gnome and not Kubuntu(which Amarok will probably work just fine in). Really this might not even matter as I was trying to allow Amarok to play through either my USB headset or my speakers and could not get Amarok to choose the one that I wanted.

Here is how to be able to choose between which one you want

Installation

sudo apt-get install amarok phonon-backend-xine kdebase-workspace

Setup

sudo systemsettings

Then go to Multimedia and you can select whatever audio device you want for KDE to use which in turn is how Amarok decides on how to play its sound.

I had to actually choose gstreamer as the backend device and then switch the hardware preferences in order to switch between my speakers and my USB headset. I see now that it has taken upon itself to switch back to xine, but its working and I don’t care anymore.

Recently at work we tried to deploy Laconi.ca which is a microblogging platform. We wanted to do this for 2 reasons. The first being the obvious, which is to be able to have a campus wide microblogging platform. The second, and what I think is the coolest, is that we wanted to use it to post our nagios alerts for our systems. Each monitored server will post its alerts to its own account on Laconi.ca and admins can subscribe themselves to whichever servers they see fit.

Now for the technical aspect of jumping the Postfix barrier to get the email submission to work. In the documentation for Laconi.ca it says to simply put the following into your /etc/aliases file

*:/path/to/maildaemon.php

Well this is wrong for 2 reasons. First of all the syntax is incorrect. You need a | symbol before the script to say that you are piping the email to a command. The second reason which causes the most problems is the fact that /etc/aliases does not support the * wildcard on Ubuntu if at all. Its a security hole I guess. Here is how to work around this issue.

edit/create /etc/postfix/virtual and make sure this line is in there

@<fqhn of your server> laconica

then run

sudo postmap /etc/postfix/virtual

to compile the file for postfix to use

Now edit /etc/aliases and put this line in there

laconica:|<full path to maildaemon.php>

make sure that the maildaemon.php is executable

chmod 755 <full path to maildaemon.php>

then run

sudo newaliases

now restart postfix just for a good time

sudo /etc/init.d/postfix restart

Alright you should be able to send emails to the random mail address that Laconi.ca assigns to the user accounts under their profiles. Don’t make the same mistake I did and try to send an email from a different address than the one you registered your account with though, it won’t work :)