Code Monkey home page Code Monkey logo

mcsli's Introduction

MCSLI: Minecraft Server Linux Installer

Use this to easily install Java and a Minecraft server on a Linux server.

wget https://github.com/silvertriclops/MCSLI/archive/master.zip
unzip master.zip
sudo chmod +x install.sh
sudo chmod +x start.sh
./install.sh # tells the computer where Java is so it knows how to start Minecraft
./start.sh # starts the Minecraft server. You may want to run this command inside screen.

Currently this only works on Debian/Ubuntu. If you want to use it on Fedora/SUSE, you'll need to make some changes to install.sh.

To do:

  • Fedora/SUSE support
  • Option to install Java to /opt/oracle/java/jre (or a specified directory)
  • Option to install the Minecraft server to /opt/mcserver (or a specified directory)
  • Option to download the latest version of Java and the Minecraft server before installation
  • Change a few permissions
  • Make it a bit (okay, a lot) more user friendly

mcsli's People

Contributors

jbschooley avatar walkman100 avatar

Stargazers

Mariusz avatar Scarpari avatar Dododou avatar  avatar 落秋枫叶 avatar nuǝuuɥǝxᴉnɯ avatar 705 avatar 乌堆小透明 avatar  avatar  avatar amuro9999 avatar Tony Zhao Yimin avatar Bear Julin avatar  avatar  Deleted user  avatar  avatar  avatar aschilds avatar genie avatar  avatar  avatar  avatar Patrick Schreiber avatar Sophie Kirschner avatar Brandooo! avatar Randy avatar  avatar  avatar Thomas Luong avatar D.C. Compton avatar Jarrod Simpson avatar qiwihui avatar Adam Schnitzer avatar kerak_telor_betawi avatar Jivko Georgiev avatar Thomas Yang avatar Kev avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar Ming avatar Robin Schmidt avatar  avatar

mcsli's Issues

Getting error messages during install. Looks like this has been dormant for a few years.

I downloaded the MCSLI and did the install and got error messages. I am hoping to get a resolution to this abort. I would appreciate your help.
Bootstrap (v5)
Current time is Feb 9, 2019, 5:30:33 AM
System.getProperty('os.name') == 'Linux'
System.getProperty('os.version') == '4.15.0-20-generic'
System.getProperty('os.arch') == 'i386'
System.getProperty('java.version') == '10.0.1'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '32'

Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 2/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 3/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 4/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 5/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 6/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 7/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 8/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 9/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 10/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Unable to download remote file. Check your internet connection/proxy settings.
FATAL ERROR: net.minecraft.bootstrap.FatalBootstrapError: Unable to download while being forced
at net.minecraft.bootstrap.Bootstrap.execute(Bootstrap.java:95)
at net.minecraft.bootstrap.Bootstrap.main(Bootstrap.java:381)

jim@netbook:/Downloads$ cd MCSLI-master/
jim@netbook:
/Downloads/MCSLI-master$ ls
install.sh java mcserver README.md start.sh
jim@netbook:/Downloads/MCSLI-master$ sudo chmod +x install.sh
jim@netbook:
/Downloads/MCSLI-master$ sudo chmod +x start.sh

jim@netbook:~/Downloads/MCSLI-master$ ./install.sh
update-alternatives: error: alternative path is not absolute as it should be: java/jre1.8.0_25/bin/java
update-alternatives: error: alternative path is not absolute as it should be: java/jre1.8.0_25/bin/javac
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)

