User Tools

Site Tools


player:tutorials:install_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
player:tutorials:install_server [2021/03/11 07:59] – Change Fedora package manager from yum to dnf and make it use non-awt packages kb1000player:tutorials:install_server [2023/02/03 20:14] (current) – Update instructions to use the server launcher. modmuss50
Line 5: Line 5:
 ===== Requirements ===== ===== Requirements =====
  
-You will require a version of Java of minimum version 8+For Minecraft 1.16.X or older, the required version of Java is 8+ 
 +For Minecraft 1.17.X, the required version of Java is 16+ 
 +For Minecraft 1.18.X or newer, the required version of Java is 17+
  
 You will also need a way to download files to the server. This can be done using a file transfer, [[https://curl.se/|curl]] or [[https://www.gnu.org/software/wget/|wget]] You will also need a way to download files to the server. This can be done using a file transfer, [[https://curl.se/|curl]] or [[https://www.gnu.org/software/wget/|wget]]
Line 11: Line 13:
 ==== Installing dependencies ==== ==== Installing dependencies ====
  
-^Name^Notes   ^Debian (Ubuntu, Mint, WSL, …)             ^Fedora                                ^+^Name^Notes   ^Debian (Ubuntu, Mint, …)             ^Fedora                                ^
 |Java|Required|''%%apt install openjdk-8-jre-headless%%''|''%%dnf install java-1.8.0-openjdk-headless%%''| |Java|Required|''%%apt install openjdk-8-jre-headless%%''|''%%dnf install java-1.8.0-openjdk-headless%%''|
-|Curl|Optional|''%%apt install curl%%''                  |''%%dnf install curl%%''                       | +|Curl|Required|''%%apt install curl%%''                  |''%%dnf install curl%%''                       |
-|Wget|Optional|''%%apt install wget%%''                  |''%%dnf install wget%%''                       |+
  
 ===== Instructions ===== ===== Instructions =====
  
   - Create and enter a directory to put the server in   - Create and enter a directory to put the server in
-  - Transfer the latest version of the Fabric Installer +  - Visit [[https://fabricmc.net/use/server/|the Minecraft Server download page]] and configure the desired versions 
-    * Curl: Find the download url of the installer jar from [[https://fabricmc.net/use/|this page]] (right click the button and copy the download link). Then, inside the server directory, run ''%%curl -o installer.jar <paste link here>%%'' +  - Use one of the following methods to download the minecraft server .jar to your server. 
-    * WgetFind the download url of the installer jar from [[https://fabricmc.net/use/|this page]] (right click the button and copy the download link). Theninside the server directoryrun ''%%wget -o installer.jar <paste link here>%%'' +    * CurlCopy the curl command from [[https://fabricmc.net/use/server/|this page]]. Then inside the server directory run the command to download the server jar file. 
-    * File transfer: Download the installer jar from [[https://fabricmc.net/use/|this page]] and transfer it into the server directory +    * File transfer: Download the server jar from [[https://fabricmc.net/use/server/|this page]] and transfer it into the server directory. 
-  - Run the installer''%%java -jar installer.jar server -mcversion <Minecraft version> -downloadMinecraft%%'' +  - To launch the server, run the command as shown on the web page.
-  - There should be a ''%%fabric-server-launch.jar%%'' file now. You can now delete the installer file +
-  - To launch the server, run ''%%fabric-server-launch.jar%%'' instead of the ''%%server.jar%%''. If this must be changed, see the notes below+
  
-===== Notes ===== 
- 
-If you are required to name the main jar ''%%server.jar%%'', first rename the original ''%%server.jar%%'' to ''%%vanilla.jar%%'' and update the name in ''%%fabric-server-launcher.properties%%'' to ''%%serverJar=vanilla.jar%%''. Then, the ''%%fabric-server-launch.jar%%'' file can be named anything 
- 
-If you are unable to run any commands on the server, you can perform all these steps on your own computer and transfer both files in your server directory 
- 
-===== Debian example ===== 
- 
-<code bash> 
-# Download dependencies 
-sudo apt install openjdk-8-jre-headless curl 
- 
-# Create the server folder and enter it 
-mkdir fabric 
-cd fabric 
- 
-# Download the installer 
-curl -o installer.jar <installer jar url> 
- 
-# Run the installer 
-java -jar installer.jar server -mcversion 1.16.5 -downloadMinecraft 
- 
-# Delete installer file 
-rm installer.jar 
- 
-# Rename jars 
-mv server.jar vanilla.jar 
-mv fabric-server-launch.jar server.jar 
-echo "serverJar=vanilla.jar" > fabric-server-launcher.properties 
- 
-# Start the server 
-java -jar server.jar 
-</code> 
player/tutorials/install_server.1615449570.txt.gz · Last modified: 2021/03/11 07:59 by kb1000