Skip to content

Instantly share code, notes, and snippets.

@cpdean
Created June 21, 2013 14:01
Show Gist options
  • Save cpdean/5831360 to your computer and use it in GitHub Desktop.
Save cpdean/5831360 to your computer and use it in GitHub Desktop.
#!/bin/sh
# install df dependencies for ubuntu precise32
# download and unzip df tar.bz2
# manipulate config file for text mode
sudo apt-get update -qq
sudo apt-get install libgtk2.0-0 libsdl-image1.2 libsdl-ttf2.0-0 libglu1-mesa -qq
cd /home/vagrant/
if [ ! -f df_34_11_linux.tar.bz2 ]
then
wget --quiet http://www.bay12games.com/dwarves/df_34_11_linux.tar.bz2
fi
if [ ! -d df_linux ]
then
tar xfj df_34_11_linux.tar.bz2
fi
sed 's/\[PRINT_MODE:2D\]/\[PRINT_MODE:TEXT\]/g' df_linux/data/init/init.txt > df_linux/data/init/init.txt
echo "script ran!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment