Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dwarf Fortress Linux (Ubuntu 15.04) installation instructions. (Nice graphics but no other crap!)
# Install a bunch of dependencies (Might not be everything, sorry!)
sudo apt-get install libsdl1.2debian:i386 libsdl-image1.2:i386\
libsdl-ttf2.0-0:i386 libglu1-mesa:i386 libgtk2.0-0:i386\
libopenal1:i386 libjpeg62:i386 git tar unzip bzip2
# Fetch Dwarf fortress itself (See http://www.bay12games.com/dwarves/ )
mkdir dwarf-fortress && cd dwarf-fortress
wget http://www.bay12games.com/dwarves/df_42_06_linux.tar.bz2
tar xvjf df_42_06_linux.tar.bz2
# Install Phoebus graphics pack (See http://www.bay12forums.com/smf/index.php?topic=137096.0 )
git clone git@github.com:DFgraphics/Phoebus.git
yes | cp -R Phoebus/data df_linux/
yes | cp -R Phoebus/raw/ df_linux/
# Fetch DFHack (See https://github.com/DFHack/dfhack/releases )
wget https://github.com/DFHack/dfhack/releases/download/0.42.06-alpha2/dfhack-0.42.06-alpha2-Linux-gcc-4.8.1.tar.bz2
tar xvjf dfhack-0.42.06-alpha2-Linux-gcc-4.8.1.tar.bz2 -C df_linux/
# Fetch "Text will be text" (See https://github.com/mifki/df-twbt/releases )
wget https://github.com/mifki/df-twbt/releases/download/v5.58/twbt-5.58-linux.zip
unzip -jod df_linux/hack/plugins/ twbt-5.58-linux.zip 0.42.06-alpha2/*
# Enable "Text will be text"
sed -i s/PRINT_MODE\:2D/PRINT_MODE\:TWBT/ df_linux/data/init/init.txt
# Enable sound
sed -i s/SOUND\:NO/SOUND\:YES/ df_linux/data/init/init.txt
# Disable FPS counter
sed -i s/FPS\:YES/FPS\:N0/ df_linux/data/init/init.txt
# Optionally delete some of the left over files
rm -rf Phoebus
rm *.{zip,bz2}
# Optionally create a nice launcher icon
wget https://dwarvenglory.files.wordpress.com/2011/10/dwarf-fortress.jpeg -O icon.jpg
wget https://gist.githubusercontent.com/kzar/341cbb885896e082acb6/raw/dwarf-fortress.desktop
sed -i 's|CURRENT_PATH|'$PWD'|' dwarf-fortress.desktop
chmod a+x dwarf-fortress.desktop
# Finally we're ready to play! Either click the icon or you can launch manually:
df_linux/df_hack
[Desktop Entry]
Type=Application
Exec=/usr/bin/gnome-terminal -x CURRENT_PATH/df_linux/dfhack
Icon=CURRENT_PATH/icon.jpg
Hidden=false
NoDisplay=false
Name=Dwarf Fortress
Comment=Launch the Dwarf Fortress computer game
Keywords=game,dwarf,fortress
OnlyShowIn=GNOME;Unity;
@kzar

This comment has been minimized.

Copy link
Owner Author

@kzar kzar commented Feb 23, 2016

Notes:

  • I installed DFHack as it enables the "Text will be text" plugin, which improves the graphics. I installed the Phoebus graphics pack for the same reason. Everything else, like launchers and utilities I have chosen to ignore! (I just wanted to give the game a try!)
  • At the time of writing only an alpha version of DFHack supported the latest version of Dwarf Fortress. Using an alpha version of DFHack might cause problems, I advise you to check the linked sites to pick the best versions of Dwarf Fortress, DFHack and "Text will be text".
  • You might want to check out the "Lazy newb pack" for Linux. I couldn't make it work, the repository was a mess and old versions of things were included that didn't work on my system at all. But perhaps it has improved since then?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment