unraidnh
-
Posts
14 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by unraidnh
-
-
16 minutes ago, voidthe said:
so I want to run a spigot server how do i change what JAR file gets used.
thanks
Well renaming is an option. Or symlinking which is the better Option.
(Replace the minecraft.jar or minecraft-server.jar or Just use minenodeos, for easier Handling, because this docker Container will replace the minecraft.jar each time U Update it)
-
2 minutes ago, luca2 said:
Thx for the info. I finally did setup a whitelist. Have been testing it and it works fine.
Also, I was testing assigning different op. Just to be able to execute commands ingame. Also tested if a new player can access any commands without being op.
Finally, I thought about using let's encrypt to allow friends to access my minecraft server. Haven't got time yet to study it. Anyone has tried this?
Enviado desde mi HMA-L29 mediante Tapatalk
That's not possible afaik and not necessary since Minecraft uses enryption since version 1.7. at least login-datas are enrypted I'm not sure about gamedata. But u should have your Server in online-mode to prevent griefing
-
8 minutes ago, binhex said:
thats a good question, and tbh i really havent thought about security in regards to minecraft servers. from my quick google around it looks like minecraft itself doesnt really have any built in security, so all you have available to you is obfuscation via non standard port and possibly disable external access and create a vpn tunnel instead if a remote friend wants to connect.
i guess the question is what is the risk here, and the risk imho is low, even if somebody joined your server they wont have op status so they wont be able to do much, and afaik there is no way to break out of the minecraft game and execute commands on the container, and even if they did that the container has limited access to your hosts filesystem (/config only).
another obvious thing you could do is shutdown the container when its not required, it should only take 30 secs for a container to be up and operational so the wait is not long.
Well the best way is to enable the Whitelist. Then it doesn't matter if someone from outside trys to Connect. Generell security reasons aside.
-
34 minutes ago, luca2 said:
Hi, I tried a new install of the docker and installed last minecraft original server version 1.15.2. Then I installed a new version of TLauncher (2.69=last available). Only changed in the server.properties: motf=name_of_the_server and online-mode=false (since I am only playing in LAN). Now it works fine. Thx for support. I will try in the future to acces the server from the internet, but already spent too much time this weekend.
Just one more question, if minecraft publishes a new version, does the docker update it automatically? In this case, how can I backup what I have done so far, or it is not needed since it can work with the newer version.
Now, another scenario, if my son wants to play with mods, I guess he needs forge to upload them. So, I would follow KryptykHermit´s post on November 20- 2019 and it should work. In this case, what is the best way to do a backup (what files/folders)?
1. yes, the container pulls afaik the new update from the AUR automatically. You only need to update the container and minecraft will update itself
2. there are two ways to update.
First use the built-in function with a cronjob in the userScripts plugin
docker exec -u nobody -t minecraft /usr/bin/minecraftd backup
this would automatically backup your minecraft server, but u need to use the restore function to restore it because it changes some pathes.(Edit: after looking into the script it seems like it does not change any pathes so you could also copy it instead of using the restore function)
Second possbility is to stop the container and copy the whole minecraft directory and copy it back if needed
-
40 minutes ago, luca2 said:
Hi, I am not an expert at all in MC. My little son is the one playing. He created an account in forge, so I think this is the problem. He did not install the official MC.
Thx for helping me out.
Well then I assume he didn't buy the Game? I'm Not sure how cracking works nowadays. You can try to switch the online-mode to false in Server.properties and try to connect, If you haven't done it already.
-
5 minutes ago, luca2 said:
Hi, first things first, thx for this docker binhex. I am already using other dockers from you for a long time and they run perfect.
I am trying to set it up, but I am having some issues. I get this log after the docker is started:
[20:27:26] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [20:27:26] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [20:27:26] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [20:27:26] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [20:27:26] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [20:27:26] [Server thread/INFO]: Starting minecraft server version 1.15.2 [20:27:26] [Server thread/INFO]: Loading properties [20:27:26] [Server thread/INFO]: Default game type: SURVIVAL [20:27:26] [Server thread/INFO]: Generating keypair [20:27:26] [Server thread/INFO]: Starting Minecraft server on *:25565 [20:27:26] [Server thread/INFO]: Using epoll channel type [20:27:27] [Server thread/INFO]: Preparing level "world" [20:27:27] [Server thread/INFO]: Reloading ResourceManager: Default [20:27:31] [Server thread/INFO]: Loaded 6 recipes [20:27:32] [Server thread/INFO]: Loaded 825 advancements [20:28:14] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld [20:28:16] [Server thread/INFO]: Preparing spawn area: 0% [20:28:16] [Server thread/INFO]: Preparing spawn area: 0% [20:28:16] [Server thread/INFO]: Preparing spawn area: 0% [20:28:16] [Server thread/INFO]: Preparing spawn area: 0% [20:28:16] [Server thread/INFO]: Preparing spawn area: 0% [20:28:16] [Server thread/INFO]: Preparing spawn area: 0% [20:28:17] [Server thread/INFO]: Preparing spawn area: 16% [20:28:21] [Server-Worker-1/INFO]: Preparing spawn area: 82% [20:28:21] [Server thread/INFO]: Preparing spawn area: 82% [20:28:21] [Server thread/INFO]: Preparing spawn area: 82% [20:28:21] [Server thread/INFO]: Preparing spawn area: 82% [20:28:21] [Server-Worker-1/INFO]: Preparing spawn area: 82% [20:28:21] [Server thread/INFO]: Preparing spawn area: 82% [20:28:21] [Server thread/INFO]: Preparing spawn area: 82% [20:28:21] [Server thread/INFO]: Preparing spawn area: 82% [20:28:21] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:22] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:22] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:23] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:23] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:24] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:24] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:25] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:25] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:26] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:26] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:27] [Server-Worker-1/INFO]: Preparing spawn area: 83% [20:28:27] [Server-Worker-1/INFO]: Preparing spawn area: 85%
I guess the docker is not starting the minecraft server since it never reaches 100%. Or am I wrong?
When I try to acces the server from my lan (from a vm) the vm sees the server, but I get his error:
I have no clue what to do. Hope someone can help me.
Here is the docker config:
___. .__ .__ \_ |__ |__| ____ | |__ ____ ___ ___ | __ \| |/ \| | \_/ __ \\ \/ / | \_\ \ | | \ Y \ ___/ > < |___ /__|___| /___| /\___ >__/\_ \ \/ \/ \/ \/ \/ https://hub.docker.com/u/binhex/ 2020-04-25 21:01:23.502977 [info] System information Linux 1f663352f8cd 4.19.107-Unraid #1 SMP Thu Mar 5 13:55:57 PST 2020 x86_64 GNU/Linux 2020-04-25 21:01:23.536620 [info] PUID defined as '99' 2020-04-25 21:01:23.574185 [info] PGID defined as '100' 2020-04-25 21:01:23.618880 [info] UMASK defined as '000' 2020-04-25 21:01:23.651554 [info] Permissions already set for volume mappings 2020-04-25 21:01:23.684823 [info] MAX_BACKUPS defined as '10' 2020-04-25 21:01:23.717945 [info] JAVA_INITIAL_HEAP_SIZE defined as '2048M' 2020-04-25 21:01:23.750990 [info] JAVA_MAX_HEAP_SIZE defined as '8192M' 2020-04-25 21:01:23.784173 [info] JAVA_MAX_THREADS defined as '2' 2020-04-25 21:01:23.827189 [info] Deleting files in /tmp (non recursive)... 2020-04-25 21:01:23.858233 [info] Starting Supervisor... 2020-04-25 21:01:24,053 INFO Included extra file "/etc/supervisor/conf.d/minecraft-server.conf" during parsing 2020-04-25 21:01:24,053 INFO Set uid to user 0 succeeded 2020-04-25 21:01:24,055 INFO supervisord started with pid 11 2020-04-25 21:01:25,062 INFO spawned: 'minecraft-server' with pid 74 2020-04-25 21:01:25,063 INFO reaped unknown pid 12 2020-04-25 21:01:25,073 DEBG 'minecraft-server' stdout output: [info] Minecraft folder '/config/minecraft' already exists, rsyncing newer files... 2020-04-25 21:01:25,079 DEBG 'minecraft-server' stdout output: [info] Starting Minecraft Java process... 2020-04-25 21:01:25,089 DEBG 'minecraft-server' stdout output: Starting server... 2020-04-25 21:01:25,092 DEBG 'minecraft-server' stdout output: There are screens on: 90.minecraft (Dead ???) 83.minecraft (Dead ???) Remove dead screens with 'screen -wipe'. No screen session found. 2020-04-25 21:01:25,093 DEBG 'minecraft-server' stdout output: [info] Minecraft Java process is running
Could it be that you are playing with a cracked Account and forgot to Switch the online Mode to Off?
-
2 hours ago, BananaboxTechNL said:
I got a quick question. We have a Minecraft server running for some time but i got the question from a couple of players to add Forge to the server. I can't find out how to add or install it, does someone know? They want to have a couple of mods installed. I got a mods folder under: Docker\Minecraft\minecraft\mods and running on 1.15.2 Minecraft.
On 11/20/2019 at 2:49 AM, KryptykHermit said:I started understanding how to put this all together and wanted to throw some info out there for those that need it.
First of all, I would recommend that if you are going to use the Vanilla version of MC (what binhex has provided)
- make sure the docker not running
- browse out to your appdata\binhex-minecraftserver\minecraft folder
- edit the server.properties file with notepad++ (I'm using Windows for all of this)
-
Change the following settings if you like:
- difficulty=[easy|hard]
- gamemode=[creative|adventure|survival]
- force-gamemode=[true|false]
- level-name=world <=== This is the folder name all your game data is saved into
- motd=Logon Message <=== Message displayed when you log into the server from a MC client
Now, if you are like me, you want to use Forge or Bukkit. In this case
- create a folder on your C:\ drive called "Minecraft"
- download the minecraft server file from HERE, and place it into C:\Minecraft (believe it's called 'minecraft_server.1.14.4.jar')
- double-click the file, and wait for a minute as it downloads some MC server files.
-
When it stops, edit the EULA.txt file, and change the line inside from false to true
- eula=true
- Double-click on the minecraft_server.1.14.4.jar file again and wait for it to finish
- type in "/stop". This will kill the minecraft server.
- Download forge for the version of MC server you just downloaded (You want the INSTALLER button in the recommended box on the site)
- Place this file (forge-1.14.4-28.1.0.jar) in C:\Minecraft
- Double click on this file.
- Select SERVER and change the path to C:\Minecraft
- Let it perform its magic
- Once finished, again, shut it down with "/stop"
- Now copy the contents of C:\Minecraft to appdata\binhex-minecraftserver\minecraft
- Delete the file appdata\binhex-minecraftserver\perms.txt (this will restore the default permissions to the files you copied over)
- In Unraid, edit the docker and create a new variable
- Click SAVE and then APPLY/DONE
- Fire up the docker
This will use the forge jar file within the docker container, instead of the vanilla jar file. From this point, if you want to add resource packs or mods, you can download them and install into the "mods" or "resourcepacks" folder as necessary. These folders may need to be created.
A good mod to verify that your server is working is FastLeafDecay-Mod-1.14.4.jar. You can find it HERE. Chop a tree down and it should dissolve a lot quicker than normal. I would also recommend adding one or two mods at a time and testing.
Let me know if you'd like more details on the above.
Your Question has already been answered I think
-
8 hours ago, Blairwin said:
I tried starting it after reading the github repo, totally forgot about that. Here is what happens when I try to run it:
sh-5.0# docker run -d -p 25565:25565 --name=minecraftserver -v /apps/docker/minecraftserver:/config -v /etc/localtime:/etc/localtime:ro -e MAX_BACKUPS=10 -e JAVA_INITIAL_HEAP_SIZE=512M -e JAVA_MAX_HEAP_SIZE=11264M -e JAVA_MAX_THREADS=4 -e UMASK=000 -e PUID=0 -e PGID=0 binhex/arch/minecraftserver sh: docker: command not found
Any thoughts?
Are you trying to start this command from within the docker container this looks like a docker shell?
Are you even using Unraid?
You have to exec the commands from a ssh connection or directly on the Unraid system.
The command you are using is for starting the docker container not for executing commands in it.
Edit: oh i see u are trying to use the command on Ubuntu. Just don't use it in the container but on the host system. -
18 hours ago, Blairwin said:
I installed the docker and transferred my old server from my ubuntu machine onto the docker. I opened the docker console and started up the server and closed out of the console window. I had a way on my ubuntu machine to get back in to the command line, but I don't know how to do it on the docker console. How can I get back into the command line for the minecraft server?
did you try to start it as mentioned in the github repo?
docker exec -u nobody -t binhex-minecraftserver /usr/bin/minecraftd console
For me that works, but only one time. I'm somehow not able to detach from the screen session and have to close the window which leaves me with no way to attach again. I have to restart the container to regain that ability.
So i switched to not using the console command, instead I'm using the command command which works way better for me.docker exec -u nobody -t binhex-minecraftserver /usr/bin/minecraftd command <some minecraft command here without leading slash>
For all commands u can visit the Arch Wiki.
- 1
-
Does someone got autossh to work?
My Problem is that it works in a normal ssh session but if i try to start it through the user scripts plugin it wont work.
Do I have to set some special env variable? I tried to copy some of the env variables from another session.
This is my script ATM the first run always stucks at the end and wont terminate and if i run it a second time it runs and terminates but the autossh processes aren't started#!/bin/bash SHELL=/bin/bash LESS=-RM G_BROKEN_FILENAMES=1 HOSTNAME=Tower PWD=/root LOGNAME=root MANPATH=/usr/local/man:/usr/man HOME=/root LANG=en_US.UTF-8 TERM=linux G_FILENAME_ENCODING=@locale LESSOPEN=|lesspipe.sh %s USER=root NCURSES_NO_UTF8_ACS=1 SHLVL=1 INPUTRC=/etc/inputrc NODE_PATH=/usr/lib64/node_modules LC_COLLATE=C HUSHLOGIN=FALSE PATH=.:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin HZ=100 env if [ -f /usr/bin/autossh ] then echo "already installed. Trying to start sessions now" else echo "not installed. Installing..." wget https://packages.slackonly.com/pub/packages/14.2-x86_64/network/autossh/autossh-1.4g-x86_64-1_slonly.txz installpkg autossh-1.4g-x86_64-1_slonly.txz echo "starting Sessions..." fi sleep 5 autossh -M 21010 -R :14002:0.0.0.0:14002 -N -f -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -i /mnt/user/Private/sshKeysForAutossh/id_ed25519 [email protected] autossh -M 21030 -R :14003:0.0.0.0:14002 -N -f -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -i /mnt/user/Private/sshKeysForAutossh/id_ed25519 [email protected] autossh -M 21020 -R :32400:0.0.0.0:32400 -N -f -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -i /mnt/user/Private/sshKeysForAutossh/id_ed25519 [email protected] echo "all started" exit 0
okay I did solve it by myself a simple sudo -u root was necessary in front of each autossh command
-
How do I start a backup? I see the option for defining the MAX_BACKUPS option, but I'm not seeing any Backup beeing made.
But nice work so far. Works like a charm, thank you very much.
[Support] binhex - MinecraftServer
in Docker Containers
Posted
Did you set up port forwarding? Just to make sure. Did you fill out server IP in your server properties?