Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Webb/New linux server: Difference between revisions

From TF2 Classified Wiki
Webb (talk | contribs)
No edit summary
Webb (talk | contribs)
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 the home directory:
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.


== Installing TF2C ==
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.


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/archive/tf2classic-2.2.3.zip -O /tmp/tf2classic.zip
$ mkdir ~/sdk/tf2classic
$ cd ~/sdk/tf2classic
$ 7z x /tmp/tf2classic.zip && rm /tmp/tf2classic.zip
</pre>
This will downloaded the latest archive of TF2C, create its directory, and extract it. If extraction succeeds it will delete tf2classic.zip.
=== Symlinking improperly named shared objects ===
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. We'll also do the same for TF2C's <code>server_srv.so</code> and SDK's <code>steamclient.so</code>.
'''Your server will not start without doing this.'''
'''Your server will not start without doing this.'''
Run the following commands to create the symlinks in the bin folder:


<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
$ cd ~/sdk/tf2classic/bin
$ ln -s server.so server_srv.so
</pre>
</pre>


Next, we'll symlink <code>steamclient.so</code> to a special directory to prevent bugs.
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>