My daughters play this game from time to time, and as a geek I wanted to see what was involved and what could be done when you host your own Minecraft Server. I took a semi-lazy approach and used the Droplet Marketplace to install a pre-configured Minecraft Server on Ubuntu 18.04
After that I had to figure out how to configure Minecraft (this was all brand new to me…). There is an options files that seems to have a lot of general game options that can be seen from:
If you want to configure Minecraft, you need to use the Minecraft Commands:
I used the whitelist command to only allow certain players to join….I’m still figuring out the rest of the commands. To get to the Minecraft command prompt you need to attach to the ‘screen’ process that is running. This is running under a user called minecraft, so you need to su in as that user. The following is how I attach to the screen session from an ssh session to the droplet:
- su minecraft
- screen -list
- Use this to see what screen sessions are running
- screen -R
- Reattaches to the running screen
- From here, run whatever command you want…for example I had to turn whitelist on and add players so I done the following:
- /whitelist on
- /whitelist add <username>
- Once complete, do the following to exit back to your normal ssh session:
- ctrl+a d
- Detaches from the screen session back to the minecraft user prompt
- Returns to the normal user account on your droplet
- ctrl+a d
I noticed that the firewall was not turned on, so I enabled the ufw firewall and gave access to the Minecraft port for additional security.
How big of a droplet do you need?
I selected the small one to try it out, but it will depend on how many people/games/worlds etc. you are planning on hosting for.
Hi! I just wanted to ask if you ever have any problems with hackers?
My last blog (wordpress) was hacked and I ended up
losing several weeks of hard work due to no backup.
Do you have any methods to prevent hackers?
I follow standard practices to be honest… keep WP up to date, keep backups, don’t install plugins that are not necessary etc. I think the key is to keep you’re backups safe to be honest. Hackers are far smarter than me, so there is only a finite amount of time that makes sense to spend on trying to defend against them.
Thanks a bunch for sharing this with all folks you actually recognise what you’re speaking about!
Bookmarked. Please additionally discuss with my site =).
We may have a hyperlink exchange contract among us
Have you ever considered about adding a little bit more than just your articles?
I mean, what you say is valuable and all. However
think about if you added some great images or video clips to give your posts more, “pop”!
Your content is excellent but with pics and videos, this site could definitely
be one of the greatest in its field. Terrific blog!
Fair comment… I kind of keep this blog as a notes section for myself, and if people find it useful then that’s a bonus. I have toyed with the idea of doing more with videos/YouTube etc. but working full time and trying to find the work-life balance is difficult. I prefer spending it with my family 🙂