The Server Show #13 – The Minecraft Showfile

Direct MP3 Download: The Server Show #13 – The Minecraft Showfile


With the DoorToDoorGeek aka Steve McLaughlin, Jeff (Blackhammer) Owens from TheAgeOfTheGeek, Chad Wollenberg from LinuxBasement and Josh (KnuckleHeadTech) from KnuckeHeadTech Talk about everything server related

Show 13 The Server Show
Dwarf Fortress – http://www.bay12games.com/dwarves/First, get yourself an ubuntu server set up. Most of this would also work on mac, until we get to the scripting at the end. Also directory structure will be slightly different.So, we are going to need java and screen to get this server up and running. Let’s download them.

Windows Putty – http://www.chiark.greenend.org.uk/~sgtatham/putty/

sudo apt-get install default-jdk screen

So, default-jdk will give you the java runtime environment needed to run the server. Screen, well let’s just say screen is the easiest way to run a service in the background.

Let’s go into screen

screen

Now, you are not only running your original shell, but also one in screen. To detach from this screen shell, and get back to the original, do CTRL-a, d. CTRL-a is the shortcut start for screen. d stands for detach.

Ok, but we want to get back to that screen shell to do our install. Do:

screen -r

The -r will re-attach you to your screen session. You can have many screen sessions running at once, but for our purposes here we will not get into that.

Make sure you are in home. To do that, you can do

pwd

Which should output

/home/<yourname>

or, you can just do cd ~/

The tilda ~ is the representation of home.  This will “cd” or “change directory” into your home.

Great. Now we have java, and a “service” environment with screen, and we are home.  Let’s go ahead and download a craftbukkit server at https://dl.bukkit.org/downloads/craftbukkit/

On the right hand side you will see the different commits for the game. You have to see which client you are running and make sure that the server will work with it. If you are running the latest client, chances are you will need to run the development build. Don’t worry. My kids and I have been running the development build for years and have had few problems.

So, right click on the build you need and do “copy as link” then head over to your shell, and type:

wget <paste the link here>

This will download the latest build of the bukkit server into your current directory.

That’s great! Now we need a place to put all this stuff. Let’s make a directory called craftbukkit:

mkdir craftbukkit

Now move your jar file into it:
mv *.jar craftbukkit/

now go to that directory:

cd craftbukkit/

Let’s see if the file is in here:

ls

You should see your craftbukkit.jar file. Now it wont be called craftbukkit.jar. It will have the craftbukkit name of the version you downloaded. However we do need it to be craftbukkit.jar so do the following command:

mv craftbukkit-yourversionhere.

jar craftbukkit.jarPlease note that you have to substitute the name of your version of the file for the above command.Fantastic. You can now run a minecraft server. No really you can. you can just do:

java -Xmx1024M -jar craftbukkit.jar -o true

This will kick off your crafbukkit.jar java that we renamed above, and begin serving to your clients on your local network. You and your kids can go to the client, put in your ip, and play on the same server.

However if you are having problems with this running, and really I suggest this way anyway, make a shell script to run this for you. Enter your favorite editor and do the following script as craftbukkit.sh

#!/bin/sh
BINDIR=$(dirname “$(readlink -fn “$0″)”)
cd “$BINDIR”
java -Xmx1024M -jar craftbukkit.jar -o true

Now, when you enter screen, and then do a ./craftbukkit.sh the script will run in the screen shell, you can detach, leave it running, and you have yourself a minecraft server.

Once you run craftbukkit.sh or craftbukkit.jar for the first time, you are going to see a bunch of files fill the directory. The most important file, out of all of these is server.properties. Here is what one of my server.properties looks like:

generator-settings=
op-permission-level=4
allow-nether=true
level-name=WollyWorld
enable-query=false
allow-flight=false
announce-player-achievements=true
server-port=25565
level-type=DEFAULT
enable-rcon=false
force-gamemode=false
level-seed=
server-ip=
max-build-height=256
spawn-npcs=true
white-list=true
spawn-animals=true
hardcore=false
snooper-enabled=true
texture-pack=
online-mode=true
resource-pack=
pvp=false
difficulty=2
enable-command-block=false
server-name=Unknown Server
player-idle-timeout=0
gamemode=0
max-players=20
spawn-monsters=true
generate-structures=true
view-distance=15
spawn-protection=16
motd=Welcome to WollyWorld

The big thing here is the “level-name” this is going to creat a different seed for your minecraft world every time you change it. And with that, a new world to explore. (note that your old worlds will be saved within this directory as well.

I prefer to white-list my servers so that my kids are safe. white-list simply means you have to add someone’s minecraft name to the whitelist file before they can play on your server. You can do this within the game.

Check out the “server-port” because this is what you would need to port forward on your router if you want others to play on your server outside of your network.

Once you make changes to the server.properties file, re-run your craftbukkit.sh script, and the changes will be committed. When the server runs, you can stop/start/reload directly from the console. It is highly advisable to stop and then start when you make changes like this.

Dynamic IP Address – http://www.noip.com/

Learning computer programming in Minecraft http://www.computercraft.info/

************************************

Watch The Server Show

 

Email: mail@podnutz.com

 

To support Podnutz please use the following links, and remember you don’t pay any extra for using the links !

 

Podnutz Amazon link (http://www.podnutz.com/amazon)

Podnutz Newegg link (http://www.podnutz.com/newegg)

Podnutz Ebay (http://www.podnutz.com/ebay)

Podnutz Deals (http://www.podnutz.com/deals)

Podnutz Clothing (http://www.podnutz.com/clothing)