Luxi Sans

October 11, 2009
 sudo aptitude install ttf-xfree86-nonfree

This will get you the Luxi family of fonts originally designed for the X Window System. Quite similar to Lucida. I always enjoy this typeface. It used to be the default for RHEL, but afaik the Liberation family of fonts are set by default these days. Anyhow just a great font to use on the daily.


Sage is an rss reader?

September 8, 2009

I’ve been using Sage, more frequently than I intended to as my RSS feed reader. Sage is a lightweight atom and rss feed reader extension for firefox. The default style feels a bit clunky, not too easy on the eyes, but it allows for custom css styles, and there are many available. The one I currently use is Akzente. If you follow the link you’ll find instructions on how to install and set it up too. It’s really simple.

A preview of the style can be found here.


Adobe 64bit flash Ubuntu Karmic Alpha 5

September 7, 2009

I’ve upgraded to Karmic Koala Alpha a couple days ago and realized I am missing flash again. Due to the apturl bug here, firefox wouldn’t do what’s neccessary to install it so I decided to do it the good old fashioned way which thus far, has not failed me yet.

$ wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
$ tar xvzf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
$ mkdir .mozilla/plugins # if it doesn't exist
$ mv libflashplayer.so .mozilla/plugins/

Provided you’ve uninstalled your previously installed versions, you should be able to open to check whether everything is ok by typing ‘about:plugins’ in your URL location bar. You should see something like the following at the bottom of the page, at which point you can test by visiting your favorite flash site such as www.fat-pie.com.
firefoxflash


Life updates…

August 10, 2009

Things have been quite intense over the past couple months. Here’s what’s been happening…

  • Close relatives have been in and out of hospital for the months of June and July
  • The exhaustion of having spent every or every second day in hospital left me fatigue and in a somnolent state for the two months.
  • Relieved myself from some minor financial difficulty.
  • Close relatives passed away.
  • My brother injured hist neck in a rugby match and was admitted to hospital, he was kept there for two weeks.
  • My motherĀ  re-married about week ago.
  • My personal cellphone has become nonexistent, although the number still exists.
  • The state of my work mobile has worsened.
  • Started learning PERL.
  • Got my RHCT. Next up RHCE.
  • A few other non-highlighted issues…

…aside from feeling like I’ve just stepped out of a coma, Things are slowly starting to get better and I’m re-gaining control of my life which has been a turbulent storm since May 2009.


Palettes, Monaco and Terminals…

May 28, 2009

After a long time of trying to the Monaco font to play nicely with any terminal under Linux, I recently found a version of the Monaco font for a Linux OS. The regular Monaco True Type font behaves quite differently under a Linux OS and doesn’t quite render properly in terminals(it displays properly in some text editors though). You can get it here.

To make things a little nicer I changed the color palette to use the Tango palette. The Tango pallete is available by default for the more recent versions of gnome-terminal. My OS still uses Gnome 2.16.0 though.

$ gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/palette "#2E2E34343636:#A4A400000000:#4E4E9A9A0606:\
#8F8F59590202:#20204A4A8787:#5C5C35356666:\
#CECE5C5C0000:#BABABDBDB6B6:#555557575353:\
#CCCC00000000:#7373D2D21616:#EDEDD4D40000:\
#34346565A4A4:#757550507B7B:#F5F579790000:\
#EEEEEEEEECEC"

Here's What the Tango palette kinda looks like on white bakground

Here's What the Tango palette kinda looks like on white bakground

That should give you a nicer palette, do note that if your using a different “profile” in gnome-terminal you will have to change the word Default in the above to your profile name. Eg. If your profile is called black_hacks in gnome-terminal you’ll end up with something like this…

gconftool-2 --type string --set /apps/gnome-terminal/profiles/black_hacks/palette "#2E2E34343636:#A4A400000000:#4E4E9A9A0606:\
#8F8F59590202:#20204A4A8787:#5C5C35356666:\
#CECE5C5C0000:#BABABDBDB6B6:#555557575353:\
#CCCC00000000:#7373D2D21616:#EDEDD4D40000:\
#34346565A4A4:#757550507B7B:#F5F579790000:\
#EEEEEEEEECEC"

For my terminals with a black background I use the below setting for everything else I use the tango palette.

gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/palette "#000000:#FF6C60:#A8FF60:\
#FFFFCC:#96CBFE:#FF73FE:\
#C6C5FE:#EEEEEE:#000000:\
#FF6C60:#A8FF60:#FFFFB6:\
#96CBFE:#FF73FE:#C6C5FE:#EEEEEE"
gnome-terminal

Here's how it looks

I use xterm from time to time as well, So I stick this in my .Xdefaults.

