Dedicated legacy Linux server: Difference between revisions
From TF2 Classified Wiki
More actions
m spacing awkwardness |
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 | 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>$ | <pre>$ nano runserver.sh</pre> | ||
Fill it with this line (you may be able to paste using | 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 | 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: | ||