LinuxServer: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
== Downloading the Server ==
== Downloading the Server ==
You'll need to download the linux server to your host before you can run it.
You'll need to download the linux server to your host before you can run it.
You can do this by either making the host download it with something like <code>wget</code>, or download it from our [https://gtaconnected.com/downloads downloads] page, then upload it to your linux host via FTP or SFTP or similar protocol.
You can do this by either making the host download it with something like <code>wget</code> (see the "Updating the server" section below for a quick and easy way to do this), or download it from our [https://gtaconnected.com/downloads downloads] page, then upload it to your linux host via FTP or SFTP or similar protocol.
<br><br>
<br><br>
If you want to download it directly to the linux host, you can use <code>wget</code>. On the [https://gtaconnected.com/downloads downloads] page, find the linux server link, and right click it, and choose Copy Link Location or Copy Link. Your browser may have a different text for this option. Then, in your SSH terminal (we recommend [https://www.chiark.greenend.org.uk/~sgtatham/putty/ putty], if you're on Windows) use <code>wget SERVER_URL_HERE</code>, replacing SERVER_URL_HERE with the link you copied of course. You can then unzip it with your linux hosts's <code>tar</code> command. Please see your distro's documentation or man pages for information on the <code>tar</code> command if you need help.<br><br>
If you want to download it directly to the linux host, you can use <code>wget</code>. On the [https://gtaconnected.com/downloads downloads] page, find the linux server link, and right click it, and choose Copy Link Location or Copy Link. Your browser may have a different text for this option. Then, in your SSH terminal (we recommend [https://www.chiark.greenend.org.uk/~sgtatham/putty/ putty], if you're on Windows) use <code>wget SERVER_URL_HERE</code>, replacing SERVER_URL_HERE with the link you copied. You can then unzip it with your linux hosts's <code>tar</code> command. Please see your distro's documentation or man pages for information on the <code>tar</code> command if you need help.<br><br>


== Running the Server ==
== Running the Server ==
Line 17: Line 17:


== Updating the server ==
== Updating the server ==
GTA Connected is an actively updated multiplayer modification and regularly receives [https://gtaconnected.com/versions/server updates]. Here is a quick and easy one-liner to update your server:
GTA Connected is an actively updated multiplayer modification and regularly receives [https://gtaconnected.com/versions/server/ updates]. Here is a quick and easy one-liner to update your server:
<code>wget -qO- https://gtaconnected.com/downloads/server/latest/linux | tar xvzf -</code>
<br><code>wget -qO- https://gtaconnected.com/downloads/server/latest/linux | tar xvzf -</code><br><br>
'''Please note''' that this will overwrite server.xml with default values!
'''Please note''' that this will overwrite server.xml with default values!
If you use server.xml as your [[ServerConfiguration|server configuration]], back up your current configuration before using this.  
If you use server.xml as your [[ServerConfiguration|server configuration]], back up your current configuration before using this.  
You can also avoid this by using a different configuration file when starting the server via the -config command arg.
You can also avoid this by using a different configuration file when starting the server via the -config command arg.
2,591

edits