-
Notifications
You must be signed in to change notification settings - Fork 109
How to set up a Xash3D Dedicated Server on Debian or Ubuntu
1. Add a repository corresponding to your distro from OBS
2. Install XashDS:
# aptitude install xashds
3. XashDS is installed in /usr/games directory. So add your user to games
group.
NOTE: It will be good, if you will create a separate user for XashDS.
$ usermod -a -G games ${USER}
4. Create directory for server:
$ mkdir -p ${HOME}/xashds
$ cd ${HOME}/xashds
5. Copy the game files to created directory.
For example, for Half-Life* it’s a valve
folder.
For Counter-Strike it will be valve
and cstrike
folders.
NOTE: You can obtain it from Steam. See SteamCMD.
6. Set up the server. Open the server.cfg
with your favourite text editor.
NOTE: If you want running Counter-Strike server, set sv_skipshield 1
in config. Otherwise all players will have an invisible permanent shield.
NOTE: Set public 1
if you want your server be discoverable through Internet Games section in Xash3D SDL.
NOTE: Example from celest.in server on Gist
7. Run server
xashds
-game gamedir
to arguments, if you want to run a mod. For example, for Counter-Strike it will be xashds -game cstrike
.
NOTE: You can run XashDS in screen
, so server will run after closing SSH session.
Conguratulations! You now have online server. Don’t forget to read our server rules