I’d like to make a small little tutorial. I have used and still do use linux. Ubuntu 10.10 in particular. Regardless, I touch the shell, but not as often as one who uses linux would think. So, I’m not always sure about what does what and how files on the system act.
Anyways, I wanted to put up a Minecraft server for a buddy of mine and myself. (Not for you). I put the files in, ran the command that Notch said to run to get the server to run in no GUI mode. Unfortunately, I ran into some error with “Ljava” in it. Anyways, so I went on a little journey.
First off, does the host have java? The answer is actually yes. It’s just a really old version. It can be found in /usr/bin/java . If you dare think that you can override it, you’re sadly mistaken. As this is a shared host, you aren’t allowed to do that. On the other hand, you have a bin folder that you could unpack java into.
Step 1
Download the “Linux (Self-Extracting Package)” from Oracle’s Java Website
Step 2
Open up your favorite FTP program, log in via SFTP and go into the immediate bin folder. ( “…/yourSiteNameDotCom/bin” )
Step 3
Upload the jre-6u<number>-linux-i586.bin file to that folder
Step 4
Open up PuTTY or your favorite SSH program. Log into your site. Type
~/binThen
chmod a+x jre-6u<version>-linux-i586.bin
Of course, <version> being your downloaded version.
Step 5
Type and enter
./jre-6u<version>-linux-i586.bin
Step 6
Now to run a newer java program, such as a Minecraft Server (This host is not recommend for this kind of thing.) You’ll use this location for Java instead of the other one.
~/bin/jre1.6.0_<version>/bin/java
Hope this helps someone in the future. Now back to work that matters. I mean my school work, not Learning Monkey. What did I say on my other message, huh? I said I be busy. I know this seems like I was screwing around…well, you’re right. I was taking a break.







How did you connect to the game? I followed your instructions but couldn’t figure out how to connect to my Bluehost. I tried using a subdomain instead of IP but it didn’t work.
How did you connect to the game? I followed your instructions but couldn’t figure out how to connect to my Bluehost. I tried using a subdomain instead of IP but it didn’t work. Any help would be appreciated.
Two main things: You MUST have a static IP. Second, you have to ask Bluehost to open up a port for you to use. After that you should have no issues other than the process getting killed by the server somewhere around the two hour mark after you started it. The solution to that is to have a shell script in the background checking if the process if alive or dead and to start it up again if it isn’t running. Hope that helps.
Thanks! Sounds like a lot of work. You’re right about the 2 hour mark… I did notice it stopped. I’ll stick with running the server at home.
Okay I got it running. Problem is I’m not much of a scripter, could you recommend somewhere where I could learn to make a shell script that would check to see if the process is alive or dead?
http://stackoverflow.com/questions/9992809/start-process-if-dead or here http://www.linuxquestions.org/questions/other-*nix-55/bash-script-to-check-for-dead-process-500918/
I can’t say much because I haven’t touched linux shell in a while. Just remember that grep is your friend.
Err. The bin folder doesn’t exist. what can I do now?
Make one