Loki Games Fix

export _POSIX2_VERSION=199209 To install some old Loki Linux games you will need to set the POSIX version. Here you go Intertubes for all to search and find.

October 12, 2008 · 1 min · Nick

Multipath and Redhat Linux 5

As many of you know, multipath was finally integrated into Redhat Linux with the 5 series. This is great when you have multipath enabled during an install as you will see /dev/mapper/mpath0, but what happens post install when you attach new LUN? Here is the howto for what happens behind the scenes during a RHEL install: After the filer has attached and presented the new LUN reboot the machine allowing for the HBA card to recognize them Post-reboot login and verify with the drivers are present with the correct capacity: dmesg | grep sd Next we need the WWID for the new path. For this example assume that sdh is one of our newly presented multipath drives: scsi_id -gus /block/sdh Copy this output down and have it ready to input into a config file. I recommend pipping or copying down the results withing GNOME/vim Edit the /etc/multipath.conf with your editor of choice and look for the blacklist exception list. You will see a WWID “923847089123908u2389” already listed. Copy that line and replace the “218934708912374” with the output of command #3 Reboot the box After the reboot login and cd /dev/mapper and verify that there is a newly listed mpath1. If this is not the case stop what you are doing and wash-rinse-repeat steps 1-6 If there is a mpath1 we need to create a new partition. Since Linux sees the device as a new block, use fdisk as you would with any other drive: fdisk /dev/mapper/mpath1 Since the drive is freshly paritioned you will need to reboot to allow the kernel to recognize the new parition table. Post reboot we can create a filesystem. I am going to assume you created one parition and are going to use ext3: mkfs.ext3 /dev/mapper/mpath1p1 Next edit your /etc/fstab and point the new drive to a path you want the new mapping mounted to: /dev/mapper/mpath1p1 /storage ext3 defaults 1 1 For the next portion I will operate under the assumption you are attaching more storage to your /opt directory for a new commercial install. As root drop to run level 2: init 2 This is the lowest run level where the / filesystem is mounted r/w and multipathd is running We will move /opt as it is current substatianted to /opt2: mv /opt /opt2 Create the mount for the SAN LUN: mkdir /opt Mount the LUN: mount /opt <–read from the /etc/fstab entry Now we sync the directories with rsync: rsync -avh /opt2/* /opt I recommend holding onto the /opt2 until everything is tested after a reboot Done!

September 15, 2008 · 2 min · Nick

PPC Loki Games

Here is a blast from the past…way back past… I loaded OpenSuSE 11 on my G4 Cube and remembered I had a few of the old Loki Games. Here are the games with ports to Alpha/PPC/SPARC: [Civilization: Call to Power ](http://en.wikipedia.org/wiki/Civilization:_Call_to_Power) Myth II: Soulblighter Railroad Tycoon II Eric’s Ultimate Solitaire Heroes of Might and Magic III It is mind boggling that at this point in Linux history (2000-2002) that someone decided to port these! The great thing about GCC and SDL is cross compiling is pretty simple. With that said supporting these must have been a nightmare for Loki.

September 10, 2008 · 1 min · Nick

SheepShaver on Ubuntu

I wanted to run MacOS 9 in my Ubuntu Intrepid dev box so I went ahead and grabbed CVS. Problem was the autogen script never dumped a config.sub. Instead I took the easy route and downloaded an RPM version and used alien to convert. The one extra step to get it running is to as root ln -s /var/lib/libreadline.so.5 /var/lib/libreadline.so.4 Have fun! sheepshaver_23-13_i386.deb

September 6, 2008 · 1 min · Nick

Coolest Hacker Logo

I am a GNU Hacker, hear me ROAR! Do Wildebeest roar?

August 30, 2008 · 1 min · Nick