Installing Legend of Tux on Ubuntu

From LD Smith Games Wiki
Jump to navigation Jump to search

Below are the steps for installing the Legend of Tux on Linux

Ubuntu 9.04 Live

Goto http://www.legendoftux.com and download the Linux binary (lotux_v0_4.tar.gz)

Ubuntu install 01.png

Save the file to your home directory. By default, Firefox may save the file to your desktop. In that case, move the file to your home directory. I'm using a Live Ubuntu distribution, so my home directory is /home/ubuntu.

 cd Desktop
 mv lotux_v0.4.tar.gz ..

Ubuntu install 02.png


Open a terminal, go to your home directory, and extract the file.

 gzip -d lotux_v0_4.tar.gz
 tar -xvf lotux_v0_4.tar

Go to the release_ubuntu directory, and try to run the executable

 cd release_ubuntu
 ./lotux

It if runs, great!

If you get the message below:

 ./lotux: error while loading shared libraries: libSDL_mixer-1.2.so.0:
 cannot open shared object file: No such file or directory

Then perform the following steps:

Run Synaptic Package Manager (should be under System => Administration)

Enter "SDL" in the Quick Search, and find "libsdl-mixer1.2" in the list. Click the box next to it, and select "Mark for installation".

Ubuntu install 03.png

Ubuntu install 04.png

Select "Mark" on the screen to install the additional packages.

Click the "Apply" button.

Ubuntu install 05.png

Press "Apply" on the next screen.

Ubuntu install 06.png

Press "Close" when it says it is okay to do so.

Ubuntu install 07.png

Try running ./lotux again, and it should now work.


Mandriva 2010 Live

Same steps as for Ubuntu, however Firefox appears to save the file at /home/live/Downloads

If you get the message about libSDL_mixer-1.2.so.0 when running ./lotux, do the following steps:

Download the following: http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11-1.i586.rpm

Mandriva install 01.png

Select "OK" to open with "Software Installer"

Press "Install" to install the Libraries

Mandriva install 02.png

After running ./lotux again, I was able to run the program, however it tries to play music for all program through the computer's internal speaker, instead of using my Logitech speakers. I will have to look into this some more to figure out the problem.

After thinking about it, I realized that Mandriva was really trying to play all audio out of my USB headset. I unplugged my USB headset, and rebooted into Mandriva 2010 Live, and music for Legend of Tux and everything else worked great. You would think that there would be an option in Sound Configuration (in Mandriva Linux Control Center) to select which device you want to use for audio output, but I checked and there isn't an option that I could find.

I was looking at the Hardware tool, and you MAY be able to switch the output device by expanding the "Soundcard" item, but I haven't tested this.

openSUSE 11.1

Same steps as Ubuntu.

Home directory is /home/linux.

Firefox appears to save the lotux_v0_4.tar.gz to the Desktop here also:

 cd /home/linux/Desktop
 mv lotux_v0_4.tar.gz ..
 cd ..
 gzip -d lotux_v0_4.tar.gz
 tar -xvf lotux_v0_4.tar
 cd release_ubuntu
 ./lotux

You will probably get the libSDL_mixer-1.2.so.0 error

Download and run the SDL_mixer RPM

Suse install 01.png

http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11-1.i586.rpm

Open with "Install Software (default)"

Got an error about missing rpmlib when installing the RPM. May have to find and install that dependency.

Suse install 02.png


Old Notes

  • Tried running the Linux version from SUSE 11.1 Live, and I got the following error
 ./lotux: error while loading shared libraries: libSDL_mixer-1.2.so.0: cannot 
 open shared object file: No such file or directory

SDL_mixer can be downloaded here:

http://www.libsdl.org/projects/SDL_mixer/

(SDL_mixer-1.2.10.tar.gz)

Tried installing the SDL_mixer rpm, but I got a dependency error for missing rpmlib

Tried installing SDL_mixer from source, but I got an error in the ./configure script since a C compiler is not installed

Fedora

Coming Soon