xterm*color0: #000000
xterm*color1: #FF6C60
xterm*color2: #A8FF60
xterm*color3: #FFFFCC
xterm*color4: #96CBFE
xterm*color5: #FF73FE
xterm*color6: #C6C5FE
xterm*color7: #EEEEEE
xterm*color8: #000000
xterm*color9: #FF6C60
xterm*color10: #A8FF60
xterm*color11: #FFFFB6
xterm*color12: #96CBFE
xterm*color13: #FF73FE
xterm*color14: #C6C5FE
xterm*color15: #EEEEEE
xterm

Here's what xterm looks like

“Why would you do all of this?” you may ask, If you’re like me and spend a considerable amount of time on the command line or editing code, it makes things alot lighter on the eyes and more readible.


Vw’s, Coolant, Inginition Locks…

February 9, 2009

It’s the first post for the year and I’m not going to talk about linux. Instead I am going to tell about my experience with VW Golf’s and replacing parts, specifically the thermostat, coolant pump (water pump), ignition lock and steering column. That’s a mouthful for me. Had you asked me what any of these automotive parts were last year, I would have stared at you blankly. Lately I’ve taken an interest in what goes on in my car and how the engine works which I am ashamed to say I have not in the past.

For those who don’t know I own a 1990(it might actually be older) Citi Golf that requires alot of body work. Nonetheless, my car got stolen and recovered just down our road, but was in a bad condition. The ignition lock was broken off, the indicator/light/wiper switch was broken the dash as pretty damaged. Usually I would have just taked this sorta thing in and have it fixed by someone. My brother and I decided to DIO(Do It Ourselves). It was a fairly easy process and everything worked as did before, only with newer parts. Disconneted the battery cables, removed the Steering wheel, broken indicator with weird mechanism thing. The tricky bit was getting the little top of the sterring which had a spring just below it. We got it out the way successfully though. I was suprised to find how easy it was.

I’ve had an overheating problem for sometime and each time I take my car in a week later the problem surfaces again. So I did some research, and figure there’s a my car appears to either have blockage in the water system caused by a water pump whose impeller’s blades might be damaged, a thermostat which is stuck close or there’s something wrong with the head. I opted for the thermostat issues over head. So I removed the thermostat which was located within the bracket of my water pump and started testing, cars in this climate don’t really need thermostats. My girlfriends brother was kind enough to lend a hand as he previously worked for a Golf Mechanic/Repair Shop. We noticed water was still not flowing effeciently and replaced the water pump ( the braket is located just under the alternator, you have to remove the belt first and shift the alternator upwards to make it easier for yourself ) flushed the radiator to make sure no air is in the block, and started testing further. It made a substantial difference only it didn’t solve the problem( and no it was not my radiator or my radiator fan nor the 2 speed switch for it they had previously been replaced by the mechanic and are brand new ). So it looks like my head gasket might actually be blown or the is a problem with the head of my engine. No, my car is not puffing out white smoke which is a comman symtom , but that would depend on where it blew. It’s unfortunate that the head is the hardest problem to debug as there are only so few things you can do to test for it, either a leak down test or compression test(which usually gets done by engineers). These jobs are generally passed on to engineers that have the tools available to do such testing. So if the head is warped(because of heat), or needs scheming, they would be able to tell.

New Water Pump In Car

New Water Pump In Car

Though the experience in debugging the car was interesting, I found myself saving quite the buck replacing the coolant pump myself, with some guidence and help from a professional.


Roobie…

October 22, 2008

Lately I’ve been less active within mailing-lists, irc etc… so what exactly have I been up to? Well for the most part I’ve been working hard,
but I’ve been learning a bit of Ruby too, given that my current employer is a pretty much a Rails house. Yes, I said it. I’ve been learning Ruby. I’ll say it again, I… have… been… learning… Ruby. Yes, me , and I was enjoying it too. I’ve learned quite a bit whilst with my current employer and it saddens me that I have to leave as we’re closing business end of October. I guess I have to look forward to another learning opportunity up ahead. I’ve secured myself a nice position within another company which I hope will afford me the same learning opportunity.
That said, I have to get back to learning some more…


When APT complains about security.debian.org

September 16, 2008

Shortly after responding to Jonathan Groll on the CLUG’s mailing list about BADSIG errors. I’ve had the pleasure of experiencing it again.

pants:~$ sudo aptitude update
[...]
W: GPG error: http://security.debian.org lenny/updates Release: The following signatures were invalid: BADSIG A70DAF536070D3A1 Debian Archive Automatic Signing Key (4.0/etch)
W: You may want to run apt-get update to correct these problems

I often have to remind myself to use Acquire::http::No-Cache=True when my machines are behind a SAIX proxy.

pants:~$ sudo aptitude -o Acquire::http::No-Cache=True update
[...]
it http://security.debian.org lenny/updates/non-free Sources
Fetched 14B in 12s (1B/s)
Reading package lists... Done

