Skip to content

Instantly share code, notes, and snippets.

@MarioCMFlys
Created January 10, 2020 13:30
Show Gist options
  • Select an option

  • Save MarioCMFlys/617c34e7cb90e6004cd5ce0259494049 to your computer and use it in GitHub Desktop.

Select an option

Save MarioCMFlys/617c34e7cb90e6004cd5ce0259494049 to your computer and use it in GitHub Desktop.

Supertuxkart Server Setup Tutorial

Install dependencies:

sudo apt install wget git subversion make build-essential cmake pkg-config zlib1g-dev libcurl4-openssl-dev libssl-dev

Download the source code:

git clone https://github.com/supertuxkart/stk-code stk-code

Download assets:

svn co https://svn.code.sf.net/p/supertuxkart/code/stk-assets stk-assets

Create & enter the work directory for build process:

cd stk-code
mkdir cmake_build
cd cmake_build

Use this to build STK (You can add -jX to the make command to utilize X CPU cores)

cmake .. -DSERVER_ONLY=ON
make

Log in to SuperTuxKart Online:

./bin/supertuxkart --init-user --login="USERNAME" --password="PASSWORD"

Download template server config:

wget -O server.xml https://gist.githubusercontent.com/MarioCMFlys/041d0d065b58d44a5166425a2f4d3e9e/raw

Run the server:

./bin/supertuxkart --server-config=server.xml --network-console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment