LinuxServer: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 12: Line 12:
<br><br>
<br><br>
However, once you terminate your SSH connection to the server host, the GTAC server will stop running. To keep the server running, you can either ''nohup'' or use ''screen''. There are other ways to keep the server running, but those two are the most common. Please refer to your distro's documentation for information information and/or examples available on using nohup and screen.<br><br>
However, once you terminate your SSH connection to the server host, the GTAC server will stop running. To keep the server running, you can either ''nohup'' or use ''screen''. There are other ways to keep the server running, but those two are the most common. Please refer to your distro's documentation for information information and/or examples available on using nohup and screen.<br><br>
== Dependencies ==
The linux server currently depends on OpenSSL and libcurl. The list here shows the required commands for a few linux distributions:<br>
{| class="wikitable"
|'''Debian/Ubuntu'''
|<code>apt install openssl curl</code>
|-
|'''RedHat/Fedora'''
|<code>dnf install openssl curl</code>
|-
|'''CentOS'''
|<code>yum install openssl curl</code>
|-
|'''openSUSE'''
|<code>zypper install openssl curl</code>
|-
|'''Arch Linux'''
|<code>pacman -S openssl curl</code>
|}
Please note: you may or may not need to use sudo to install these, depending on your system configuration and current user permissions.


== Server Manual ==
== Server Manual ==
You can find the main server manual (applies to both Linux and Windows servers) on the [[ServerManual|server manual]]
You can find the main server manual (applies to both Linux and Windows servers) on the [[ServerManual|server manual]]

Revision as of 07:37, 23 November 2020

Downloading the Server

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 wget, or download it from our downloads page, then upload it to your linux host via FTP or SFTP or similar protocol.

If you want to download it directly to the linux host, you can use wget. On the 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 putty, if you're on Windows) use wget SERVER_URL_HERE, replacing SERVER_URL_HERE with the link you copied of course. You can then unzip it with your linux hosts's tar command. Please see your distro's documentation or man pages for information on the tar command if you need help.

Running the Server

First, you'll need to make sure the required dependencies are installed. See the dependencies section below for more information on that.

After you have the dependencies installed, in order to run the server executable you need to first make sure it has execute permissions. To do this, use the command chmod +x Server from within your server's main directory. Once you have set execute permissions for the server executable, you may start the server with ./Server. This is the simplest way to run the server.

However, once you terminate your SSH connection to the server host, the GTAC server will stop running. To keep the server running, you can either nohup or use screen. There are other ways to keep the server running, but those two are the most common. Please refer to your distro's documentation for information information and/or examples available on using nohup and screen.

Server Manual

You can find the main server manual (applies to both Linux and Windows servers) on the server manual