NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
gsuttor
Jun 09, 2011Aspirant
Minecraft Linux on ReadyNas Pro Pioneer
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
-----------------------------------------------------------------------------------------------------
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
-----------------------------------------------------------------------------------------------------
19 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredI 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. - gsuttorAspirantTHANK YOU!
This works awesomely for a LAN server! :D - gsuttorAspirantHey 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. - mdgm-ntgrNETGEAR Employee RetiredIdeally 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. - sphardy1ApprenticeOr a simple debian init script: http://www.debian-administration.org/articles/28
- gsuttorAspirantUmm.... 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? - gsuttorAspirantOK 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 - gsuttorAspirantWorks 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. - gsuttorAspirantI 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 - mdgm-ntgrNETGEAR Employee RetiredI 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.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!