Senin, 23 Maret 2009

How-To: Compile and Install VLC 0.9.8 from Source in Debian Lenny


VLC (VideoLAN Client) is one of the most popular video players on Linux, together with players like SMPlayer or Kaffeine. It plays many audio and video formats (including Xvid, DivX, H.264, Theora, WMV, Real Video, Ogg, MP3, FLAC, APE, AC3, WAV) together with DVDs and DVD ISO images.

The version which comes included in the Debian Lenny repositories is 0.8.6h, which uses the wxWidgets kit and it is kind of outdated now. The latest release of VLC is 0.9.8a, which is now built in Qt 4 and includes several improvements over the 0.8.x series.

VLC 0.9.8a running in Debian Lenny

To compile this release from source you can follow the steps below:

1. Install the tools needed for compilation
As root, type:

apt-get install build-essential

build-essential is a meta package which includes tools like gcc or make, needed to compile source code.

2. Install the dependencies
The following command will install the development libraries which are needed for the compilation:

apt-get install libqt4-dev libpostproc-dev libavformat-dev libavcodec-dev libavutil-dev libmad0-dev liba52-0.7.4-dev libhal-dev libdbus-1-dev libfribidi-dev libgcrypt11-dev

3. Fetch the source tarball
Download the VLC 0.9.8a source tarball from here, then uncompress it:

tar -xjf vlc-0.9.8a.tar.bz2

4. Compile and install VLC
To compile VLC, just change the working directory to vlc-0.9.8a and issue the following commands:

./configure --disable-swscale
make
make install

The last one as root.

Configuration

You can also install VLC as normal user by specifying a prefix, i.e.:

./configure --prefix=/home/USER/usr/ --disable-swscale

In this case you can issue make install as normal user. Also make sure to include /home/USER/usr/bin in your $PATH.

How-To: Install the Latest Wine Release in Debian Lenny

Debian Lenny comes with Wine 1.0.1 included in the repositories, which is the stable release of Wine, but it is also a little outdated. Here are a few easy steps for compiling and installing the latest Wine release from source in Debian Lenny. This tutorial should work for the latest Wine release (at the time of writing, the last release is 1.1.17).


1. Install the tools needed for the compilation
Type in a terminal as root:

apt-get install build-essential

2. Install the development libraries needed by Wine
To install the necessary dependencies, first make sure that you have the sources repositories enabled in your /etc/apt/sources.list file. To do this, you should have a line which starts with deb-src, e.g.:

deb-src ftp://ftp.ro.debian.org/debian/ lenny main contrib non-free

Next, update the packages list:

apt-get update

And then install the dependencies:

apt-get build-dep wine

This will take a while, depending on the speed of your Internet connection.

3. Download the source tarball
Get the source tarball for the latest release from the official website, then uncompress it. For example, for Wine 1.1.17 you would issue the following command in the directory where you saved it:

tar -xjf wine-1.1.17.tar.bz2

Next, change the current working directory to wine-1.1.17 and proceed to the next step.

4. Compile and install Wine
You can either do:

./configure
make depend && make
make install

The last one as root. Or you can use their script located in the tools/ directory, wineinstall:

./tools/wineinstall
make install

If you want to install Wine as normal user change the prefix to, say, /home/USER/usr:

./configure --prefix=/home/USER/usr
make depend && make
make install

And make sure to include /home/USER/usr/bin in your $PATH.

Next configure Wine by typing winecfg as normal user and run Windows applications like this:

wine application_name.exe

Make sure to keep the directory wine-1.1.17, so in case you need to uninstall Wine, you will only have to issue the following command from inside that directory:

make uninstall


Alternate way to install Wine: using the WineHQ repository
To set up Wine from the WineHQ repository you will need to follow this simple tutorial, provided on the Wine homepage. To sum it up:

Remove your existing Wine installation as root:

apt-get remove wine

Add this line to your /etc/apt/sources.list file:

deb http://www.lamaresh.net/apt lenny main

Add the GPG key:

wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add -

Issue the following two commands:

apt-get update && apt-get install wine

This should do it too.

Updated: March 31, 2009

Tip of the Day: Easily Convert Lossless WMA to Ogg Vorbis

One easy and fast method to convert WMA to Ogg Vorbis is to use the dir2ogg script included in the repositories. To install it, type as root:

apt-get install dir2ogg

Then use it like:

dir2ogg file.wma

Or, if you have several WMA files in a directory:

dir2ogg *.wma

Notice that it is not a good idea to convert lossy WMA audio to Ogg since the quality will degrade, it's better to use this on WMA lossless only.

First-Person Shooter Games for Linux III: Urban Terror


This article is part of the first-person shooter games reviews I'm putting up. Until now I talked about Wolfenstein: Enemy Territory, ioQuake3, UT2004, Nexuiz and OpenArena. For those who want to read my previous articles, here are the links:

3 Classic First-Person Shooter Games for Linux

First-Person Shooter Games for Linux II: Nexuiz and OpenArena

I will dedicate this edition entirely to Urban Terror, a great first-person shooter game which was initially developed as a Quake 3 mod and evolved into a powerful and fast standalone game. Most of the people who played both Counter-Strike on Windows (or through Wine) and Urban Terror usually have the same opinion when describing it: it's like Counter-Strike, only better. That was my impression too. I think Urban Terror is the best alternative for those who like CS and eventually made the switch from Windows. It is natively supported on Linux, it is maintained constantly and it has a solid community. In fact, when I first played it about a year ago, I was stunned to see that I was playing it very good just because I was used with Counter-Strike.

