Server Setup (Linux): Difference between revisions

m
remove redundant backslash
mNo edit summary
m (remove redundant backslash)
 
(4 intermediate revisions by the same user not shown)
Line 1:
''This guide is written specifically for running a remote server on Linux with Java 17+. For general information and other platforms, see [[Server Setup]].''
 
* '''Latest Revision:''' May 2024, GTNH version 2.6.0.
Line 63 ⟶ 64:
This will connect to the (ubuntu) server you have created using the SSH protocol. For the purpose of this tutorial, this will be referred to as Connecting or SSH'ing.
 
Open PuTTY. Open the ssh field on the left, and click (do not open) "auth". UnderIf you are on an older version of putty, under "authentication parameters -> Private key file for authentitcation:", click Browse. Here, you canto select theyour private key file. If you justare saved.on (thenewer .ppkversions, file)expand "auth", then click "Credentials". ItHere, willunder enter"authentication theparameters passphrase-> youPrivate setkey file for authentitcation:", click Browse to unlockselect your private key (iffile. Select the private key file you setjust onesaved. (the .ppk file).
 
[[File:Putty auth configurationnewer versions.png||thumb1000px|center|The location for your private key on newer versions]]
After doing this, scroll back up and click "Session" (the very top option) to go back to the initial view.
 
In here, under the "Host Name (or IP address)" enter "root@[ip]", where \[ip\] is the public IP address that you have copied from the Hetzner Cloud screen.
 
Enter a name for your session under "Saved Sessions", and click Save.
Line 75 ⟶ 76:
 
Now click "Open" and it will connect to your server. (If you get a warning, click "Accept").
 
It will ask you to enter the passphrase you set to unlock your key (if you set one). When you type, your text will not appear on the screen, but it is registering your keystrokes. Just type your passphrase and press enter.
 
If everything went well, you have now connected to your server, and the bottom line of your terminal should say <code>root@[server-name]:~#</code>
Line 93 ⟶ 96:
Step 3. Download the server zip from [http://downloads.gtnewhorizons.com/ServerPacks/ the serverpacks download]. You want the java 17-21 version. Right click -> copy URL to get the url to download.
 
<code>curlwget [URL]</code>, e.g. (FOR VERSION 2.6.0), <code>wget http://downloads.gtnewhorizons.com/ServerPacks/GT_New_Horizons_2.6.0_Server_Java_17-21.zip</code>
 
Step 4. Unzip the server ZIP file into a folder called GTNH-Server. In this case (FOR VERSION 2.6.0),
Line 132 ⟶ 135:
<code>mv [file1] [file2]</code> will move file1 to file2, so e.g. if you wanna move a mod that you accidentally downloaded into the main GTNH-Server folder, <code>mv my-mod.jar mods/my-mod.jar</code> would fix that
 
<code>cp [file1] [file2]</code> will copy file2file1 to file2.
 
==== Pollution ====
17

edits