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:
- Download all these packages: amarok, amarok-xine, libgpod, xine-lib
- 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.
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
Server compiled with….
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
The correct option is -V (capital V), and the path to the configuration file is:
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 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:
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:
- SDL, SDL Mixer, SDL Net, and PNG installed first
- Get the source code of the game: lbreakout2-2.6beta-5.tar.gz
- Untar it,
$ tar -xzvf lbreakout2-2.6beta-5.tar.gz
- Configure the source:
$ ./configure --disable-nls
$ make (like usual, it'll take awhile)
$ sudo make install
- To run the game, type
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
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.
- Download the library source code from libpng.org.
- Untar it:
$ tar -xjvf libpng-1.2.8.tar.bz2
- Go into the libpng-1.2.8 directory, and copy the makefile.darwin out
$ cd libpng-1.2.8
$ cp scripts/makefile.darwin makefile
- Run make:
$ make (It's gonna take a while)
- Install the compiled library into appropriate place:
$ make install
- 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.
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:
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:
Copyright 2000 Michael Speck
Level Charts by Jean-Philippe Martin
Enjoy the game!
cannot read 'lbreakout.hscr': permission denied...
cannot write '': permission denied...
Normally, I would
bunzip the file first, then untar it next. But I found something after googling for a shortcut: it can all be done with just one
$tar -xjvf example.tar.bz2
Notice that, we use j flag to decompress bzip2 file and z flag for gzip file.