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)
m spacing awkwardness
Mehr (talk | contribs)
changed start script instructions from tilde to nano
Line 123: Line 123:
<pre>$ cd /opt/tf2classic/server/</pre>
<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:
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 nano. Run:


<pre>$ tilde runserver.sh</pre>
<pre>$ nano runserver.sh</pre>


Fill it with this line (you may be able to paste using Ctrl-Shift-V):
Fill it with this line (you may be able to paste using Shift+Insert:


<pre>./srcds_run -console -game tf2classic +map pl_upward +maxplayers 24</pre>
<pre>./srcds_run -console -game tf2classic +map pl_upward +maxplayers 24</pre>
Line 133: Line 133:
Feel free to change the map and maxplayers. There are more arguments, but we’ll keep it basic.
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.
Save the file by clicking <code>CRTL+X</code>, and then <code>Y</code> to write your changes.


Now, make the script executable with:
Now, make the script executable with: