Thursday, 27 November 2008

Hacking the aic94xx back alive...

Been trying to get my software raid of the Supermicro machine to work under Ubuntu 8.10 x64 server edition, which was causing quite a few pains, the initramfs was not able to load the firmware and bailing out at the very early phase. Down here some guidelines, FYI: I wanted to end up with a system which has a mirrored OS, striped swap and striped data partition, as it is going to be a temp development box anyways:

* First make sure to disable 'SATA Raid' and 'SATA ACHI' mode into the bios as you are not going to use it anyways.

* Next while creating the partitions, first create all the partitions and set them to be 'partition for RAID' and next Configure software RAID. If you have two disks of 500GB like me, do the following. Create primary partitions 10GB, 8GB, 472GB on both disks and set disk 1 to be bootable on both. Next using the 'Configure software RAID' combine disks 1 to RAID 1, disks 2 to RAID 0, disks 3 to RAID 0. Next have md0 be ext3 which will be your '/' mount point. md1 will be your swap and md2 is going to be xfs and mount it at '/srv' to make it your installed custom 3th parties data/program dir. (Installing OpenSSH Server might become handy for the next steps)

* Next complete the install and reboot again from CD into the recovery mode, ensuring to end up in a shell at disk /dev/md0.

* You have to download the new firmware and accept the license at the scsi linux section of adaptec [1]

* Replace the file in /lib/firmware/aic94xx-seq.fw with the new one and just to be sure, also copy it to /lib/firmware/`uname -r`

* Next rebuild your initramfs with the command update-initramfs -k all -c

* Reboot your machine and you should be good to go :-)


[1] If you find yourself in trouble find the expanded firmware due to the bloody rpm format do mind to read and accept the license first and then download the expanded file at my dumping ground in cyberspace

Monday, 17 November 2008

Netbeans here we come!

I have been fighting with MacVim/Xcode/Eclipse and Netbeans in favorite of my personal IDE and we have got a winner! .. Or actually two as I would like to give away prices for two categories:

* small projects development: Will be Vim -without a doubt-, it _just_ does the job, editing and doing it fast and with as little mouse interference as possible :-). Big plus, runs great in a terminal of course. Reason not to choose emacs is the fact that i do not need a terminal IDE, just a editor :P

* project development: Netbeans (how surprising :-), I really like the integrated tabbed aproch as I do not want to have all my project files cluttered all over my desktop. The buildin SCM works great and syntax highlighting and shortcut handling is well done (unlike Xcode, which developers needs to have 4 hands/fingers to simply clear the log window CMD+ALT+CTRL+R, really requires 2 hands to preform).

Eclipse is the unlucky loser over here, found it to be unintuitive, weird version and plugin naming (granberry made .. who cares all I need is a bloody version number to identify the latest version). Might be a good software IDE, but Netbeans seems to be better at first glance :P

Love to hear your rants and comments about it..

Sunday, 16 November 2008

Xcode 3.1.1 Quartz Composer not working

After upgrading the Interface builder was nagging about com.apple.QuartzComposerIBPlugin not beeing able to found anymore. Which for example also controls the QSView.

To fix this first uninstall the full package using the CLI command sudo /Developer/Library/uninstall-devtools --mode=all

Next whipe your remains of /Developer directory, by issueing sudo rm -dR /Developer

And finally (re)install Xcode using the package given. And you should be good to go again :-)

Wednesday, 5 November 2008

First steps of compiling on Mac OS X...

Just like me old school terminal fan instead of fancy XCode user, then this might apply to you.

In order to link to the .dylib (dynamic libraries) used on Mac OS X use the commands below thanks to hint of nijm, written in reference to a program called svnauthz-validate, which I am using to make sure the authz file does not get corrupted.


$curl -O http://svn.collab.net/repos/svn/trunk/tools/server-side/svnauthz-validate.c
# Note: assuming you have installed subversion via macports
$gcc -lsvn_repos-1 -lsvn_subr-1 -lapr-1 -L/opt/local/lib -I/opt/local/include/subversion-1 -I/opt/local/include/apr-1 -Wall -o svnauthz-validate svnauthz-validate.c