Record of some of the computer tech I deal with so that it's documented at least somewhere.

Saturday 24 December 2011

Dwarf Fortress in a VM

My 2Ghz machine is too slow to run DF in a VM so I stopped

Debian net install into a Qemu VM on FreeBSD

NB. Aptitude is an awful program for browsing packages.

Download Dwarf Fortress for Linux & expand

./libs/Dwarf_Fortress: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory

which means

apt-get install libsdl1.2debian

./libs/Dwarf_Fortress: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

apt-get install libgtk2.0-0

./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory

apt-get install libsdl-image1.2

./libs/Dwarf_Fortress: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory

apt-get install libglu1-mesa

./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory

apt-get install libsdl-ttf2.0-0

and it runs without Sound

apt-get install tightvncserver

then you'll need a window manager etc.

try and pick a simple one, oh look,

My choices but not very good, I had to edit config files to get it to work

apt-get install 9wm

and a terminal

apt-get install rxvt

Pah not so easy. Windows take forever to open, BASH takes ages to start.

So I found it runs much faster (ha)if you copy df_linux to /dev/shm. I imagine it is because reads from the host filesystem require a syscall whereas reading from guest memory is in host user space.

Also use VNC raw and run it over ssh compressed so that the host does the compression work, not the Qemu

Its doing worldgen atm, taking a while. But I reckon its going to be playable via the netbook over vnc.

Standard size worldgen took 2 hours. World size "Smaller", History "Short", No. Civs "Low", No. Sites "Medium", No. Beasts "Medium", Natural Savagery "medium", Mineral Occurence "Sparse" takes about 4 minutes!

I'm a bit concerned about the 8s keypress delay!

No comments: