Server Setup: Difference between revisions

Content deleted Content added
Chill (talk | contribs)
m Remove excessive capitalization of the headers -- it brought visual bloat, in my opinion
Chill (talk | contribs)
m Linux: Backups: formatting
Line 196: Line 196:
Below is an example of how the process can go. Check if it's the most recent version of the mods before proceeding.
Below is an example of how the process can go. Check if it's the most recent version of the mods before proceeding.


It would be most convenient to download the mods directly through the <code>wget</code> command to the <code>mods</code> folder on the server:
It would be most convenient to download the mods directly through the <code>wget</code> command to the <code>mods</code> folder on the server. If <code>wget</code> fails, we can upload the mods to the server by <code>scp</code>.


If <code>wget</code> fails, we can upload the mods to the server by <code>scp</code>. Using ONLY ONE of the following:
Below are the examples of both ways. Please use the <code>scp</code> option only if the <code>wget</code> one fails:


Using <code>wget</code> :<syntaxhighlight lang="shell">
* Using <code>wget</code> : <syntaxhighlight lang="shell">
cd server_directory/mods
cd server_directory/mods
wget $(curl -s https://api.github.com/repos/GTNewHorizons/FTB-Utilities/releases/latest | grep browser_download_url | tail -n 1 | cut -d '"' -f 4)
wget $(curl -s https://api.github.com/repos/GTNewHorizons/FTB-Utilities/releases/latest | grep browser_download_url | tail -n 1 | cut -d '"' -f 4)
wget $(curl -s https://api.github.com/repos/GTNewHorizons/FTB-Library/releases/latest | grep browser_download_url | tail -n 1 | cut -d '"' -f 4)
wget $(curl -s https://api.github.com/repos/GTNewHorizons/FTB-Library/releases/latest | grep browser_download_url | tail -n 1 | cut -d '"' -f 4)
</syntaxhighlight>
</syntaxhighlight>Upload the mods from your end to the server through the <code>scp</code> command:<syntaxhighlight lang="shell">

* Using <code>scp</code> : <syntaxhighlight lang="shell">
scp -i path_to_private_SSH_key path_to_FTBUtilities_on_your_computer opc@instance_ip:server_folder/mods/FTBUtilities_full_name.jar
scp -i path_to_private_SSH_key path_to_FTBUtilities_on_your_computer opc@instance_ip:server_folder/mods/FTBUtilities_full_name.jar
scp -i path_to_private_SSH_key path_to_FTBLib_on_your_computer opc@instance_ip:server_folder/mods/FTBLib_full_name.jar
scp -i path_to_private_SSH_key path_to_FTBLib_on_your_computer opc@instance_ip:server_folder/mods/FTBLib_full_name.jar
</syntaxhighlight>
</syntaxhighlight>

A finished example might look like this:
A finished <code>scp</code> example might look like this:

<syntaxhighlight lang="output">
<syntaxhighlight lang="output">
scp -i ~/.ssh/ssh-key-2022-09-07.key ~/Downloads/FTBUtilities-1.7.10-1.0.18.7-GTNH.jar opc@144.24.170.228:~/minecraft-server/mods/FTBUtilities-1.7.10-1.0.18.7-GTNH.jar
scp -i ~/.ssh/ssh-key-2022-09-07.key ~/Downloads/FTBUtilities-1.7.10-1.0.18.7-GTNH.jar opc@144.24.170.228:~/minecraft-server/mods/FTBUtilities-1.7.10-1.0.18.7-GTNH.jar