Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Automatic install Minecraft: PE server
- # Tested on Ubuntu 14.04
- # Error? Contact fb.com/dfmcvn
- # ----------
- # Nhung dieu can luu y
- echo "Script nay chi hoat dong voi Ubuntu 14.04 tro len (da test) va Debian (chua test)."
- echo "Script nay khong hoat dong tren CentOS va nhung OS khac."
- echo "Neu ban khong su dung Ubuntu, vui long bam Ctrl + C."
- echo "------------------------------"
- echo "Script se bat dau cai dat trong 5 giay..."
- sleep 5
- # Update, sure vkl, and install something you dont know =))
- echo "Cap nhat server len ban moi nhat..."
- sleep 2
- apt-get update -y
- echo "Cai dat nhung thanh phan can thiet..."
- sleep 2
- apt-get install screen curl -y
- # Create MC files server folder
- echo "Tao thu muc chua files server.."
- sleep 2
- cd
- mkdir mcpe
- cd mcpe
- # Download core and default server.properties file.
- echo "Tai files can thiet..."
- echo "Downloading core..."
- curl -sO http://ci.mengcraft.com:8080/job/nukkit/lastBuild/artifact/target/nukkit-1.0-SNAPSHOT.jar
- echo "Downloading config (server.properties file)..."
- curl -sO https://pastebin.com/raw/yVvYwV5A
- # Update Java
- echo "Cap nhat JAVa..."
- sleep 2
- sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
- echo "deb http://www.duinsoft.nl/pkg debs all" | sudo tee -a /etc/apt/sources.list.d/duinsoft.list
- sudo apt-get update -y
- sudo apt-get install update-sun-jre -y
- # Launch server, first time. 768 is amount RAM allowed. Modify it.
- echo "Server se khoi dong sau 5 giay"
- echo "Sau khi server khoi dong, bam Ctrl + A D de hide console server..."
- sleep 7
- screen java -Xmx768M -Xms768M -jar nukkit-1.0-SNAPSHOT.jar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement