Selasa, 24 Maret 2009

Tip of the Day: Create an ISO Image from a Directory Using CLI

For this tip we'll be using genisoimage, a command-line tool which allows the creation of ISO9660 filesystems with Rock Ridge attributes (which provide support for file permissions and ownership).

To install it, type in the terminal the following command as root:

apt-get install genisoimage

The simplest way to create an ISO image is like this:

genisoimage -o cd.iso directory_name

This command will create an ISO image with directory_name being the root directory. If you want to include more than one file (or directory) inside the image (without having a single root directory), you can run it like this:

genisoimage -o cd.iso filename_1 filename_2 filename_3

If you need the Rock Ridge extensions, then issue:

genisoimage -o cd.iso -R directory_name

Kenny Wallace Eyeing Top 5 In NNS

It may be the same old thing for some of the top 10 drivers in the NASCAR Nationwide Series point standings like Carl Edwards (No. 60 Scott�s/Save-A-Lot Ford) leading for the second straight week and into the series' next race at Texas.

But there are some new top 10 drivers who haven't been there in awhile.

Kenny Wallace (No. 28 U.S. Border Patrol Chevrolet) hasn't been in the top 10 since 2006. Currently, he's ninth. It's also the first time Jay Robinson Racing has had a driver crack the top 10 in its 10-year history.

Go Kenny!!! NBaP is rooting for you!

Review: Battle for Wesnoth 1.6

After more than a year of constant development, The Battle for Wesnoth 1.6 was put out on March 22. This release comes with new graphics and unit portraits, a new campaign, called 'Legend of Wesmere', the possibility to log into the multiplayer with the forum account, and many, many other improvements.

Battle for Wesnoth 1.6 - main menu

For those who don't know, Battle for Wesnoth is a wonderful, completely free (licensed under the GPL) turn-based strategy game, with a huge community, developed continuously and at a fast rate.

Before proceeding with the review of 1.6, I'd like to point out that the 1.4.x series (the now old stable release) was also a very good and polished release, so what more can Wesnoth provide with this release?

First of all, one of the features which was always subject of debate on the forums was now implemented: the ability to own a nickname in the multiplayer game. You can now join the multiplayer lobby using your own username and password from the Wesnoth forums, so you won't have problems with someone else 'stealing' your nickname or identifying friends. This feature was awaited for a long time and now it's available.

Regarding the game interface, it didn't change much. The main menu has a background which resembles the one in 1.4, which looks very good anyway.

Major changes were done at the graphics, unit portraits, terrain, and the way in-game messages are displayed. Although there are still default faction units which don't have a portrait, most of them have refined portraits which now look awesome compared to the older ones used in 1.4.x. There are also new graphics for terrain like forest and villages, but all in all the way the terrain looks did not change much.

Playing vs. AI on Isar's Cross - notice the changes in the map

Most of the maps were re-done, for example the popular Isar's Cross is now larger and Fallenstar Lake (former Meteor Lake in versions pre-1.4) will need a different approach to play it in the middle of the map.

Comparing Fallenstar Lake in 1.4 vs 1.6

Regarding campaigns, 1.6 includes no less than 14 official ones, and most of them were available before only as add-ons. Also, the new campaign 'Legend of Wesmere' tells the story of Kalenz, an Elvish hero probably best known from the campaign Heir to the Throne. In one scenario, this campaign allows the AI to control one of your allied sides too.

The new Legend of Wesmere campaign

The WML (Wesnoth Markup Language) also received many improvements and the map editor can be started now from within the game's main menu. The background music hasn't changed much but that's OK since 1.4 had pretty appealing music. However, there are five new original background tracks.

Like all the default features are not enough, there are plenty of add-ons available, which definitely turn Wesnoth into an even more appealing TBS game.

This is how the new in-game dialogues look like now

All in all, this release is one step ahead for Wesnoth regarding both graphics and gameplay, and although in my opinion the difference from 1.4 to 1.6 does not seem to be as big as the changes from 1.2 to 1.4, it is definitely a good and long-awaited improvement.

Update: Here is a video of Wesnoth 1.6 on the Colosseum map:

How-To: Compile and Install GIMP 2.6.6 in Debian Lenny

GIMP (GNU Image Manipulation Program) is the most popular and powerful image editor on the Linux platform. It benefits from detailed official documentation, as well as a huge number of community-made tutorials and dedicated websites.

