In particular, if you don't have SSH installed yet, you'll need the open-ssh
package installed so you can log on to your server in a secure way. On
Ubuntu, you'd run a command like this:
$ sudo apt-get install openssh-server
sudo runs the command as root; apt-get is the package-manager command
under Ubuntu, and you're giving it the option to install the package named
On CentOS, you'd run a very similar command, but using yum instead of apt-get .
$ sudo yum install openssh-server
Similarly, you'll probably need a text editor on the server. You can't really
run a full visual editor on the remote server over the Internet, 4 so you'll
probably want a simple screen editor like nano :
$ sudo apt-get install nano
No matter what optional packages you may need or want, at a minimum you'll
need Java to run your server. You can install it just like we did earlier in the
topic, but bear in mind one important detail: you need the official Oracle
(formerly Sun) version of Java. The OpenJDK version of Java, which may be
available or already installed on your system, is known to cause problems
You may need to uninstall OpenJDK using your system's package manager.
For instance, to remove the 1.6 version on a system that uses the Red Hat
Package Manager (RPM), you'd run this:
$ rpm -e java-1.6.0-openjdk
Now go get the good Java. You'll have to download the installation program
on your local computer, then scp it up to your server.
On your local machine, point your browser to http://www.java.com/en/download/
manual.jsp and scroll down to the Linux section. Download the regular or 64-bit
version (depending on your server) and follow the instructions for your flavor
You'll need to set up your start_minescraft script and jars on the server just as
we did locally back in Chapter 2, Add an Editor and Java , on page 15 .
Actually you can, using the X Window System (XWindows), but it's fussy to set up and
not a very satisfying experience.