Archive for January, 2010

Fedora 12 Amarok playing non-OSS codecs.

Posted in Computers, IT, Linux on January 11th, 2010 by matt – 3 Comments

Fedora by default only supports free software, which is awsome.. but if you have some music in a non-free or non-OSS codec, you still want to play it.. if your using Amarok then just:
sudo yum install xine-lib-extras-freeworld

NOTE: The above package isn’t available in the default Fedora repositories, it requires the RPMFusion repos!

MySQL – show storage engine used

Posted in Computers, IT, Linux on January 5th, 2010 by matt – Be the first to comment

This is a simple post, I’ve been benchmarking some MySQL storage engines at work, and sometimes from the command line I want to make sure I know what storage engine I’m using. Its actually very easy, but for some reason I keep forgetting the command. This post is for memory sake.

mysql> show table status;

or
mysql> show create table <table name>;

Temporarily disable SELinux in Fedora.

Posted in Computers, IT, Linux on January 4th, 2010 by matt – 2 Comments

I know, I know, most Fedora users probably are giving me the evil eye as they read this, but I find this tip useful when something on my desktop machine isn’t behaving properly and I want to see if it’s SELinux causing the behaviour, or if I want to stop the security for I one time only test.

For example, when migrating some of our unit tests, some virus scanning unit tests were failing, as this was a test I don’t run on my Desktop except on this occasion, it was simply easier to disable SELinux while I run the test.. it ran fine, so I could turn it back on, and tick it off my list.

By disable I actually mean put SELinux into passive mode, which allows everything, but still logs problems.

Anyway, to temporarily disable SELinux as root run one of these:
echo 0 > /selinux/enforce
setenforce 0

To re-enable it simply echo 1:
echo 1 > /selinux/enforce
setenforce 1