I should probably just put the below code in my apt.conf or in a file in apt.conf.d to safe me from future occurrences.

Acquire
{
  http
  {
    No-Cache "true";
  };
};

Installing Gentoo from a LiveCD or Desktop using LVM

September 14, 2008

Its been a while since I have manually had to install Gentoo on a host, as we use our own custom Gentoo build called “fatboy”. Since I had no cd at the time. I figured I’d give the manual route a go which I haven’t since gentoo’s 2005 release. So I give you a brief description of how to get lvm under a live cd working whilst building gentoo.

If you’re using a live environment you’d probably want to install lvm2, Well if your gonna use it anyway. Once installed run the command “modprobe dm-mod” to load the appropriate kernel module.

modprobe dm-mod

We’ll execute a vgscan to scan all disks for volume groups, rebuild caches and will return to any volume groups found. We then activate any existing volgroups (if any) with vgchange.

vgchange -a y

vgchange activates and makes available “-a” the volume groups. The vgchange tool is commonly used to activate and de-activate volume groups but also yields a plethora of other capabilities. I didn’t have any volume groups since this was a fresh install.

My partition layout looks as follows:

boot	100Mb
root 	900Mb
swap	512Mb
usr	10Gb
tmp	1Gb
var	5Gb
home	5Gb

Use fdisk and create a partition based on what you want, but if you’re gonna use lvm make sure you leave an appropriate segment for your volume group depending on what you’ve chosen.

I created three partitions using fdisk. One for boot, swap and the last to be used for lvm.
So I ended up with the following:

/dev/hda1	boot
/dev/hda2	swap
/dev/hda3	for use by lvm,

To initialize the 3rd partition of this drive for lvm we use the command pvcreate.

pvcreate /dev/hda3

If you intend using more that one partition or drive and you want to extend it over different partitions, you can seperate the arguments with a space and initialize it like so:

pvcreate /dev/firstdevice /dev/seconddevice
vgcreate volgrp /dev/sda3

The vgcreate command will create us a volume group with the name volgrp on our partition we chosen to use for lvm.

So now we create our logical volumes using a tool called lvcreate and name them accordingly.

lvcreate -L900M -nroot volgrp
lvcreate -L10G -nusr volgrp
lvcreate -L1G -ntmp volgrp
lvcreate -L5G -nvar volgrp
lvcreate -L5G -nhome volgrp

As you may notice the -L option takes the size as an argument, the -n option for the name and the last argument being the volume group on which you would like create your logical volume.

If we do a lvscan it’ll now show us the active logical volumes we’ve just created, alternative you could run lvdisplay as it displays the atrributes and various other information about our logical volumes.

Now we’ll have to create our directories to which we’ll build our gentoo environment, The gentoo hand uses /mnt/gentoo, so we’ll use it too. So we create a directory called gentoo in /mnt. Before we continue creating mount points for our logical volumes we’ll need to create filesystems on for our logical volumes and partitions and mount the root partition first. We do this by using the e2fsprogs utilities and since I am going to use ext3 for all my partitions aside from boot I can do the following.

for i in /dev/volgrp/* ; do mke2fs -j $i ; done

This will create ext3 filesystems for all my logical volumes. The only outstanding partitions are swap and boot for which I do the following.

mke2fs /dev/hda1
mkswap /dev/hda2

Now we’re ready to create our mount points and mount our filesytems.
We mount root first then create our mount points of course.

mount /dev/volgrp/root /mnt/gentoo
for i in boot usr tmp var home ; do mkdir /mnt/gentoo/${i} ; done

We mount boot.

mount /dev/hda1 /mnt/gentoo/boot

We mount the rest of our filesytems and activate our swap partition.

for i in usr tmp var home ; do mount /dev/volgrp/${i} /mnt/gentoo/${i}

From here on out its safe to follow the gentoo handbook at chapter 5 and just do the regular download and unpack of stage3 tarballs and the latest portage snapshot which you can find on your local gentoo mirror.

However,
When you mount your /proc filesystem you should rather use the bind option.

mount -o bind /proc /mnt/gentoo/proc

Also, before you reboot you might wana de-activate your volume groups with vgchange.

vgachange -a -n

Make sure that when you compile your kernel you compile it with device mapper support, and edit your fstab correctly.

**Update**
I forgot to mention that you’ll probably need to create an initrd image if your root partition is an logical volume.
A useful script to do this can be found here.
The syntax for the script is as follows.

sh lvm2create_initrd -M gentoo

or tell it to look for a specific kernel

sh lvm2create_initrd -M gentoo 2.6.25-gentoo-r7

Radiant

June 29, 2008

Just what I have been looking for, a simple, lightweight, rails based CMS that offers everything I need. Its called Radiant.