How to Play Dwarf Fortress in the Terminal
Tags: open-source, apps, linux, dwarf fortress, ssh open-source apps linux dwarf fortress ssh
The following instructions are for Arch Linux without Xorg (so essentially terminal only arch or what you get after a fresh Arch Linux install). If you are using Ubuntu server or another distro, the steps should be close to the same. But not exact so please do your research. You may get lucky and just have to edit the config file.
- Enable multi-lib for pacman:
sudo vim /etc/pacman.conf
- Search for the following and remove the
#symbols. I was missing
SigLevelin my conf so if you are also missing just add it in the correct spot as shown.
[multilib] SigLevel = PackageRequired Include = /etc/pacman.d/mirrorlist
- Save and exit
sudo pacman -Syyu
- Install from your Arch mirrors:
sudo pacman -S dwarffortress
- Add your user account to a "games" group:
gpasswd -a [user] games.
- This gives you the config files in your home directory
- So you do not have to edit the defaults as root/sudo.
- Log out and log back into your server.
- Edit your Dwarf Fortress config:
sudo pacman -S xorg-server-xvfb
- This will act as your virtual X server.
- Dwarf Fortress basically gets tricked into thinking you have a GUI installed.
- Setup the virtual X server:
Xvfb :1 -screen 0 1024x768x16 &
- Pick whatever resolution you want
- Dwarf Fortress will out scale as you resize your terminal anyway.
- Point your display variable to the virtual X server:
Now you can log in over SSH and play Dwarf Fortress in your terminal! Keep in mind you may have to export the display before each new run if you are using tmux or screen.
To run Dwarf Fortress on Arch type:
Ways to support the blog.
- If you are an email kind of nerd you can sign up for mine here.
- You can donate to this site from my Liberapay account if you so choose.
- If you want a more passive way to support this site, use this link when shopping on Amazon; it kicks some of Amazon's profit to me at no extra cost to you.
- Bitcoin Cash