![]() Step by Step : Install a Minecraft Server on Ubuntu. There are a few guides out there on the internet, but since I run a few Minecraft servers myself, I thought I’d catalogue the process here for prosperity. This guide will deal with installing Minecraft on Ubuntu 1. Finally, a little tweaking of the Minecraft parameters to ensure that your server isn’t “griefed” by passers- by. It’s pretty much step by step, so hopefully I won’t be making too many wild assumptions about your ability. On the other hand, if you have any doubts about what’s written here, you probably shouldn’t be putting a Minecraft server publicly on the internet. So, what do we need? Prerequisites. To start with, you’ll need an Ubuntu installation. For my server, I use Ubuntu 1. LTS desktop edition. ![]() ![]() ![]() Sure, there’s a server edition, but I like the convenience of dealing with the desktop. And yeah, you can use the server edition and add a desktop – if that works for you, great. I’ve experienced a few little foibles around that in the past and given that my hardware is halfway- decent, I’ll take the performance hit of running the full desktop. So, bottom line, this guide will assume that your server has a desktop. Set up a Games Directory. The bulk of your files for running the server will live in here. My installation uses ~/Apps/Games/Minecraft. Choose a directory path that works for you. Download Minecraft. Fire onto your server and browse on over to Minecraft. NOT the exe file). What you’re downloading is just a “jar” file – pretty useless at this point. We’ll deal with that file later. There are a few guides out there on the internet, but since I run a few Minecraft servers myself, I thought I’d catalogue the process here for prosperity. This guide will deal with installing Minecraft on Ubuntu 12.04.
A Minecraft tutorial on installing the Minecraft Pixelmon mod for Minecraft 1.7.10. SUBSCRIBE for more gaming tutorials: http:// Watch more Minecraft tutorials: http:// Pixelmon Download. The Ender Scope is made out of two ender eyes and attached to a regular bow, allowing the the wielder to see the predicted trajectory of his arrows, through it. The eyes have quite fascinating properties, into which I need to. For the moment, stick that file into the root of your Games Directory. Note that this is the stock minecraft server, so you won’t be able to use any of the thousands of add- ons available on the internet. If you want to use those, you’ll need to download the Craft. Bukkit edition of the server jar file, which is usually located here . I’m hopefully going to write a later article on Craft. ![]() Bukkit, but for the moment, this guide will work with either version. Install Java. The server will need Java installed. I’ve heard reports that the default Java instance in the Ubuntu repositories will work, but I prefer to use the “official” version. Installation these days is a breeze, via Web. Upd. 8’s PPA. Enter the following commands in a terminal on your server : sudo add- apt- repository ppa: webupd. Done. Start It Up. We need to start the server briefly to get the defaults created for us. Do that now : cd ~/Apps/Games/Minecraft. Xmx. 10. 24. M - Xms. M - jar minecraft. We just needed it to create the files which we’re now going to edit. Edit The Files. There are two files we’re going to edit. The most important is server. Here’s mine, with all the entries I changed in bold. My. Server. enable- query=false. DEFAULT. enable- rcon=false. Short Message Here. The full description of all this stuff is on the Minecraft WIKI here. But in short, the level name is the name of the directories that Minecraft will create to store your world. I’ll cover the port further down this post – it’s super important. The seed is customisable and you can type pretty much whatever you want in there – I got that one from the internet because it has a village nearby. The whitelist entry will restrict who can connect to your server. More on that later too. I reduce the max- players (from 2. I only have a handful of people using my server. View distance default is 1. I like bumping it up a bit (max 1. I can see greater distances. This will affect server performance though, so change with care. Finally, motd is the message that appears under your server name in the browser list. The second file you need to change is the whitelist. Earlier, we changed the white- list option to. Now we need to create that list. Just fill it with the Minecraft user names of anyone you want to allow to play, one per line. What’s next? Well, if this is going on the internet you should. It’s the server- port entry in the server. If you’re only running one Minecraft server then there’s probably no reason to change this and you’re good to go. If you’re going to run more than one, or you want to use a non- standard port (for some reason), you’ll have to bear that in mind in the next section. Harden The Server. Stop! This is easier than it sounds, but you need to understand a little about your network, or you’ll end up cutting yourself off from your server. That’s fine if you’re like me and you have a desktop that you can just undo your change locally, but it’s a little more serious if you have a headless server and you’re using SSH to access your server. So find out what network you’re on. You’re running a Minecraft server, so you should probably know this stuff, right? So, no, I’m not going to get into a detailed explanation of TCP/IP sub- netting. Hopefully, even if this is a mystery to you, the following example is enough for you to make the leap. However, if you’re in any doubt, seriously reconsider putting your server on the internet. The two files we’ll be editing are /etc/hosts. Here’s mine : Hosts. ALL: 1. 92. 1. 68. You might be on a 1. Or something else entirely – so edit those values appropriately! Get this wrong and you’ve cut yourself off from your server, which will now refuse all incoming connections that aren’t from 1. Well, your Minecraft server port will work (because of the 2. ALL line), but that’s about all. You can add multiple networks if you need to, just put them in a new line using the example above. So at this point, I’d advise a good, old fashioned. Same command as before : java - Xmx. M - Xms. 10. 24. M - jar minecraft? Time to put this on the internet then! Port Forwarding. Here’s what many consider the hardest part of all this. They consider it hard perhaps because every single router out there seems to have a different name for what is actually a fairly simple operation. Basically, we’re going to ask our router to “port forward”. So someone on the internet connects to your public IP address on port 2. I won’t lie, I can’t help with this one. There’s too many routers out there. Here’s what it looks like on a Netgear WDR3. I browse to 1. 92. I’m on a 1. 92. 1. So if you’re 1. 92. Port Forwarding / Port Triggering, then create a custom entry. Mine looks like this, because Minecraft runs on port 2. TCP (not UDP) and my server’s address is 1. Done that? Test it again, but this time test it by asking a friend, from their house, to enter your server details into the Minecraft multiplayer option. Well, if your server isn’t registered on a dynamic DNS service (and it’s sad to hear that Dyn. DNS. org have stopped offering free accounts!), you’ll just have to pop on over to a website like whatismyip. IP address instead (and of course update them any time that changes because of your ISP’s policies). So if your public IP was 1. AND you’d chosen a custom port for your Minecraft server, like 2. And that should be that. I’ll try to follow this post up with an additional post on. Until then, happy Mining!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |