Forum
Wiki
Your Licenses
Dashboard
Support
Jobs
Hyatlas - ALL IN ONE ツ
Search
Search titles only
By:
Search titles only
By:
Hyatlas - ALL IN ONE ツ
Home
Hyatlas Team
Your Invoices
Search resources
Schematics
Maps
Survival Games
Bedwars
Skywars
Sky PVP
Skyblock
Prison Mines
Arenas
Spawns
Lobbies
Hubs
Waiting Lobbies
Components/Structure
Plugins
Graphics
Models
Templates
Photoshop
After Effects
Cinema 4D
Websites
Illustrator
Banner
Merchandising
Hosting
Dashboard
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Edit history
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
[LIST=1] [*]If you havn't already done so, download the program "[URL='https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html']PuTTY[/URL]". [*]Connect to your root server or VPS/vServer via SSH using [URL='https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html']PuTTY[/URL]. To do this, open [URL='https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html']PuTTY[/URL] and enter the domain or IP address of your server in the text box named "Host Name (or IP address)". Then click the "OK" button below. [*]Update your package lists with the command [COLOR=rgb(184, 49, 47)][B][U]apt update[/U][/B][/COLOR] [*]Now install any available updates of the packages already installed on your server using the command [COLOR=rgb(184, 49, 47)][B][U]apt upgrade -y[/U][/B][/COLOR] [*]Next, install the packages needed for future installations in this tutorial by executing the following command: [COLOR=rgb(184, 49, 47)][B][U]apt install gnupg curl dirmngr nano unzip -y[/U][/B][/COLOR] [*]Add the repository needed to install Java: [B] For Debian:[/B] [LIST=1] [*]Use the command [COLOR=rgb(184, 49, 47)][U][B]apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 73C3DB2A[/B][/U][/COLOR] to add the key needed for the Java repository. [*]Add the repository by executing the command [COLOR=rgb(184, 49, 47)][U][B]echo "deb http://ppa.launchpad.net/linuxuprising/java/ubuntu focal main" | tee /etc/apt/sources.list.d/java.list[/B][/U][/COLOR] [B]For Ubuntu:[/B] [*]Install the package for managing repositories using the following command: [COLOR=rgb(184, 49, 47)][U][B]apt install software-properties-common -y[/B][/U][/COLOR] [*]Add the repository by executing the command [COLOR=rgb(184, 49, 47)][U][B]add-apt-repository ppa:linuxuprising/java.[/B][/U][/COLOR] [/LIST] [*]Now update your package lists again with the command [COLOR=rgb(184, 49, 47)][B][U]apt update[/U][/B][/COLOR] [*]Install Java with the following command: [COLOR=rgb(184, 49, 47)][U][B]apt install oracle-java17-installer -y[/B][/U][/COLOR] [*]Accept the license terms by selecting the "[B]OK[/B]" button using the [B]Tab[/B] key, confirming the selection with [B]Enter[/B], selecting the "[B]Yes[/B]" button using the arrow keys, and then pressing [B]Enter[/B] again. [*]Install the software "screen". You'll need this to let the Minecraft server run in the background later, so you can close the PuTTY window without causing the Minecraft server to stop. Use the following command for the installation: [COLOR=rgb(184, 49, 47)][U][B]apt install screen -y[/B][/U][/COLOR] [*]Now add a user who will run the Minecraft Server on your Linux server. Use the following command: [COLOR=rgb(184, 49, 47)][B][U]adduser --disabled-login minecraft [/U][/B][/COLOR]In this example the user is called "minecraft". You can use a different name, but make sure to always use your own chosen user name instead of "minecraft" when you follow the next steps of this tutorial (e.g. "mcserver"). [*]You can skip all further information such as the name, telephone number, etc. by pressing enter as well. [*]Now use the command [COLOR=rgb(184, 49, 47)][U][B]su minecraft[/B][/U][/COLOR] to switch to your Minecraft user. [*]Go to the home directory of this user by executing the command [COLOR=rgb(184, 49, 47)][B][U]cd[/U][/B][/COLOR] The home directory is named exactly like the user himself and therefore the path is "/home/minecraft". [*]Then use the command [B][COLOR=rgb(184, 49, 47)][U]wget https://download.getbukkit.org/spigot/spigot-1.17.1.jar[/U][/COLOR][/B] to download the latest version of Spigot. If you want to use Craftbukkit, the command is [COLOR=rgb(184, 49, 47)][U][B]wget https://download.getbukkit.org/craftbukkit/craftbukkit-1.17.1.jar[/B][/U][/COLOR] [*]After the download is completed, you should see the downloaded JAR file using the command [COLOR=rgb(184, 49, 47)][U][B]ls[/B][/U][/COLOR] [*]Next, create a start and a stop script. These two scripts let you start and stop your Minecraft server later. To create the start script named "start.sh", use the command [COLOR=rgb(184, 49, 47)][U][B]nano start.sh[/B][/U][/COLOR] Now the nano text editor opens. Here you need to enter the following command: [COLOR=rgb(184, 49, 47)][B][U]screen -AmdS minecraft java -Xms4096M -Xmx4096M -jar /home/minecraft/spigot-1.17.1.jar nogui [/U][/B][/COLOR] Make sure you enter the correct filename of your previously downloaded JAR file. Instead of "4096", you can specify the amount of RAM in MB that you want to reserve for your Minecraft server. [B]Important[/B]: Keep enough memory for the system and other software running on your Linux server. [*]Now save the start script by pressing [B]CTRL + X, then hit the "Y" key and press enter[/B]. [*]Now create the stop script as well by executing the command [COLOR=rgb(184, 49, 47)][U][B]nano stop.sh[/B][/U][/COLOR]. Within the nano editor you need to write the following command into your script: [COLOR=rgb(184, 49, 47)][U][B]screen -r minecraft -X quit[/B][/U][/COLOR] Save the stop script just like the start script by pressing [B]CTRL + X, then hit the "Y" key and press enter[/B]. [*]After that you have to assign execution permissions for these two scripts. You do that with the following command: [COLOR=rgb(184, 49, 47)][U][B]chmod +x start.sh stop.sh[/B][/U][/COLOR] [*]In order to be able to start the Minecraft server, you must first accept the license terms. To do this, execute the command [COLOR=rgb(184, 49, 47)][B][U]echo "eula = true" > eula.txt[/U][/B][/COLOR] This creates a file which indicates that you accepted these license terms. [*]Then run the start script to start your Minecraft server. Use the command [COLOR=rgb(184, 49, 47)][B][U]./start.sh[/U][/B][/COLOR] [*]To get into the Minecraft server console, you need to open the screen background process. To do this, execute the command [COLOR=rgb(184, 49, 47)][B][U]screen -r minecraft[/U][/B][/COLOR] Under Debian 9, however, you must execute the command [COLOR=rgb(184, 49, 47)][U][B]script /dev/null[/B][/U][/COLOR] before using the screen command. If you are logged in as the user "root", you must first switch to the Minecraft user by executing the command [COLOR=rgb(184, 49, 47)][B][U]su minecraft[/U][/B][/COLOR] To exit the Minecraft server console, press [B]CTRL + A[/B] and then press the [B]"D" key[/B]. [*]Your Minecraft server is now ready to use. You can start and stop it at any time. Just log in as the Minecraft user by executing the command [COLOR=rgb(184, 49, 47)][U][B]su minecraft[/B][/U][/COLOR] go to the Minecraft server directory using the command [COLOR=rgb(184, 49, 47)][U][B]cd /home/minecraft[/B][/U][/COLOR] and execute the start or stop script ([COLOR=rgb(184, 49, 47)][U][B]./start.sh[/B][/U][/COLOR] or [COLOR=rgb(184, 49, 47)][U][B]./stop.sh[/B][/U][/COLOR]). [/LIST]
Revert