Minecraft Linux on ReadyNas Pro Pioneer

Please post questions that doesn't fall into the above categories here.

Minecraft Linux on ReadyNas Pro Pioneer

Postby gsuttor » Thu Jun 09, 2011 12:57 am

Is it possible to run the Linux version of Minecraft server on the ReadyNas Pro Pioneer?

Has anyone attempted it? If so please share. I'd love to run the box as a small home server for this. (2-3 people)

Any info appreciated. (complete non-techie here obviously)
-------------------------------------------------------------------------------------------------
From the Minecraft download page:http://www.minecraft.net/download.jsp

Linux / Other:
Download Minecraft.jar, an executable jar file. It might work as-is.
If you run into out of memory errors, try launching it with java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame
Also, please make sure you're running the Sun JVM...
<snip>
First, make sure you can use java from the command line. On linux and mac, this should automatically work, but on windows you might want to set up a PATH system variable.
Then download minecraft_server.jar to anywhere, then launch it as:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
-----------------------------------------------------------------------------------------------------
User avatar
gsuttor
ReadyNAS Newbie
 
Posts: 22
Joined: Thu Feb 11, 2010 2:23 pm
Location: Brisbane
ReadyNAS: Pro

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby mdgm » Thu Jun 09, 2011 1:11 am

I don't know if it'll work, but you could give it a try.

First note that tech support does not support this, so you should proceed with caution.

I would suggest you:
1. Backup all the data on your NAS
2. Upgrade to the latest RAIDiator firmware (http://www.readynas.com/RAIDiator_x86_4_2_17_Notes) if you haven't already
3. If you haven't already install the EnableRootSSH add-on for x86: http://www.readynas.com/?p=4203. Installation is via Add-Ons > Add New
4. Install the Java community add-on: http://www.readynas.com/forum/viewtopic.php?f=48&t=45751
5. Login to SSH, user is 'root' and password will initially be set to your admin password. Use the Terminal on a Linux or Mac Machine or PuTTy on a Windows machine.
6. Download and attempt to install your minecraft server.
7. If you can get this working you'll want to setup a way to automate running this on startup, but best to see if it'll work first.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28919
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN516

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby gsuttor » Fri Jun 10, 2011 3:54 am

THANK YOU!

This works awesomely for a LAN server! :D
User avatar
gsuttor
ReadyNAS Newbie
 
Posts: 22
Joined: Thu Feb 11, 2010 2:23 pm
Location: Brisbane
ReadyNAS: Pro

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby gsuttor » Fri Jun 24, 2011 1:35 am

Hey mdgm, thanks for your previous help on this.

Any idea how I can set this to run and stop on my ReadyNas without having to use putty through my PC?

If putty closes it closes the app as well.

Any help appreciated.
User avatar
gsuttor
ReadyNAS Newbie
 
Posts: 22
Joined: Thu Feb 11, 2010 2:23 pm
Location: Brisbane
ReadyNAS: Pro

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby mdgm » Fri Jun 24, 2011 3:42 am

Ideally write an add-on using http://www.readynas.com/?p=346

In start.sh script check to see if service already running and if not start it.
In stop.sh script check to see if service already running and if so stop it.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28919
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN516

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby sphardy » Fri Jun 24, 2011 4:58 am

Or a simple debian init script: http://www.debian-administration.org/articles/28

NAS: Ultra-4, NV+ & Duo v2 :: ST31500341AS & HDS723020BLA642 Drives
Network: Netgear GS108Tv2 / DM111P :: Airport Extreme / Express & Time Capsule
Clients: OS X 10.6 - 10.8 :: Ubuntu 11.x :: Win 7 + SP#1
UPS: APC ES-550

Image
User avatar
sphardy
ReadyNAS Junkie
 
Posts: 4626
Joined: Thu Feb 28, 2008 3:34 am
Location: France
ReadyNAS: Ultra

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby gsuttor » Fri Jun 24, 2011 6:53 pm

Umm.... this isn't going to work for me.
Not a coder, not a scripter and don't even know Linux beyond CD, LS and running a line I copied to get the server going.

I tried creating a txt file, think it worked as there is now a file there, , but no idea how to run it or attach it to the startup of the Nas.

VI minecraft (in that init.d folder it created a file called "minecraft")
Edited in my 3 lines:

CD /Backup
CD minecraft
java -Xmx1024M -Xms1024M - jar minecraft_server.jar nogui

and ZZ to save (I think)

But how do I run it?
User avatar
gsuttor
ReadyNAS Newbie
 
Posts: 22
Joined: Thu Feb 11, 2010 2:23 pm
Location: Brisbane
ReadyNAS: Pro

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby gsuttor » Fri Jun 24, 2011 8:04 pm

OK so renamed it to minecraft.sh and it seems to run well if I ad a another "cd" command to the top line to make it go to the root.

Then if I type:

bash minecraft.sh

It runs.. yay!

...then as that scripting webpage indicates did this...

update-rc.d minecraft.sh defaults

which did 'stuff' that is suppose to make it run on started right?

I'm a high risk user aye... ;-)

So shut down.. hmmm... eventually, and reboot... checking FS... fair enough.
Well see what happens when she's done. ZZZZZZZZZZZzzzzzzzzzzzzzzzz
User avatar
gsuttor
ReadyNAS Newbie
 
Posts: 22
Joined: Thu Feb 11, 2010 2:23 pm
Location: Brisbane
ReadyNAS: Pro

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby gsuttor » Fri Jun 24, 2011 10:13 pm

Works a treat... sometimes I even amaze myself ;)

