User:Webb/New linux server: Difference between revisions
From TF2 Classified Wiki
More actions
No edit summary |
No edit summary |
||
| Line 51: | Line 51: | ||
Pick a directory to install your server into. Many put it under a directory in <code>/opt</code>, but for this guide we'll be using <code>/home/srcds</code>. | Pick a directory to install your server into. Many put it under a directory in <code>/opt</code>, but for this guide we'll be using <code>/home/srcds</code>. | ||
Create a disabled user with | Create a disabled user with a home directory. | ||
<pre> | <pre> | ||
| Line 80: | Line 80: | ||
If everything went well, <code>srcds</code> should be installed and you should be back at your user shell. | If everything went well, <code>srcds</code> should be installed and you should be back at your user shell. | ||
Before we continue we'll need to fix some files. | |||
Valve changed some shared object file names in the SDK, but the objects included with our install of SDK 2013 have not adopted the new names. | |||
Since these are simply renames, we can symlink them. | |||
'''Your server will not start without doing this.''' | '''Your server will not start without doing this.''' | ||
<pre> | <pre> | ||
| Line 114: | Line 99: | ||
$ ln -s vphysics_srv.so vphysics.so | $ ln -s vphysics_srv.so vphysics.so | ||
$ ln -s soundemittersystem_srv.so soundemittersystem.so | $ ln -s soundemittersystem_srv.so soundemittersystem.so | ||
</pre> | </pre> | ||
Finally, we'll also symlink <code>steamclient.so</code> to a special directory to prevent bugs. | |||
<pre> | <pre> | ||
$ mkdir -p ~/.steam/sdk32 | $ mkdir -p ~/.steam/sdk32 | ||
$ ln -s ~/sdk/bin/steamclient.so ~/.steam/sdk32/ | $ ln -s ~/sdk/bin/steamclient.so ~/.steam/sdk32/ | ||
</pre> | |||
== Installing TF2C == | |||
We'll be downloading the archived verison of TF2C, since it's unlikely to get updates. You have the option of using TF2CDownloader, but we won't cover it here. | |||
<pre> | |||
$ wget https://wiki.tf2classic.com/kachemak/tf2classic.zip -O /tmp/tf2classic.zip | |||
$ mkdir ~/sdk/tf2classic | |||
$ cd ~/sdk/tf2classic | |||
$ 7z x /tmp/tf2classic.zip && rm /tmp/tf2classic.zip | |||
</pre> | |||
This will download the latest archive, create its directory, and extract it. If extraction succeeds it will also delete the downloaded archive. | |||
We'll also need to do a quick symlink in TF2C's bin folder. | |||
<pre> | |||
$ cd ~/sdk/tf2classic/bin | |||
$ ln -s server.so server_srv.so | |||
</pre> | </pre> | ||