info: | Download steam-boiler to install steam and boiler. |
---|---|
author: | Erik Southworth |
version: | 49.1 |
revision: | September 08, 2012 |
description: | Linux Reference Manual |
Assuming you have installed Steam-Boiler and have logged in to a normal user account. The following shell session demonstrates how a typical installation is accomplished. Open a shell terminal and follow these steps.
1. Make directory (if required) and change directory to where user gameserver downloads are to be stored. Here we call it ‘Gameserver’.
- $ mkdir -pv ~/Gameserver
- $ cd ~/Gameserver
[~]$ mkdir -pv ~/Gameserver
mkdir: created directory `/home/user/Gameserver'
[~]$ cd ~/Gameserver
[Gameserver]$
- $ steam -command update -game ‘counter-strike source’ -dir ~/Gameserver
[Gameserver]$ steam -command update -game 'counter-strike source' -dir ~/Gameserver
+ ionice -c 3 steam -command update -game counter-strike source -dir /home/user/Gameserver/
Checking bootstrapper version ...
Updating Installation
Determining which depot(s) to install/update...
5 depot(s) will be installed/updated
0:01 Checking local files and building download list for depot 242 'Counter-Strike Source Shared' version 127
0:01 Connecting content server session for version 127
0:01 [63.149.72.158:27030] Connecting...
0:01 [63.149.72.158:27030] Connection established; handshaking...
0:01 [63.149.72.158:27030] Sending login message...
0:02 Fetching version 127 manifest
0:04 Reading version 127 checksum table
0:09 18637 file(s) totaling 1712400539 bytes will be downloaded
0:09 Checking local files and building download list for depot 207 'Source Models' version 4
0:09 Connecting content server session for version 4
0:09 [63.149.72.158:27030] Reusing connection
0:09 [63.149.72.158:27030] Sending login message...
0:09 Fetching version 4 manifest
0:10 Reading version 4 checksum table
0:11 Fetching exclude list
0:11 Calculating download size
0:11 No files will be downloaded
0:11 Checking local files and building download list for depot 208 'Source Sounds' version 4
0:11 Connecting content server session for version 4
0:12 [63.149.72.158:27030] Reusing connection
0:12 [63.149.72.158:27030] Sending login message...
0:12 Fetching version 4 manifest
0:12 Reading version 4 checksum table
0:12 Fetching exclude list
0:12 Calculating download size
0:13 No files will be downloaded
0:13 Checking local files and building download list for depot 206 'Source Materials' version 8
0:13 Connecting content server session for version 8
0:13 [63.149.72.158:27030] Reusing connection
0:13 [63.149.72.158:27030] Sending login message...
0:14 Fetching version 8 manifest
0:14 Reading version 8 checksum table
0:14 Fetching exclude list
0:14 Calculating download size
0:15 No files will be downloaded
0:15 Checking local files and building download list for depot 257 'Counter-Strike Source Linux Dedicated Server' version 10
0:15 Connecting content server session for version 10
0:15 [63.149.72.158:27030] Reusing connection
0:15 [63.149.72.158:27030] Sending login message...
0:15 Fetching version 10 manifest
0:15 Reading version 10 checksum table
0:15 Calculating download size
0:15 64 file(s) totaling 42898182 bytes will be downloaded
0:15 Checking/Installing 'Counter-Strike Source Shared Content' version 127
0:15 [63.149.72.158:27030] Reusing connection
0:15 [63.149.72.158:27030] Sending login message...
0:17 0.37% downloading /home/user/Gameserver//css/cstrike/bin/server.dll
0:18 0.97% downloading /home/user/Gameserver//css/cstrike/bin/server.dylib
19:31 100.00% downloading /home/user/Gameserver//css/srcds_linux
19:31 100.00% downloading /home/user/Gameserver//css/srcds_run
19:31 [63.149.72.158:27030] Disconnecting
HLDS installation up to date
+ Checking steam symlink in /home/user/Gameserver/css ... missing
+ Creating symlink /home/user/Gameserver/css/steam -> `/usr/local/bin/steam'
Tip
Using Steam-Boiler simplifies the command-line to steam update css ~/Gameserver instead of steam -command update -game 'counter-strike source' -dir ~/Gameserver.
3. Change directory to where the run-script is located and test the dedicated server.
- $ cd ~/Gameserver/css
- $ ./srcds_run -game cstrike +map de_dust2 +ip 0.0.0.0
[Gameserver]$ cd ~/Gameserver/css/
[css]$ ./srcds_run -game cstrike +map de_dust2 +ip 0.0.0.0
Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
Using breakpad minidump system
Using breakpad crash handler
Console initialized.
Game.dll loaded for "Counter-Strike: Source"
Setting breakpad minidump AppID = 240
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(240)/version(5028)
maxplayers set to 32
No '-replayserverdir' parameter found - using default replay folder.
Replay: Creating thread pool...succeeded.
Replay: Starting thread pool with 4 threads...succeeded.
Cleaning files from temp dir, "/home/user/Gameserver/css/cstrike/replay/server/tmp/" ...no files removed.
Unknown command "r_decal_cullsize"
Network: IP 0.0.0.0, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file server.cfg
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Logging into anonymous gameserver account.
'server.cfg' not present; not executing.
Connection to Steam servers successful.
Assigned anonymous gameserver Steam ID [A-1:1156987905(3079)].
VAC secure mode is activated.
Use CTRL-C to exit...
Sat Sep 8 12:56:47 EDT 2012: Server Quit
Hint
srcds_run also accepts some other, not widely useful, options. Run ./srcds_run -help for more details. All command-line options are passed through to the gameserver binary. Server cvars are specified on the command-line using the notation +CVAR VALUE. (i.e. +map de_dust)
Important
The +IP specified is normally within the local network range 192.168.xxx.xxx for underground (cable/DSL) hosted servers or wildcard 0.0.0.0 for all available interfaces. (i.e. +ip 192.168.1.15)