UPDATE:
Now I'm noticing a side effect.
The unit will not shutdown with the three button press method (left it for half hour or so), It just holds onthat "SHUTTING DOWN" text o the LCD.
So I go into Frontview and choose shutdown & turn off, which it does.

On boot up it does a "Checking C:" phase every time I boot up. (which takes about an hour).

Second time it's happened now, would the running minecraft server somehow hold up shutdown of the ReadyNas (ie: can't close the server on shutdown) and cause the filesystem check on reboot?

Better take a good look at the email report. (edit: Pasted in next post)
Any advice appreciated.
Last edited by gsuttor on Sat Jun 25, 2011 11:04 pm, edited 2 times in total.
User avatar
gsuttor
ReadyNAS Newbie
 
Posts: 22
Joined: Thu Feb 11, 2010 2:23 pm
Location: Brisbane
ReadyNAS: Pro

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby gsuttor » Sat Jun 25, 2011 5:12 pm

I definitely ham-fisted something here... the email report as follows:

***** File system check performed at Sun Jun 26 08:57:15 EST 2011 ***** fsck 1.41.14 (22-Dec-2010) e2fsck 1.41.14 (22-Dec-2010) /dev/c/c was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes Extended attribute block 574029952 has reference count 4, should be 2. Fix? yes

Pass 2: Checking directory structure
Entry 'level.dat' in /backup/minecraft/world (62435332) has deleted/unused inode 62435350. Clear? yes

Entry 'level.dat_old' in /backup/minecraft/world (62435332) has deleted/unused inode 62435353. Clear? yes

Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information Block bitmap differences: -(499648372--499648373) Fix? yes

Free blocks count wrong for group #15248 (27666, counted=27668).
Fix? yes

Free blocks count wrong (596547550, counted=596547552).
Fix? yes

Inode bitmap differences: -62435351 -62435353 Fix? yes

Free inodes count wrong for group #15243 (4072, counted=4074).
Fix? yes

Free inodes count wrong (151647387, counted=151647389).
Fix? yes


/dev/c/c: ***** FILE SYSTEM WAS MODIFIED *****
/dev/c/c: 68451/151715840 files (45.0% non-contiguous), 617179168/1213726720 blocks
User avatar
gsuttor
ReadyNAS Newbie
 
Posts: 22
Joined: Thu Feb 11, 2010 2:23 pm
Location: Brisbane
ReadyNAS: Pro

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby mdgm » Sat Jun 25, 2011 8:06 pm

I would definitely prefer using start.sh and stop.sh add-on scripts over the method you used. Using add-on start and stop scripts it'll be started and shutdown at the right time. The NAS uses custom boot and shutdown scripts optimised for use with the ReadyNAS.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28919
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN516

Minecraft Linux on ReadyNas Pro Pioneer

Postby sphardy » Sat Jun 25, 2011 11:40 pm

The problem is not the method used - both provide automatic start and stop facilities and netgear themselves use BOTH methods - but it appears the script actually written only starts the application and does not stop it cleanly

So the file corruption is probably due to the unclean stopping of the app, and it is possible that the lack of a facility to stop the app is preventing the NAS from shutting down also

The link I posted does include a very simple start-stop script template that could be used

NAS: Ultra-4, NV+ & Duo v2 :: ST31500341AS & HDS723020BLA642 Drives
Network: Netgear GS108Tv2 / DM111P :: Airport Extreme / Express & Time Capsule
Clients: OS X 10.6 - 10.8 :: Ubuntu 11.x :: Win 7 + SP#1
UPS: APC ES-550

Image
User avatar
sphardy
ReadyNAS Junkie
 
Posts: 4626
Joined: Thu Feb 28, 2008 3:34 am
Location: France
ReadyNAS: Ultra

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby dashyt2dafulliz » Mon Sep 26, 2011 6:59 pm

I would pay for an plugin to be made to make the process easier :D
dashyt2dafulliz
ReadyNAS User
 
Posts: 94
Joined: Wed Apr 29, 2009 3:23 pm
ReadyNAS: Pro

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby yugi » Fri Jan 13, 2012 11:17 am

hello guys,
thanx for the insrtuctions.
I just setup the minecraft server on my netgear ultra 2, an d got it to run. (see screen shot attached).
However, I don't find a way to access it from the game itself.
Any clue ?

tx,
R,
Yugi.
Image
yugi
ReadyNAS Newbie
 
Posts: 1
Joined: Fri Jan 13, 2012 11:11 am
ReadyNAS: Ultra

Re: Minecraft Linux on ReadyNas Pro Pioneer

Postby dlevens » Wed Jul 25, 2012 10:14 pm

Curious if there are any updates on this?

I see that this has been solved on a QNAP which is also x86 based
http://forum.qnap.com/viewtopic.php?f=50&t=42194

I have a ReadyNAS Pro business and Pro 6 which I would like to attempt to install a minecraft server with the MinecraftEdu mod for a school. I have 4gb of memory in the NAS.

Hoping some of you have already gotten this working.

Dennis
dlevens
ReadyNAS Newbie
 
Posts: 19
Joined: Fri Aug 17, 2007 12:25 pm


Return to General Questions (English)



Who is online

Users browsing this forum: No registered users and 3 guests