Loading...
Name:    Password:    (Forgot password / username? / Create an account)

Alternate linux download instructions

Linux (alternate instructions)


Install engine and lobby client


First you need to install Mono, 7zip, Wget, and Xprintidle to make the lobby function properly.
Find & install them using Software Center, or use the terminal:
sudo apt-get install mono-complete xprintidle p7zip-full wget


Then install the lobby itself. Download from http://zero-k.info/lobby/Zero-K.exe and run Zero-K.exe with Mono runtime, or use the terminal:
wget http://zero-k.info/lobby/Zero-K.exe
mono Zero-K.exe


When Zero-K Lobby starts, it will ask for [YOUR-DATADIR], set it to where you want Zero-K Lobby store & look for stuff (the default is ~/.spring). The lobby will automatically download the engine (currently Spring 100), Zero-K and the map when you join a battle. The default datadir (~.spring) may be hidden. To show it set hidden folders to visible in your file manager's settings.

If you want to run the latest Spring engine you need SDL2. Versions of Ubuntu older than 13.10 do not have sdl2 in their default repositories. To install sdl2 in newer versions of Ubuntu:
sudo apt-get install libsdl2-2.0-0


In case you join a room using Spring 100 and download failed, you can try download it directly and extract it to [YOUR-DATADIR]/engine/100 :

Spring requires libstdc++.so.6, sdl-1.2 and a few other things (use ldd) to run. You can get them by installing Spring package from repository, find & install them using the Software Center, or enter the following in terminal:
sudo apt-add-repository ppa:spring/ppa
sudo apt-get update
sudo apt-get install spring


Optionally, if you want to manually compile spring yourself, first install its dependencies:
sudo apt-get install build-essential cmake cmake-gui git
sudo apt-get install libglew-dev libsdl-dev libdevil-dev libopenal-dev libogg-dev libvorbis-dev libfreetype6-dev
sudo apt-get install p7zip-full libxcursor-dev libboost-thread-dev libboost-regex-dev
sudo apt-get install libboost-system-dev libboost-program-options-dev libboost-signals-dev


Then download the source files with Git. Navigate into that folder and:
cmake .
make
sudo make install


You now have Spring installed. To make Zero-K lobby use your compiled version of spring you need to make two symlinks, one to the unitsync file and one to the spring executable. Do this by running:

ln -s /usr/local/bin/spring [YOUR-DATADIR]/engine/100
ln -s /usr/local/lib/libunitsync.so [YOUR-DATADIR]/engine/100


Now Zero-K Lobby will use the engine that you have compiled.