Forked from kzar/dwarf-fortress-ubuntu-installation-instructions.sh
Last active
June 20, 2020 04:17
-
-
Save Atlas48/2b1a5d8dd3c924dae5223b535442847b to your computer and use it in GitHub Desktop.
Dwarf Fortress Linux (Ubuntu 15.04) installation instructions. (Nice graphics but no other crap!)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 -o - http://www.bay12games.com/dwarves/df_42_06_linux.tar.bz2 | tar xvjf - | |
# Install Phoebus graphics pack (See http://www.bay12forums.com/smf/index.php?topic=137096.0 ) | |
git clone [email protected]: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 -o - 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 - -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment