Alternate linux download instructions
Linux (alternate instructions)
Install of Zero-K dependencies
First you need to install Mono, 7zip, Wget, and Xprintidle to make the lobby function properly.
On Debian or Ubuntu
Find & install them using Software Center, or use the terminal:
sudo apt-get install mono-complete xprintidle p7zip-full wget
On Manjaro or Arch Linux
Most dependencies should already be installed, but you may need mono:
# installing mono package $ sudo pacman -S mono
Download and run the game (GUI)
Install the game itself. Download from http://zero-k.info/lobby/Zero-K.exe and place it in a folder of your choice. Zero-K will store & look for maps and game components in the directory that you place the game exe in. It will automatically download the game engine (currently Spring 100), the Zero-K module, and maps when you join a battle.
To start the game, run Zero-K.exe with Mono runtime.
Download and run the game (Terminal)
Optional: make game directory inside user home
cd ~ mkdir Zero-K cd Zero-K
Download the game using terminal and run it
wget http://zero-k.info/lobby/Zero-K.exe mono Zero-K.exe
When you join a battle and press Start, if the game does not run, you may 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
Manjaro / Arch users can use a similar pacman command.
Troubleshooting
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 :
- Go to http://springrts.com/dl/buildbot/default/master/ and folder with latest engine
- Pick minimal-portable-linux64-static.7z or minimal-portable-linux32-static.7z
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 sudo apt install libcanberra-gtk-module libopenal1
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.