Reincarnation

This is a brand-new reincarnation of my blog on a VPS from DigitalOcean.

It’s running fine after I fixed a few permalinks issues.

As I get more time, I will play with Splunk on the server and see what I can learn. Always seeking to learn new things and to be in the Bay Area with its nice weather but horrendous housing costs. Yeesh!

Compiling Linux Kernel 2.6.38 for the Seagate DockStar

Install the cross-compile environment from here.

Add these steps:

cd /usr/local/codesourcery/arm-2009q3/bin/
ln -s arm-none-linux-gnueabi-objcopy objcopy

See link.


yes "" | make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- oldconfig
make-kpkg --rootcmd fakeroot --arch armel --cross-compile arm-none-linux-gnueabi- --append-to-version=-dockstar --revision=1.1 --initrd kernel_image -j8

This will produce a debian package that can be installed.

For minimal settings: make kirkwood_defconfig

Debian Squeeze on NSLU2 versus OpenWrt versus PC virtualization

Well, it turns out that my NSLU2 ran out of disk space when I was trying to dist-upgrade to Debian Squeeze. Instead of redoing it all, I decided to try OpenWrt again which is much faster and uses the small and optimized uClib. So far, it’s going OK, but it is far from what I am used to. For one, I can’t get the NFS shares to mount on the box easily. And without the NFS shares, can’t really do much else with the NSLU2.

So I have been thinking that I should just go virtual and get rid of these tiny devices which are slow and kind of archaic. But that means running a PC 24/7, and the electricity usage may not be worth it. But then again, the freedom and the extra $10 a month in utility usage seems to be not too bad. VMware’s free ESXi 4.1 is looking better every day. :)

Christmas is almost here

So the Christmas season is almost here. Can’t believe the year has come and gone. It has been a tough year with my new job but I am looking forward to 2011.

I hope everyone takes it easy with their shopping “chores” and does them safely. Life is short so let’s not make it shorter or more stressful. Be kind to others especially on the roads. Resist the urge to honk or give people the finger. All you’d be doing would bE raising your blood pressure. Use that energy somewhere else.

Compiling Transmission 2.12 on Debian Lenny on NSLU2

On your NSLU2, if you’re bold enough to be still using it for experimentation or whatnot you’d be happy to learn that the latest version (2.12) of the BitTorrent client Transmission works on it. To get it to compile, download the latest libnotify library, compile and install. Then here’s the slightly tricky part, tell Transmission’s configure script to find the newly installed library by passing these options:

./configure LIBEVENT_CFLAGS="-I/usr/local/include" LIBEVENT_LIBS="-L/usr/local/lib -levent"

OR:

./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

As an aside, to run the daemon on bootup, adding this line to your /etc/rc.local:

su - aaron -c "/usr/local/bin/transmission-daemon -a 192.168.1.\*,127.0.0.1 -w /torrents/done -c /torrents/incomplete"

Replace aaron with your username you want to run as, and of course the paths for storing your complete and incomplete downloads.

PS: I used libevent-1.4.14b-stable. And the NSLU2 is still an excellent device to do things like running torrents by installing Debian Lenny on it.

Linux driver for LED control on Acer EasyStore H340

Hi folks,

A bunch of generous and smart people have managed to figure out how to control the LEDs on the Acer EasyStore H340 in Linux. To read more on this, please go here.

As a courtesy, I am hosting the current and possibly future code for leds-h340-0.2. Current version is 0.2. This is done with permission from the author Alexander Georg. I hope you’ll find this as useful as I do. It turns off the blinking “i” LED which was driving me nuts.

Usage (taken from the post above):

tar xzvf h340-leds-0.2.tar.gz
make
sudo insmod leds-h340.ko

Disable the blinking “i” with:

echo 0 > /sys/class/leds/h340:InfoLedBlue/brightness
echo 255 > /sys/class/leds/h340:InfoLedBlue/brightness

Turn the “i” red:

echo 0 > /sys/class/leds/h340:InfoLedRed/brightness

leds-h340-0.2.tar.gz

Update: A better daemon based LED controller called “mediasmartserverd” is available that is much easier to invoke and use. It can be downloaded from here.

Lag time

I haven’t posted in a little while but you should expect to see some reviews of the new Core i7 MacBook Pro, iPad and Acer 1810TZ laptop. Just gonna get set time to sit down and write my personal impressions on the subject.

Will also post how well Ubuntu 9.10 (Karmic Koala) works on the Acer 1810TZ right out of the box. Quite impressive. More on that later.

Me trying to sing…

Once upon a time, way back, I mean, way way back in 1998, me and my brother decided to see if we could cover a Pet Shop Boys song we really liked called “Left to my own devices.” Intent was to have a song done for a PSB tribute album that never really came to fruition (I think).

Anyway, since I didn’t have any musical abilities (instrument wise), my brother did the music and I did some vocals with an extremely el-cheapo PC mike. Well, I am not proud of my singing, but here it is. You can laugh at it if you prefer, I won’t mind. :)

Farhan Yousaf and Adnan Yousaf – Left to my own devices

I wonder though if my voice has changed since. I was in my early 20′s then, and now in my early 30′s… Oh, and I will be posting more of the crazy stuff I was into when I had the mental capacity and the oodles of time needed to play with whatever I had access to that day. I don’t think there are any real but serious followers of this blog, so this serves as sort of a personal diary.

Farhan's Portion of the Web

farhany.com is Stephen Fry proof thanks to caching by WP Super Cache