Install Minecraft Server on Arch Linux
- Install
Java
for linux$ sudo pacman -Syu java
- If you want to run mcserver in the background, you can install screen
$ sudo pacman -Syu screen
- Create a folder where you want to store the minecraft server
$ mkdir mcserver $ cd mcserver
- Download minecraft server from mojang
$ wget https://launcher.mojang.com/v1/objects/35139deedbd5182953cf1caa23835da59ca3d7cd/server.jar
- Create a new screen session
$ screen -S mcserver
- Run the server
$ java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.4.jar nogui
- Minimize or set the server to background by pressing
CTRL + a, d
Note: During the first run, the server will generate
eula.txt
. Update the text file and set the value fromeula=false
toeula=true