The latest stable series, 2.6.x, include several UI improvements, new filters, and the introduction of the GEGL (Generic Graphics Library) framework.

Although the version which comes with Debian Lenny (2.4.7) is stable enough and full-featured, if you want the latest release you can easily compile your own version by following the steps below.

1. Install build-essential and the development libraries

apt-get install build-essential

Next, make sure the sources repositories are enabled (there should be a line which starts with deb-src in /etc/apt/sources.list), for example:

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

Update the package lists:

apt-get update

Install the development libraries:

apt-get build-dep gimp

Install additional dependencies:

apt-get install libgegl-0.0-dev

3. Download the source code
Download the GIMP 2.6.6 source tarball from here, then uncompress it:

tar -xjf gimp-2.6.6.tar.bz2

4. Compile and install GIMP 2.6.6
To compile and install GIMP, just issue the usual commands inside the gimp-2.6.6 directory:

./configure
make
make install

The last one as root. You can also install as normal user using the --prefix parameter, e.g.:

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

Tip of the Day: Easily Get Audio from DVD .VOB Files

Notice: This tip should work for both Debian and Ubuntu, except for the way of installing mplayer which differs (in Ubuntu you should use Medibuntu, while in Debian you have the debian-multimedia.org repositories).

This is usually useful when you only need some audio recording from a live performance DVD or some other recording of some kind. If you have a DVD image and you need to mount it, you can do so by typing as root:

mkdir /mnt/iso0
mount -o loop /path/to/dvd/image.iso /mnt/iso0

You can choose any empty directory for mounting the image, in the above example I chose /mnt/iso0. It's also a good idea to eventually concatenate the VOB files you want to extract audio from, e.g.:

cat /mnt/iso0/VIDEO_TS/VTS_01_[1-3].VOB > ~/my_vob.vob

This will concatenate files VTS_01_1.VOB, VTS_01_2.VOB and VTS_01_1.VOB into one single VOB file, my_vob.vob, inside the home directory. The same can be accomplished using, for example:

cd /mnt/iso0/VIDEO_TS/
cat VTS_01_1.VOB VTS_01_2.VOB VTS_01_3.VOB > ~/my_vob.vob

Next, install mplayer (read here for instructions to get it from debian-multimedia.org repositories - after adding it, type as root apt-get install mplayer) and issue the following command inside the directory where the my_vob.vob file is located:

mplayer my_vob.vob -aid ${AID} -dumpaudio -dumpfile my_audio.ac3

Notice that you will have to replace ${AID} with a number corresponding to the audio channel, for VOB + AC3 that number is between 128-159. So our command should look like this:

mplayer my_vob.vob -aid 128 -dumpaudio -dumpfile my_audio.ac3

And there you go, the extracted audio file is my_audio.ac3.

Awesome paints on discarded swan plumes

Painted onto elegant swan quills, these beautiful examples of feather-art really are fit for a Queen.




Senin, 23 Maret 2009

How-To: Compile and Install Banshee 1.4.3 in Debian Lenny

Banshee is a popular audio player written using the GTK toolkit. Currently at version 1.4.3, Banshee is a good alternative to players like Rhythmbox or Exaile for GNOME or Amarok for KDE.

This release comes with improved MTP (media transfer protocol) support and several bug fixes.

Here are several easy to follow steps for compiling Banshee on Debian Lenny (since Debian comes with Banshee 1.0):

Notice that iPod support will not be available!


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

apt-get install build-essential

2. Install the dependencies
Make sure the sources repositories are enabled in the /etc/apt/sources.list file (you should have a line which starts with deb-src, like deb-src ftp://ftp.ro.debian.org/debian/ lenny main contrib non-free) and then issue the following commands as root:

apt-get update
apt-get build-dep banshee

3. Download the source tarball
Download the tarball from the official website, here (direct link), then uncompress it:

tar -xjf banshee-1-1.4.3.tar.bz2

4. Compile and install Banshee
Issue the following commands inside the banshee-1-1.4.3 directory:

./configure --disable-ipod
make
make install

The last one as root.

Although I tried to install Banshee as normal user too (using ./configure --prefix), I've got an error when it was still trying to write to /usr so I'm not sure whether it can be installed as normal user this way.

You can run Banshee by pressing ALT+F2 and typing banshee-1 in the Run dialogue that appears.

To uninstall it, just issue the command make uninstall as root from inside the banshee-1-1.4.3 directory.