DooM
From EasyPeasy Wiki
Every device, capable of running DooM must run it!
So, let us install DooM on EEE.
While it is possible to use some of Ubuntu Repository packages, I'd like to use doomsday, so lets get started.
- First, let us download sources from doomsdayhq.com. Last version today is deng-1.9.0-beta5.tar.gz.
- It is needed to unpack our fresh-downloaded sources
tar zxvf deng-1.9.0-beta5.tar.gz
- Then, we should install some -dev packages and cmake
apt-get install ncurses-dev libgl1-mesa-dev libglu1-mesa-dev libsdl1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev zlib1g-dev libpng12-dev cmake
- Uncompiled sources are hard to start, so let us compile them
cd deng-1.9.0-beta5/doomsday/build cmake ../ make sudo make install
It is possible, that cmake will complain about some missing packages, so we should install them.
Well, now what we need is doom IWADS (or doom2/heretic/hexen), so we have to dig some old dusty cellars for long-forgotten-there DooM CD (or even 3.5 diskettes).
Now, let us shake some dust from our hairs and get going. Get DooM IWAD (doom.wad), using some magic on asus eee. In my case it was transferred from my desktop pc via wifi, but you can use SD card, USB disk or even external CD or floppy drive, if you DooM was found in _very_ dusty corner on cellar. Put doom.wad in /usr/local/share/deng/data/IWADS
Now, lets get playing. While it is possible to use official launcher for doomsday, I have failed to do so. If someone have successfully start it - feel free to point the way.
doomsday -game jdoom -file /usr/local/share/deng/data/IWADS/doom.wad -nomusic
It is fine to use such command to test doomsday, but it is not fun to do this all the time, so let me present my own minilauncher. Of cause, it has many disadvantages, but it is small and working.
#!/bin/sh
IWADS_DIR="/usr/local/share/deng/data/IWADS"
OPTIONS="-nomusic"
DOOM_WAD="Doom.wad"
DOOM2_WAD="Doom2.wad"
HERETIC_WAD="Heretic.wad"
HEXEN_WAD="Hexen.wad"
SELECTED_GAME=`zenity --list --radiolist --text="Please select game" --column="#" --column "game" TRUE Doom FALSE Doom2 FALSE Heretic FALSE Hexen`
#echo $SELECTED_GAME
case $SELECTED_GAME in
Doom)
echo Starting Doom
GAME=jdoom
GAME_WAD=$DOOM_WAD
;;
Doom2)
echo Starting Doom2
GAME=jdoom
GAME_WAD=$DOOM2_WAD
;;
Heretic)
echo Starting Heretic
GAME=jheretic
GAME_WAD=$HERETIC_WAD
;;
Hexen)
echo Starting Hexen
GAME=jhexen
GAME_WAD=$HEXEN_WAD
;;
*)
echo Cancelling...
exit ;;
esac
doomsday -game $GAME -file $IWADS_DIR/$GAME_WAD $OPTIONS
If we save this script to doomsday_launcher, then chmod +x doomsday_launcher, we will get small GUI script for selecting doom/doom2/heretic/hexen, which is handy, if you found not only DooM in some dusty place (no, I am not talking about Google). Some notes about this script.
WAD parts of it used to set WAD files, because Linux is case-sensitive. If you know another, more effective or interesting way - feel free to modify this script.
GUI for this script provided by zenity. If this package is not installed, installation is possible using following command:
apt-get install zenity
One problem is mouse cursor sticked in the center of screen, so we should change resolution via "OPTIONS" / "Control panel" of DooM. In that menu change resolution to 800 x 480 (you can set horizontal and vertical resolution in than menu) and press "set default" button. After such changes, all we have to do is to restart DooM and KILL SOME IMPS on EEE!

