Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
X
xonotic
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 3
    • Merge Requests 3
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • xonotic
  • xonotic
  • Wiki
  • local test server on gnu linux

Last edited by Lyberta Sep 23, 2017
Page history

local test server on gnu linux

This tutorial explains how to setup a local test server that can be launched on the same machine as client.

Official release

This section explains how to setup a server from the official release of Xonotic. It assumes that you have extracted it in ~/Games/Xonotic/Release.

First you need to create a file called ~/.xonotic/data/server.cfg with the following content:

sv_public 1
hostname "My Test server"

This config creates a vanilla deathmatch server that will be visible to other players on the server list.

Next, you will probably want to create a launcher for your server so you can launch it from your desktop. Create a file called ~/Desktop/Xonotic Server.desktop with the following content:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Exec=/home/user/Games/Xonotic/Release/xonotic-linux64-dedicated -sessionid 1
Name=Xonotic Server
Icon=/home/user/Games/Xonotic/Release/misc/logos/icons_png/xonotic_32.png
Path=/home/user/Games/Xonotic/Release/

Now try double clicking on that launcher in your desktop and it should launch a dedicated server. Then you can launch client and connect to it.

Git version

This section explains how to setup a server from the git repository of Xonotic. It assumes that you have cloned it in ~/Games/Xonotic/Git/xonotic.

You can use server.cfg from the previous section.

Create a file called ~/Desktop/Xonotic Git Server.desktop with the following content:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Exec=/home/user/Games/Xonotic/Git/xonotic/darkplaces/darkplaces-dedicated -xonotic -sessionid 1
Name=Xonotic Git Server
Icon=/home/user/Games/Xonotic/Git/xonotic/misc/logos/icons_png/xonotic_32.png
Path=/home/user/Stuff/Games/Xonotic/Git/xonotic/

Again, double click on this launcher to launch server. Have fun!

Clone repository

Quick Resources

Repository Access and Compiling
Introduction to QuakeC
Tips for new developers
Programming QuakeC stuff in Xonotic