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

Dedicated legacy Linux server: Difference between revisions

From TF2 Classified Wiki
Mehr (talk | contribs)
Mehr (talk | contribs)
Moved symlink section above the start script stuff since it's more important to the flow.
Line 85: Line 85:
And merge the <code>cfg</code> folder with <code>/opt/tf2classic/server/tf2classic/cfg/</code>.
And merge the <code>cfg</code> folder with <code>/opt/tf2classic/server/tf2classic/cfg/</code>.


== Creating the server script ==
Change into the server directory with:
<pre>$ cd /opt/tf2classic/server/</pre>
Create a script to run the server with one simple command. Use any text editor of your choice to create runserver.sh where srcds_run is located. For the sake of those unfamiliar with terminal text editing, we'll be using Tilde. Run:
<pre>$ tilde runserver.sh</pre>
Fill it with this line (you may be able to paste using Ctrl-Shift-V):
<pre>./srcds_run -console -game tf2classic +map pl_upward +maxplayers 24</pre>
Feel free to change the map and maxplayers. There are more arguments, but we’ll keep it basic.
Save the file by clicking "File" -> "Exit", and confirming to save your changes. You can also press Ctrl-Q to accomplish this with your keyboard alone, if mouse inputs aren't passed through.
Now, make the script executable with:
<pre>
$ chmod +x runserver.sh
</pre>


== Create symlinks to missing shared objects. ==
== Create symlinks to missing shared objects. ==
Line 140: Line 118:
$ ln -s server.so server_srv.so
$ ln -s server.so server_srv.so
</pre>
</pre>
== Creating the server script ==
Change into the server directory with:
<pre>$ cd /opt/tf2classic/server/</pre>
Create a script to run the server with one simple command. Use any text editor of your choice to create runserver.sh where srcds_run is located. For the sake of those unfamiliar with terminal text editing, we'll be using Tilde. Run:
<pre>$ tilde runserver.sh</pre>
Fill it with this line (you may be able to paste using Ctrl-Shift-V):
<pre>./srcds_run -console -game tf2classic +map pl_upward +maxplayers 24</pre>
Feel free to change the map and maxplayers. There are more arguments, but we’ll keep it basic.
Save the file by clicking "File" -> "Exit", and confirming to save your changes. You can also press Ctrl-Q to accomplish this with your keyboard alone, if mouse inputs aren't passed through.
Now, make the script executable with:
<pre>
$ chmod +x runserver.sh
</pre>


== Running the server ==
== Running the server ==