jim@netbook:/Downloads/MCSLI-master$ ./start.sh
[05:25:47] [Server thread/INFO]: Starting minecraft server version 1.8.1
[05:25:47] [Server thread/INFO]: Loading properties
[05:25:47] [Server thread/WARN]: server.properties does not exist
[05:25:47] [Server thread/INFO]: Generating new properties file
[05:25:47] [Server thread/WARN]: Failed to load eula.txt
[05:25:47] [Server thread/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
[05:25:47] [Server thread/INFO]: Stopping server
[05:25:47] [Server Shutdown Thread/INFO]: Stopping server
jim@netbook:
/Downloads/MCSLI-master$ nano eula.txt

jim@netbook:/Downloads/MCSLI-master$ ./start.sh
[05:27:10] [Server thread/INFO]: Starting minecraft server version 1.8.1
[05:27:10] [Server thread/INFO]: Loading properties
[05:27:10] [Server thread/INFO]: Default game type: SURVIVAL
[05:27:10] [Server thread/INFO]: Generating keypair
[05:27:11] [Server thread/INFO]: Starting Minecraft server on :25565
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/home/jim/Downloads/MCSLI-master/mcserver/minecraft_server.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0
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
Feb 09, 2019 5:27:11 AM io.netty.util.internal.PlatformDependent
INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system unstability.
OpenJDK Server VM warning: You have loaded library /tmp/libnetty-transport-native-epoll215508589190343628.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
[05:27:12] [Server thread/INFO]: Using default channel type
[05:27:12] [Server thread/WARN]: Failed to load user banlist:
java.io.FileNotFoundException: banned-players.json (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.base/java.io.FileInputStream.open(FileInputStream.java:220) ~[?:?]
at java.base/java.io.FileInputStream.(FileInputStream.java:158) ~[?:?]
at com.google.common.io.Files.newReader(Files.java:86) ~[minecraft_server.jar:?]
at su.g(SourceFile:124) ~[minecraft_server.jar:?]
at po.z(SourceFile:99) [minecraft_server.jar:?]
at po.(SourceFile:25) [minecraft_server.jar:?]
at pp.i(SourceFile:172) [minecraft_server.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:418) [minecraft_server.jar:?]
at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
[05:27:12] [Server thread/WARN]: Failed to load ip banlist:
java.io.FileNotFoundException: banned-ips.json (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.base/java.io.FileInputStream.open(FileInputStream.java:220) ~[?:?]
at java.base/java.io.FileInputStream.(FileInputStream.java:158) ~[?:?]
at com.google.common.io.Files.newReader(Files.java:86) ~[minecraft_server.jar:?]
at su.g(SourceFile:124) ~[minecraft_server.jar:?]
at po.y(SourceFile:91) [minecraft_server.jar:?]
at po.(SourceFile:27) [minecraft_server.jar:?]
at pp.i(SourceFile:172) [minecraft_server.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:418) [minecraft_server.jar:?]
at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
[05:27:12] [Server thread/WARN]: Failed to load operators list:
java.io.FileNotFoundException: ops.json (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.base/java.io.FileInputStream.open(FileInputStream.java:220) ~[?:?]
at java.base/java.io.FileInputStream.(FileInputStream.java:158) ~[?:?]
at com.google.common.io.Files.newReader(Files.java:86) ~[minecraft_server.jar:?]
at su.g(SourceFile:124) ~[minecraft_server.jar:?]
at po.A(SourceFile:107) [minecraft_server.jar:?]
at po.(SourceFile:29) [minecraft_server.jar:?]
at pp.i(SourceFile:172) [minecraft_server.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:418) [minecraft_server.jar:?]
at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
[05:27:12] [Server thread/WARN]: Failed to load white-list:
java.io.FileNotFoundException: whitelist.json (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.base/java.io.FileInputStream.open(FileInputStream.java:220) ~[?:?]
at java.base/java.io.FileInputStream.(FileInputStream.java:158) ~[?:?]
at com.google.common.io.Files.newReader(Files.java:86) ~[minecraft_server.jar:?]
at su.g(SourceFile:124) ~[minecraft_server.jar:?]
at po.C(SourceFile:123) [minecraft_server.jar:?]
at po.(SourceFile:30) [minecraft_server.jar:?]
at pp.i(SourceFile:172) [minecraft_server.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:418) [minecraft_server.jar:?]
at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
[05:27:13] [Server thread/INFO]: Preparing level "world"
[05:27:14] [Server thread/INFO]: Preparing start region for level 0
[05:27:15] [Server thread/INFO]: Preparing spawn area: 1%
[05:27:16] [Server thread/INFO]: Preparing spawn area: 3%
[05:27:17] [Server thread/INFO]: Preparing spawn area: 4%
[05:27:18] [Server thread/INFO]: Preparing spawn area: 5%
[05:27:19] [Server thread/INFO]: Preparing spawn area: 6%
[05:27:20] [Server thread/INFO]: Preparing spawn area: 7%
[05:27:21] [Server thread/INFO]: Preparing spawn area: 9%
[05:27:23] [Server thread/INFO]: Preparing spawn area: 11%
[05:27:24] [Server thread/INFO]: Preparing spawn area: 13%
[05:27:25] [Server thread/INFO]: Preparing spawn area: 14%
[05:27:26] [Server thread/INFO]: Preparing spawn area: 16%
[05:27:27] [Server thread/INFO]: Preparing spawn area: 18%
[05:27:28] [Server thread/INFO]: Preparing spawn area: 20%
[05:27:29] [Server thread/INFO]: Preparing spawn area: 22%
[05:27:30] [Server thread/INFO]: Preparing spawn area: 24%
[05:27:31] [Server thread/INFO]: Preparing spawn area: 26%
[05:27:32] [Server thread/INFO]: Preparing spawn area: 27%
[05:27:33] [Server thread/INFO]: Preparing spawn area: 29%
[05:27:34] [Server thread/INFO]: Preparing spawn area: 30%
[05:27:35] [Server thread/INFO]: Preparing spawn area: 32%
[05:27:36] [Server thread/INFO]: Preparing spawn area: 34%
[05:27:37] [Server thread/INFO]: Preparing spawn area: 37%
[05:27:38] [Server thread/INFO]: Preparing spawn area: 39%
[05:27:39] [Server thread/INFO]: Preparing spawn area: 42%
[05:27:40] [Server thread/INFO]: Preparing spawn area: 44%
[05:27:41] [Server thread/INFO]: Preparing spawn area: 47%
[05:27:42] [Server thread/INFO]: Preparing spawn area: 49%
[05:27:43] [Server thread/INFO]: Preparing spawn area: 52%
[05:27:44] [Server thread/INFO]: Preparing spawn area: 55%
[05:27:45] [Server thread/INFO]: Preparing spawn area: 57%
[05:27:46] [Server thread/INFO]: Preparing spawn area: 60%
[05:27:48] [Server thread/INFO]: Preparing spawn area: 62%
[05:27:49] [Server thread/INFO]: Preparing spawn area: 65%
[05:27:50] [Server thread/INFO]: Preparing spawn area: 68%
[05:27:51] [Server thread/INFO]: Preparing spawn area: 71%
[05:27:52] [Server thread/INFO]: Preparing spawn area: 73%
[05:27:53] [Server thread/INFO]: Preparing spawn area: 76%
[05:27:54] [Server thread/INFO]: Preparing spawn area: 78%
[05:27:55] [Server thread/INFO]: Preparing spawn area: 81%
[05:27:56] [Server thread/INFO]: Preparing spawn area: 83%
[05:27:57] [Server thread/INFO]: Preparing spawn area: 85%
[05:27:58] [Server thread/INFO]: Preparing spawn area: 87%
[05:27:59] [Server thread/INFO]: Preparing spawn area: 89%
[05:28:00] [Server thread/INFO]: Preparing spawn area: 91%
[05:28:01] [Server thread/INFO]: Preparing spawn area: 94%
[05:28:02] [Server thread/INFO]: Preparing spawn area: 96%
[05:28:03] [Server thread/INFO]: Preparing spawn area: 98%
[05:28:04] [Server thread/INFO]: Done (51.084s)! For help, type "help" or "?"
[05:28:51] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2839ms behind, skipping 56 tick(s)
?
[05:29:26] [Server thread/INFO]: --- Showing help page 1 of 9 (/help ) ---
[05:29:26] [Server thread/INFO]: /achievement <give|take> <stat_name|
> [player]
[05:29:26] [Server thread/INFO]: /ban [reason ...]
[05:29:26] [Server thread/INFO]: /ban-ip <address|name> [reason ...]
[05:29:26] [Server thread/INFO]: /banlist [ips|players]
[05:29:26] [Server thread/INFO]: /blockdata
[05:29:26] [Server thread/INFO]: /clear [player] [item] [data] [maxCount] [dataTag]
[05:29:26] [Server thread/INFO]: /clone [maskMode] [cloneMode]
stop
[06:00:11] [Server thread/INFO]: Stopping the server
[06:00:11] [Server thread/INFO]: Stopping server
[06:00:11] [Server thread/INFO]: Saving players
[06:00:11] [Server thread/INFO]: Saving worlds
[06:00:11] [Server thread/INFO]: Saving chunks for level 'world'/Overworld
[06:00:11] [Server thread/INFO]: Saving chunks for level 'world'/Nether
[06:00:11] [Server thread/INFO]: Saving chunks for level 'world'/The End
[06:00:11] [Server Shutdown Thread/INFO]: Stopping server
[06:00:11] [Server Shutdown Thread/INFO]: Saving players
[06:00:11] [Server Shutdown Thread/INFO]: Saving worlds
[06:00:11] [Server Shutdown Thread/INFO]: Saving chunks for level 'world'/Overworld
[06:00:11] [Server Shutdown Thread/INFO]: Saving chunks for level 'world'/Nether
[06:00:11] [Server Shutdown Thread/INFO]: Saving chunks for level 'world'/The End
jim@netbook:
/Downloads/MCSLI-master$ java -version
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
jim@netbook:/Downloads/MCSLI-master$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=121 time=10.8 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=121 time=10.0 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=121 time=10.1 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 10.044/10.361/10.868/0.371 ms
jim@netbook:
/Downloads/MCSLI-master$ java -version
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)

Please fix the error and restart.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.