Developed by Frozen Sand, the team behind it, Urban Terror was initially developed as a Quake 3 mod, but the game offers now a complete package and can be run without the need of Quake 3 binaries. The last version, UrT 4.1, comes with a ZIP package for Linux, of about 700 MB, and you only need to uncompress it, make the ioUrbanTerror.i386 binary executable and run it.

A multiplayer game on Abbey

The game features modes like TDM (team deathmatch), FFA (free for all) or CTF (capture the flag) and provides a large number of weapons to choose from, like the popular Kalashnikov, the M4A1 or the Remington SR-8. Usually each weapon should be used in a different way (for example you can use to Remington to snipe your opponents and the powerful Kalashnikov for medium-range combats). Notice that the rebound is pretty high, so firing constantly will do anything else but hitting your opponent. It's best to use burst firing when you have an automatic weapon.

Prague, one of the most popular maps

One of the features I find great in Urban Terror is the ability to run for a short distance, then keep the crouch key pressed: this way you will be able to move very fast, and it's useful especially to make quick and unexpected attacks and to go quickly from one part of the map to another. Of course, there is an energy bar which will start to decrease when running or jumping, so you will have to walk from time to time too in order to save strength for when you will need it.

Another feature is the ability to 'bandage' yourself and other wounded teammates. After a successful attack against you, your character will not be able to run or walk at full speed unless you bandage yourself (or another teammate bandages you). Also, depending on how much health you have left, you will not be able to run at maximum speed or make long jumps.

The game comes bundled with around 30 wonderful maps, which vary from cities to jungle areas or desert. Maps like Kingdom, Abbey, Prague or Uptown are very popular on the Internet servers.

The game was designed for multiplayer only, and bots are not supported officially, but still there is the possibility to play against bots (read how in this forum thread). Instead, the game offers a great and dynamic online playing experience. The servers are usually crowded, and the multitude of mods will certainly fit any fan of fast-paced shooter games.

Uptown, probably the most played map

The graphics are not very impressing, but at least this allows the game to run on older computers too. I tested on my Core 2 Duo 1.8 GHz and GeForce 7600 GS and it runs at a steady 76 fps using the resolution 1280x1024. I usually encounter frame drops only on several maps with water and many players, otherwise there are no problems running it.

Another aspect worth mentioning are the trickjumps and the ability to jump off walls, which, in combination with the run/crouch ability will let you go in places inaccessible otherwise.

Many competitions are often organised, and details regarding those are available on the official website and the forums.

In conclusion, Urban Terror is awesome in every aspect (maybe except the graphics which are not exactly the newest) and it offers a great pleasure playing it. It's fast-paced, it has plenty of mods and maps, and it allows you to configure everything just the way you want it.

Bmw tuned with lambo doors


Bmw, originally uploaded by Erkki Kemppi.

Aston Martin Vantage V12

How-To: Compile and Install Wesnoth 1.6 from Source in Debian Lenny and Ubuntu 8.10

The Battle for Wesnoth is a free turn-based strategy game licensed under the GPL. After over one year of constant development, a new stable version, 1.6, was released on March 22, 2009, featuring many graphics and gameplay improvements. To count just a few, you can now log into the multiplayer server using the username and password from the Wesnoth forums; the game includes new graphics for terrain and units (including several new portraits); a new campaign, called 'The Legend of Wesmere' is also available, and it allows the AI to control an allied side.


To compile this release of Wesnoth on Debian Lenny or Ubuntu Intrepid, you only need to follow the steps below.

Note: Ubuntu users, just prefix the commands which need root privileges with sudo.

1. Install the tools needed for compilation
Issue the following command as root:

apt-get install build-essential

2. Install the development packages needed to compile Wesnoth
First of all, make sure you have the sources repositories enabled. To do this, edit as root your /etc/apt/sources.list file and make sure you have a line which starts with deb-src, e.g.:

deb-src ftp://ftp.ro.debian.org/debian/ lenny main contrib non-free

Next, update your packages list as root:

apt-get update

Proceed with the installation of the needed development packages:

apt-get build-dep wesnoth
apt-get install libsdl-ttf2.0-dev libsdl-pango-dev

3. Download the Wesnoth source tarball
Download the source code for 1.6 from the official website, here. Next, make sure the current working directory is the one where the source was saved and uncompress it:

tar -xjf wesnoth-1.6a.tar.bz2

4. Compile and install Wesnoth 1.6
Compiling and installing is simple once you followed all the steps above. Change the working directory to wesnoth-1.6a and issue the following commands:

./configure
make
make install

The last one as root. Notice that you can specify another prefix and install it in your home folder as user instead of root (in this case make sure you include it in your $PATH)

./configure --prefix=/home/YOUR_USER/usr
make
make install

That should be all. You can now run Wesnoth by pressing ALT+F2 and typing wesnoth in the run dialogue box that appears.


Related articles
Review: Battle for Wesnoth 1.6
The Battle for Wesnoth 1.6 Released
Battle for Wesnoth 1.4 Review - Awesome Turn-Based Strategy Game

Updated: March 29, 2009