Upgrade Amarok to 1.4.1

I’ve been using SuSE 10.1 for just about a month. The previous linux distro I used was Debian, so the rpm package concept is pretty new to me. I’ve heard of it before, but never got to use or play with it. With Debian, we have a very easy way to install or upgrade packages: apt-get, of course.

Anyway, I just upgraded the Amarok 1.3.8 to version 1.4.1. It wasn’t easy initially as I tried to upgrade each package of dependency separately. Fortunately, I found a good site that explains how to do this step by step. The following is the summary:

  1. Download all these packages: amarok, amarok-xine, libgpod, xine-lib
  2. Become root, and issue this commands:
    rpm -Uvh amarok-Uvh amarok-1.4.1-37.1.i586.rpm amarok-xine-1.4.1-37.1.i586.rpm libgpod-0.3.2-4.i586.rpm libxine1-1.1.2-0.pm.0.i586.rpm

More detail information can be found here.

Apache 2 Config File

I’ve been using Apache httpd on and off on my PowerBook for various purposes including school assignments. The httpd version that comes with the PowerBook by default is 1.3.33 and I need to use the version 2.*. So, I installed the Apache 2 via Fink.

After having successfully installed Apache 2, we need to make some changes to the config file (usually, it is the httpd.conf file.) Guess what? I totally forgot where that file resides. The only thing I could remember is that we can find that information out very easily by giving the -v option to the httpd. So, I tried it and this is what I got:

$ ./httpd -v
Server version: Apache/2.0.55
Server built:   Mar 13 2006 12:44:02

Ahhh… that’s not what I wanted to know. I scratched my head, and and this time I try it with the -V option:

$ ./httpd -V
Server version: Apache/2.0.55
Server built:   Mar 13 2006 12:44:02
Server’s Module Magic Number: 20020903:11
Architecture:   32-bit
Server compiled with….
-D APACHE_MPM_DIR=”server/mpm/worker”
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT=”/sw/var/apache2″
-D SUEXEC_BIN=”/sw/var/apache2/bin/suexec”
-D DEFAULT_SCOREBOARD=”logs/apache_runtime_status”
-D DEFAULT_ERRORLOG=”logs/error_log”
-D AP_TYPES_CONFIG_FILE=”/sw/etc/apache2/mime.types”
-D SERVER_CONFIG_FILE=”/sw/etc/apache2/httpd.conf”

The correct option is -V (capital V), and the path to the configuration file is:
/sw/etc/apache2/httpd.conf.

VMware Installation – A Small Solution to a Huge On Going Problem

VMware is a piece of art of software which allows you to run guest operating stystems (OS) on top of the main OS you're using. For example in my case, I run SuSE 10.0 on Windows XP via VMware. Anyway, despite having the name as cool as it sounds, installing the VMware on my machine is a pain in the rear.

This could explain why I so stated as above. The installation of VMware always gives the blue-screen-of-death on the Windows XP SP2 on the final step. Initially, I thought that some services running on my machine may cause the problem, so I disabled most of them. In addition, I also shutdown Zone Alarm, and all the running programs. Nothing helped at all. I remember, the last time I wanted to run VMware so bad, that I decided to reinstall the Windows XP.

However, after a googly (lucky-google) search, I found to the solution to the problem. There are actually lots of people encountering same/similar problems as me. And, it's not the VMware's problem it all, everything is behind the Zone Alarm (ZA) firewall. By shuttingdown the ZA after it is started up does not completely turn it off! So, what should be done is to go to the preferences of the ZA and deslect the option of starting up ZA automatically when Windows boots.

I'm quite happy, I have SuSE 10.0 running on VMware now, and it is not very slow. This seems to be the perfect solution to get myself back using Linux while waiting for a good time to build a dedicated system for it. :) 

LBreakout2 for Mac OS X

LBreakout2 is another multi-platform game written by the same programmer as LBreakout. The new features of the games include more than 50 levels, level editor and networking, which enables user to play on-line by connecting to LBreakout2 server. I haven't tried that yet though. You can find more info at the LBreakout2 homepage.

Let's check out the screen-shot:

LBreakout2 Screenshot

A tip to compile this game for Mac OS X is to configure the source with the nls disable. I'm not very sure what nls is either if you ask me what it is. Anyway, if you wanna compile it for your Mac OS X, you need to get/do the following:

  1. SDL, SDL Mixer, SDL Net, and PNG installed first
  2. Get the source code of the game: lbreakout2-2.6beta-5.tar.gz
  3. Untar it, $ tar -xzvf lbreakout2-2.6beta-5.tar.gz
  4. Configure the source: $ ./configure --disable-nls
  5. $ make (like usual, it'll take awhile)
  6. $ sudo make install
  7. To run the game, type $ lbreakout2

For Mac OS X users, there is already a pre-compiled game, nicely packed for you for LBreakout2. If compiling game is not your cup of tea, get the dmg file here: breakout2-2.5beta-3.dmg

Enjoy!

Compiling libpng for Mac OS X

I thought Mac OS X comes with libpng pre-installed. It's pretty clear that I was wrong after I failed to compile a game that uses libpng. The good thing about OS X is that, you can just use fink to easily install Unix/Linux binaries. However, the weird thing is, the game configuration still complains that libpng could not be found.

So I decided to install libpng from the source code. In case anyone of you out there who may face the same problem as me, you could do as what I describe below.

  1. Download the library source code from libpng.org.
  2. Untar it: $ tar -xjvf libpng-1.2.8.tar.bz2
  3. Go into the libpng-1.2.8 directory, and copy the makefile.darwin out
    $ cd libpng-1.2.8
    $ cp scripts/makefile.darwin makefile
  4. Run make: $ make (It's gonna take a while)
  5. Install the compiled library into appropriate place:
    $ make install
  6. Clean up the mess object files:
    $ make clean

That's it. The requirement, of which I should have mentioned earlier, to compile libpng is the zlib. I hope you have zlib installed first.

LBreakOut

I'm pretty bored today, and I wanna take a break from learning Python. So, I decided to compile an open source game, LBreakOut (L is for Linux), for my PowerBook.

In order to compile this game, you need obviously the source code of the game where you can get it from here. Additionally, you need the SDL library, where you can get it from www.libsdl.org.

Here is the screen-shot of game running on my PowerBook:

LBreakout.jpg

The game could be compiled fine, with lots of warnings but no error. However, when I run the game, the high score cannot be saved, and there is one data file could not be loaded. I'll dig around to see the problems later. As for now, it can be played alright… Here is the error message, should anyone know how to fix this:

$ lbreakout
LBreakout 010315
Copyright 2000 Michael Speck
Level Charts by Jean-Philippe Martin
Enjoy the game!
-----
cannot read 'lbreakout.hscr': permission denied...
cannot write '': permission denied...