[JAVA] [Ubuntu] Set up a Nukkit server

Set up Nukkit on Ubuntu Half a copy of the above

Server environment

・ ConoHa VPS ・ OS Ubuntu 18.04 ・ Memory 512MB ・ Storage SSD 20GB ・ CPU 1core

Java installation

Java is required for Nukkit to work This time, install ʻopenjdk-11-jre` as an example.

$ sudo apt-get install openjdk-11-jre

Port open

This time, as an example, 19132 ports. Only those who have # or $ at the beginning should be typed with the command In other words, you don't have to type the word Rules updated below.

$ ufw allow 19132/udp
Rules updated

User created

This time we will create a user named nukkit as an example

$ adduser nukkit
Adding user `nukkit' ...
Adding new group `nukkit' (1004) ...
Adding new user `nukkit' (1000) with group `nukkit' ...
Creating home directory `/home/nukkit' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:

If this happens, enter the password for the new user Nothing is displayed when you hit it. Don't get me wrong

Retype new UNIX password:

Please type the same password again

passwd: password updated successfully
Changing the user information for pmmp
Enter the new value, or press ENTER for the default
        Full Name []:
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:

From Full Name []: to ʻOther []: `, you can just press Enter.

Is the information correct? [Y/n]

Enter Y when asked.

Sudo Put it in the Sudo group. If you don't understand the meaning, contact Mr. Google

$ gpasswd -a nukkit sudo
Adding user nukkit to group sudo

Nukkit installation

First, create a nukkit directory (folder) for Nukkit.

$ su - nukkit
$ mkdir nukkit
$ cd nukkit

Installation

Install

$ wget https://ci.nukkitx.com/job/NukkitX/job/Nukkit/job/master/lastSuccessfulBuild/artifact/target/nukkit-1.0-SNAPSHOT.jar

From here it is different from PMMP First, create a shell script (is it used properly?) To start it.

$ vi start.sh

//Please paste ↓ using vi. How to use vi is Mr.Ask to google!
java -jar nukkit-1.0-SNAPSHOT.jar

Start-up

$ ./start.sh
11:41:52 [INFO ] Welcome! Please choose a language first!
11:41:52 [INFO ] eng => English
11:41:52 [INFO ] chs =>Chinese(?body)
11:41:52 [INFO ] cht =>Chinese (Traditional)
11:41:52 [INFO ] jpn =>Japanese
11:41:52 [INFO ] rus => Pycc?ий
11:41:52 [INFO ] spa => Espanol
11:41:52 [INFO ] pol => Polish
11:41:52 [INFO ] bra => Portugues-Brasil
11:41:52 [INFO ] kor => ???
11:41:52 [INFO ] ukr => Укра?нська
11:41:52 [INFO ] deu => Deutsch
11:41:52 [INFO ] ltu => Lietuvi?kai
11:41:52 [INFO ] idn => Indonesia
11:41:52 [INFO ] cze => Czech
11:41:52 [INFO ] tur => Turkish
11:41:52 [INFO ] fin => Suomi
> jpn
11:42:53 [INFO ] Loading nukkit.yml ...
11:42:53 [INFO ] Loading server.properties ...
11:42:53 [INFO ]Japanese(jpn)Was selected as the language
11:42:53 [INFO ] Minecraft:BE server(v1.14.Corresponds to 0)Is running
11:42:53 [INFO ] Selected Zlib Provider: 2 (cn.nukkit.utils.ZlibThreadLocal)
> WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
11:42:53 [INFO ] 0.0.0.0:Starting the server on 19132
11:42:53 [INFO ]This server is Nukkit version git-db2afe0「」(API 1.0.9)Is moving in
11:42:53 [INFO ]Nukkit is distributed under the LGPL license
11:42:55 [INFO ] Loading recipes...
11:42:55 [INFO ] Loaded 1320 recipes.
11:42:55 [INFO ] Successfully loaded 0 resource packs
11:42:55 [WARN ]world"world"Not found
> WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0$1 (file:/home/nukkit/nukkit/nukkit-1.0-SNAPSHOT.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
11:42:55 [INFO ]world"world"Is loading
11:42:56 [WARN ]world"nether"Not found
11:42:56 [INFO ] No level called "nether" found, creating default nether level.
11:42:56 [INFO ]world"nether"Is loading
11:42:56 [INFO ] Epoll Status is true
11:42:56 [INFO ]Start GS4 Status Listener
11:42:56 [INFO ]Set query port: 19132
11:42:56 [INFO ]The query is 0.0.0.0:Working with 19132
11:42:56 [INFO ]Default game type:Survival mode
11:42:56 [INFO ]Startup complete(63.552 seconds)! "help"Or"?"Get help with

I don't understand the meaning of the error on the way It seems that you can leave it alone (PMM Per B says) Please set from nukkit / nukkit.yml It's done ぉ ぉ ぉ

Use Screen

You can use Screen to keep PMMP running in the background all the time. Installation ↓

$ sudo apt-get install screen

session

//Start a session
$ screen -S pmmp
$ ./start.sh

//Connect to a session
$ screen -r pmmp

//Leave the session
Ctrl + A +Press the D key at the same time

the end

Gudaguda + I'm sorry for being appropriate I think it's full of mistakes so please let me know

Recommended Posts

[Ubuntu] Set up a Nukkit server
Set up a MineCraft Paper server on Ubuntu 20.04.1 LTS ② Update
Set up an SSH server on WSL2 Ubuntu 20.04
Set up a CentOS virtual server with Vagrant
Set up ansible-playbook on Ubuntu 20.04
Steps to set up a VNC server on CentOS 8.3
Easily set up a Jenkins server on AWS using Bitnami's AMI
Set up Metabase service on Windows Server 2012
Minimal steps to set up a Ruby environment with rbenv on Ubuntu 20.04
Prepare a LEMP Ubuntu 18 server with Ansible Galaxy
Yes, let's make a Minecraft server (Ubuntu 20.04 + Bedrock Server)
Set up a webhook in Shopify's custom app
Set JAVA_HOME for root user in AWS Ubuntu16.04 Server
Server construction procedure Ubuntu18.04 server
[Android / Java] Set up a button to return to Fragment
Set up a Db2 DB container and insert a little data
Set up Django on Ubuntu 16.04 with PostgreSQL and Gunicorn on ECS
How to set up a proxy with authentication in Feign
Build VNC Server on Ubuntu 20.04
Install Docker on Ubuntu Server 20.04
How to set up SSH from scratch without connecting a monitor or keyboard [Raspberry Pi, Ubuntu]
Set up GitLab with docker
Set up Gitolite on CentOS 7
[Wire Mock] I want to set up a stub / mock server in Java and perform E2E tests.
Install Ubuntu Server 20.04 on Btrfs
Set up a Wordpress Docker environment without using the Worpdress image
Creating a dual boot environment for Ubuntu Server 20.04.1 LTS and Windows 10
Try to set up Stanford CoreNLP Server for Windows (shortest guide)
Install Docker on Ubuntu and set up remote connection using tls