Difference between revisions of "How to install Minecraft Server on Raspberry Pi 4"

From media_wiki
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
   Cut and Paste the following 2 lines:   
 
   Cut and Paste the following 2 lines:   
 
   '''cd /home/pi/Desktop/minecraft_server/'''
 
   '''cd /home/pi/Desktop/minecraft_server/'''
   '''java -Xmx1024M -Xmx2000M -XX:+UseConcMarkSweepGC -jar spigot.jar nogui'''
+
   '''java -Xmx1024M -Xmx2000M -XX:+UseConcMarkSweepGC -jar spigot16-5.jar nogui'''
 
   
 
   
 
   Use the '''Control key''' with the letter '''o''' to save content.
 
   Use the '''Control key''' with the letter '''o''' to save content.
 
   Use the '''Control key''' with the letter '''x''' to close the file.
 
   Use the '''Control key''' with the letter '''x''' to close the file.
 
+
  '''Note:''' spigot16-5.jar is going to be the name of the file that loads. Make sure this matches the name in the folder after downloaded in next step.
Now lets download the Spigot Server File from the getbukkit.org download.<br>
+
----
 +
Download Spigot Server File from the getbukkit.org download.<br>
 
Open Spigot Server Download using the following URL:
 
Open Spigot Server Download using the following URL:
 
   https://getbukkit.org/download/spigot
 
   https://getbukkit.org/download/spigot
Line 32: Line 33:
 
[[File:Spigot16-5-jar.PNG]]<br>
 
[[File:Spigot16-5-jar.PNG]]<br>
 
Now copy the '''Spigot 1.16.5.jar''' from the Downloads directory(Folder) to the minecraft_Server directory (Folder).
 
Now copy the '''Spigot 1.16.5.jar''' from the Downloads directory(Folder) to the minecraft_Server directory (Folder).
   '''cp /home/pi/Downloads/spigot-1.16.5.jar /home/pi/Desktop/minecraft_server
+
   '''cp /home/pi/Downloads/spigot-1.16.5.jar /home/pi/Desktop/minecraft_server/spigot16-5.jar
 +
'''Note:''' spigot16-5.jar is going to be the name of the file that loads. Make sure this matches the name in the start.sh file.
 
----
 
----
 
'''Starting the server for the first time.  '''  Open a new terminal and enter the following line:
 
'''Starting the server for the first time.  '''  Open a new terminal and enter the following line:
  
 
  /home/pi/Desktop/minecraft_server/start.sh
 
  /home/pi/Desktop/minecraft_server/start.sh
 +
Error message stating need to agree to the EULA license will stop the build process.
 
----
 
----
  
 
'''How to update the EULA license.'''  Modify the eula.txt file with nano.
 
'''How to update the EULA license.'''  Modify the eula.txt file with nano.
   cd /home/pi/Desktop/minecraft_server/
+
   sudo nano /home/pi/Desktop/minecraft_server/eula.txt
  sudo nano eula.txt
+
   Change eula=false to eula=true
   Change eula=false to eula=true  
+
  Use the '''Control key''' with the letter '''o''' to save content.
 +
  Use the '''Control key''' with the letter '''x''' to close the file.
 
----
 
----
 
+
'''Starting the server to complete the build process.''' 
 +
Open a new terminal and enter the following line to see the server IP:
 +
'''ifconfig'''
 +
Run the Server:
 +
'''/home/pi/Desktop/minecraft_server/start.sh'''
 +
----
 +
'''Shutdown Server'''
 +
In the terminal type '''stop''' on the command line.
 +
----
 +
 +
==[[ Add essentials to your Minecraft Server  ]]==
 
==[[ Raspberry Pi ]]==
 
==[[ Raspberry Pi ]]==

Latest revision as of 22:58, 13 February 2021

Basic File System Setup.
Steps are following the Youtube Video by Macintosh Fan Technology

 https://www.youtube.com/watch?v=SBX-90NcAJo

Make sure your Java version is Java 8 or newer.
Open a terminal session:
Change Directory to Desktop

 cd home/pi/Desktop  or cd Desktop    

Make a new directory (Folder) called minecraft_server

 mkdir minecraft_server 
 Change to the directory
 cd minecraft_server   

Use the touch command to create a shell script file in that directory name start.sh

 touch start.sh

Enable the Read/Write attributes with chmod command to the start.sh file

 chmod +x start.sh

Modify the start.sh by adding the following 2 lines using nano.

 sudo nano start.sh
 
 Cut and Paste the following 2 lines:  
 cd /home/pi/Desktop/minecraft_server/
 java -Xmx1024M -Xmx2000M -XX:+UseConcMarkSweepGC -jar spigot16-5.jar nogui

 Use the Control key with the letter o to save content.
 Use the Control key with the letter x to close the file.
 Note: spigot16-5.jar is going to be the name of the file that loads. Make sure this matches the name in the folder after downloaded in next step.

Download Spigot Server File from the getbukkit.org download.
Open Spigot Server Download using the following URL:

 https://getbukkit.org/download/spigot

Select the Spigot version needed for your server. I will use version 1.16.5 for this example
Once selected click Download for that version. Do not click Create a Server
In the Box that says You're about to download: click on the version link. Spigot 1.16.5.jar
Spigot16-5-jar.PNG
Now copy the Spigot 1.16.5.jar from the Downloads directory(Folder) to the minecraft_Server directory (Folder).

 cp /home/pi/Downloads/spigot-1.16.5.jar /home/pi/Desktop/minecraft_server/spigot16-5.jar

Note: spigot16-5.jar is going to be the name of the file that loads. Make sure this matches the name in the start.sh file.


Starting the server for the first time. Open a new terminal and enter the following line:

/home/pi/Desktop/minecraft_server/start.sh

Error message stating need to agree to the EULA license will stop the build process.


How to update the EULA license. Modify the eula.txt file with nano.

 sudo nano /home/pi/Desktop/minecraft_server/eula.txt
 Change eula=false to eula=true
 Use the Control key with the letter o to save content.
 Use the Control key with the letter x to close the file. 

Starting the server to complete the build process. Open a new terminal and enter the following line to see the server IP:

ifconfig

Run the Server:

/home/pi/Desktop/minecraft_server/start.sh

Shutdown Server

In the terminal type stop on the command line.

Add essentials to your Minecraft Server

Raspberry Pi