Hosting Minecraft on Hyper-V in Windows 8.1 Pro

Just got a new computer which I hoped would be powerful enough to run both a Minecraft Server and the Minecraft game. And, turns out it is!

Managing servers and stuff tend to be easier in unix though, so I figured I’d try to run it in a virtual machine. First thought of VirtualBox, but then I stumbled upon the fact that Windows 8.1 Pro comes with a Hyper-V Platform built-in. Decided to check it out, and it works fantastic.

At least after I swapped out the virtual hard drive with the SSD from my old computer. Not sure if I set it up wrong, or if Minecraft just really don’t like being inside a virtual hard drive on a regular HDD…

Anyways, here’s what I’ve done for future reference in case I need to set it up again, or if anyone else would like to check it out. Depending on your comfort with command lines, unix, etc, you might need to use some google-fu. Or leave a comment, and I’ll try to help :)

Here’s what I use and try to cover here:

Continue reading

Notes on Minecraft hosting

Just notes to self that I keep having to find in various documents and random Minecraft forums of varying quality of which there are a lot…

Screen stuff

I have an unused laptop which I installed Ubuntu Server on, and this is what I use to run the Minecraft server so it’s easy to manage and won’t die when I disconnect.

# Run detached in screen using dir name as screen name
screen -dmS ${PWD##*/} java -Xmx3G -XX:MaxPermSize=256M -jar server.jar nogui

# List screens
screen -ls

# Reattach to specific
screen -r name

# Reattatch to whatever (handy if just one running)
screen -raAd

# Detach (important, since Ctrl+c would shut down the server)
Ctrl+a, Ctrl+d

Minecraft server stuff

A bit cheaty, especially the last one, but sometimes you just want to play without worrying about losing what you spent way too many hours working on. I prefer a gravestone mod over the last one though, cause then dying is still an annoyance, but at least you have a chance of getting back that crazy expensive armor and the fifteen stacks of diamonds you just spent forever digging up.

# Prevent creepers and such from destroying stuff
gamerule mobGriefing false

# Don't lose stuff when dying
gamerule keepInventory true

YouTube: Play all uploads of a user

Note to self: To play all uploads of a user, start playing one of them, then add &list=UL to the URL. For example:

The playlist might look a bit weird at first, but that’s because

  • It plays from oldest to newest
  • The current playing video “tries” to be in the middle of the list
  • The list only displays x videos before and y videos after the current one, so if the user has a thousand videos, you’ll only see a handful of them in the playlist, but it does play through them all.

Of course YouTube should just have a “play all videos of this user” button, but can’t find one at the moment…

With a hint of Social Ineptitude