I was hoping to get some more information about the crontab code for scheduling tasks in MineOS+
Another user posted this as his current crontab:
0,15,30,45 * * * * cd /usr/games/minecraft; python admin_console.py backup one
5 7 * * * cd /usr/games/minecraft; python admin_console.py removeolderthan one 672
35 7 * * * cd /usr/games/minecraft; python admin_console.py map one
His code covers most of the tasks I would like to see, however, I want to add a weekly archive to the mix. Would this be the code to use?:
10 7 * * 1 cd /usr/games/minecraft; python /usr/games/minecraft/admin_console.py archive one
You may notice i wrote "/usr/games/minecraft/" in front of admin_console.py because that is the way it was done in the video tutorials. I am not sure if its necessary as the other poster omitted it.
Also, are there any other commands you can perform? like map, removeolderthan, backup, etc.
Separate question: Is there a whitelist feature? or is that done through bukkit/mods?
I am not sure of anyone has suggested it yet, but I would love to see Canary Mod support. http://www.canarymod.net
This is the mod I use and love it way more then bukkit aaaand I might also be a developer of it. Either way, I would love to see support for it.
I had literally typed that i would get right on this, but clicked on the link to take a look first. Adding Canary would take a lot more then a few lines of code due to the way it requires it's filesystem to be configured, and the completely different configuration files, and on and on. I'm not saying it isn't possible, but it would take a lot of symlink voodoo, scripted file magic during world creation, and would need its own branch of the admin.py file...
There is definitely a reason Hexparrot chose not to support both Bukkit and hmod. They use totally incompatable ways to wrap the minecraft server jar. Using bukkit is as easy as running it from the same directory as the minecraft jar and it uses the stock minecraft config files without modifying them. Not using it is as simple as running the default minecraft jar.
if Canary/hmod (half the names haven't even been changed yet, and thats a whole other issue when you are scripting a process) has some way to allow me to send it memory usage, world, mc jar, and plugin folder location when started as bukkit does, I may reconsider, but i do not have time to support two separate filesystems right now. Sorry!
I did get it up and working in Xenserver. Although I can create a world just fine, but it refuses to start the world. I click on start, it goes through, says the world is down. So I give it a minute and check it again. Says it's still down. I can't connect to it or anything. Also, as a side note, if it matters at all I am running it as a ramdisk.
Please put log_dump in the Var/cmd field with 100 in the arguments and post the results. Did you update the server files before creating the world?
Quote from nowwhatnapster »
Would this be the code to use?:
10 7 * * 1 cd /usr/games/minecraft; python /usr/games/minecraft/admin_console.py archive one
You may notice i wrote "/usr/games/minecraft/" in front of admin_console.py because that is the way it was done in the video tutorials. I am not sure if its necessary as the other poster omitted it.
Also, are there any other commands you can perform? like map, removeolderthan, backup, etc.
Separate question: Is there a whitelist feature? or is that done through bukkit/mods?
You do not need the "/usr/games/minecraft/" as the cd command has already put you there. Other then that looks fine.
We will be putting the full list of web and admin_console.py commands on the wiki soon.
Ah, whitelist commands, I knew there was something else I was forgetting for the todo list!
now 'I' got a bug...
my symlink in /var/www/httpdocs/ disappeared..
p.s. Don't reply to me telling me how to fix it, this is only a bug report..
I have the same bug (I think). When i go to http://box/ I used to see my maps, but now its just empty.
As an aside, my mapping function takes well over 5 minutes to compete. I chalk that up to a slow CPU and a user who walked miles and miles in one direction so now the map has a really lopsided shape.
2. Create world one Default setup with Bukkit enabled - result:
3: status - result: down
4: world one start - result: {'world': 'one', 'command': 'start', 'argument': '100'} starting up world...
using port: 25565
world one: down
5: log_dump 100 - result: {'world': 'one', 'command': 'log_dump', 'argument': '100'} (2, 'No such file or directory') [Errno 2] No such file or directory: '/usr/games/minecraft/ram-worlds/one/server.log'
EDIT
Could this be a java issue? When I do java version this is what I get:
tc@box:~$ java version
Error: Could not find main class version
Exception in thread "main" java.lang.NoClassDefFoundError: version
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:198)
Caused by: java.lang.ClassNotFoundException: version
at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:325)
at java.lang.ClassLoader.loadClass(ClassLoader.java:355)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:195)
My server for some weird reason will not launch the website. for example, my local ip is 192.168.1.109 for the server. Port 80 works but port 8080 doesn't come up with anything. Does anybody know a reason for this?
My server for some weird reason will not launch the website. for example, my local ip is 192.168.1.109 for the server. Port 80 works but port 8080 doesn't come up with anything. Does anybody know a reason for this?
Try putting https:192.168.1.109:8080 See if that works.
I pretty much just finished a guide on how to setup MineOS+ with a wireless connection (WPA secured only at this point, as it's hardest) go take a look on the wiki at > http://mineos.000a.biz/index.php/Wireless
I've always wanted to figure out how to host MineOS on wireless. I like the idea of being able to clone my server to virtual box and in a few seconds have running on a wireless local network. Pretty cool, just shut my laptop when I'm done showing off my creations.
if that was the result from the first boot it didn't actually download the files, which explains the log.
ensure you can connect to the internet from the server with 'ping -c 5 www.google.com'
if successful, try update server again, then it should start. (will need rebooted before playing after world creation)
dhcp might not be set up to work with your Xen server, so you might have to set a static IP address depending on your setup.
Quote from nocturni »
Is there a way to access the webpanel remotely?
Through the same external address your players use to log into your server on port 8080 (you may need the https:// in front in some cases)
This is the same way the mobile page will be able to be viewed from your smartphone. (It's being tested now and will probably be in this weekends update)
if that was the result from the first boot it didn't actually download the files, which explains the log.
ensure you can connect to the internet from the server with 'ping -c 5 www.google.com'
if successful, try update server again, then it should start. (will need rebooted before playing after world creation)
dhcp might not be set up to work with your Xen server, so you might have to set a static IP address depending on your setup.
Well, it wasn't the very first boot. On the very first boot it did download the files.
Try it without the ramdisk. I don't know too much about Xen architecture, it might help. I'll look into it when I get the chance, but I'm bit busy trying to get the automatic backup solution I've come up with working at the moment.
i'm having a problem on install. I've followed the tutorial for installing the linux distro with a usb. I attempted to use LiLi, and also unetbootn, I also tried it with 3 different usb's.
(yes i followed the tutorial exactly, with each i was able to adjust the waitusb time)
I had it working, but then messed up on install, and decided to restart.
Eventually I was running into an issue where when I type 'sudo ./10_setup_sudo.sh' I get a 'sudo: ./10... command not found!'
I even did a 'cat ./10_setup_sudo.sh' it said that the file was not found.
I tried to do a chmod 777 * and then it spat back saying 'no such file or directory'
very confused.
I'm trying to just install on an old machine. when I'm setting up the partitions what sizes should I make them, percentage wise? how big should the swap partition be?
cheers!
by the way, once I get this working... If you need any javascript/php developers for the webpanel, let me know... as that is where my expertise lies :smile.gif:
the massive wall of text does not appear. i believe this is because of my previous install.
when i boot my computer from disk, its loads the gnu grub, but when i select "MineOS+ x86"
It gives the error:
Booting 'MineOS+ x86'
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/bzImage text quiet
Error 15: File not found
Press any key to continue...
this is why I wanted to reinstall. if this error of mine could be fixed instead, that would be ideal :S I looked up the error online and it seemed to have happened to some before when trying to install the old mineos, but I wasn't able to find a useful solution.
PING http://www.google.com (209.85.143.104): 56 data bytes
64 bytes from 209.85.143.104: seq=0 ttl=53 time=74.956 ms
64 bytes from 209.85.143.104: seq=1 ttl=53 time=78.238 ms
64 bytes from 209.85.143.104: seq=2 ttl=53 time=72.017 ms
64 bytes from 209.85.143.104: seq=3 ttl=53 time=77.404 ms
64 bytes from 209.85.143.104: seq=4 ttl=53 time=71.058 ms
--- http://www.google.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 71.058/74.734/78.238 ms
As you are not getting this, for whatever reason, MineOS+ cannot connect to the internet.
If you are just going for a LAN setup, you could always manually download the minecraft server, bukkit e.t.c. files and then transfer them over using SFTP. Of course this isn't an elegant solution, but it would quickly solve your initial problem.
Does your router have some sort of firewall ? You say you have a local ip, are you connecting to MineOS using another computer over the same network, the same computer MineOS is hosted on, or are you connecting over the internet from a completely different network?
Another quick thought, are you receiving any errors whatsoever to do with an intel ethernet card?
I'm connecting to the machine using XenCenter and also Putty. I have set up many other severs on that physical machine and had had no issues with any of the VMs connecting to the internet. I'll download the files manually this time but, I would really like it to be accessible from the web.
EDIT
I also have a ubuntu server running off that machine and I get the normal:
ping results like you posted above. As far as network goes it's the same for both VMs. There's some issue with MineOS+ and Xenserver.
Another user posted this as his current crontab:
His code covers most of the tasks I would like to see, however, I want to add a weekly archive to the mix. Would this be the code to use?:
You may notice i wrote "/usr/games/minecraft/" in front of admin_console.py because that is the way it was done in the video tutorials. I am not sure if its necessary as the other poster omitted it.
Also, are there any other commands you can perform? like map, removeolderthan, backup, etc.
Separate question: Is there a whitelist feature? or is that done through bukkit/mods?
I had literally typed that i would get right on this, but clicked on the link to take a look first. Adding Canary would take a lot more then a few lines of code due to the way it requires it's filesystem to be configured, and the completely different configuration files, and on and on. I'm not saying it isn't possible, but it would take a lot of symlink voodoo, scripted file magic during world creation, and would need its own branch of the admin.py file...
There is definitely a reason Hexparrot chose not to support both Bukkit and hmod. They use totally incompatable ways to wrap the minecraft server jar. Using bukkit is as easy as running it from the same directory as the minecraft jar and it uses the stock minecraft config files without modifying them. Not using it is as simple as running the default minecraft jar.
if Canary/hmod (half the names haven't even been changed yet, and thats a whole other issue when you are scripting a process) has some way to allow me to send it memory usage, world, mc jar, and plugin folder location when started as bukkit does, I may reconsider, but i do not have time to support two separate filesystems right now. Sorry!
Please put log_dump in the Var/cmd field with 100 in the arguments and post the results. Did you update the server files before creating the world?
You do not need the "/usr/games/minecraft/" as the cd command has already put you there. Other then that looks fine.
We will be putting the full list of web and admin_console.py commands on the wiki soon.
Ah, whitelist commands, I knew there was something else I was forgetting for the todo list!
http://minecraft.codeemo.com/config_adminpy.html
Its not 100% accurate anymore, but its still good.
I have the same bug (I think). When i go to http://box/ I used to see my maps, but now its just empty.
As an aside, my mapping function takes well over 5 minutes to compete. I chalk that up to a slow CPU and a user who walked miles and miles in one direction so now the map has a really lopsided shape.
This is my steps from first boot.
1. Update Server Files - result: {'world': 'one', 'memory': '1024', 'command': 'update', 'mod': 'bukkit'} keeping existing minecraft_server.jar
keeping existing craftbukkit-0.0.1-SNAPSHOT.jar
keeping existing c10t-1.7-linux-x86.tar.gz
extracting c10t files... update complete.
2. Create world one Default setup with Bukkit enabled - result:
3: status - result: down
4: world one start - result: {'world': 'one', 'command': 'start', 'argument': '100'} starting up world...
using port: 25565
world one: down
5: log_dump 100 - result: {'world': 'one', 'command': 'log_dump', 'argument': '100'} (2, 'No such file or directory') [Errno 2] No such file or directory: '/usr/games/minecraft/ram-worlds/one/server.log'
EDIT
Could this be a java issue? When I do java version this is what I get:
tc@box:~$ java version
Error: Could not find main class version
Exception in thread "main" java.lang.NoClassDefFoundError: version
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:198)
Caused by: java.lang.ClassNotFoundException: version
at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:325)
at java.lang.ClassLoader.loadClass(ClassLoader.java:355)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:195)
Try putting https:192.168.1.109:8080 See if that works.
I've always wanted to figure out how to host MineOS on wireless. I like the idea of being able to clone my server to virtual box and in a few seconds have running on a wireless local network. Pretty cool, just shut my laptop when I'm done showing off my creations.
um, how DO you fix it?
Hey guys, is this happening after a reboot or after you map?
fixes it.
I will at least put in a hidden fixsnapshot command on the web-panel for the next update if the bug still isn't found.
I think it started when I did a sudo reboot without doing sudo filetool.sh -b first.
There were definitely maps at first.
https://<your server's ip here>:8080
you need to have forwarded port 8080, but you probably did that when you were forwarding the port for the game.
if that was the result from the first boot it didn't actually download the files, which explains the log.
ensure you can connect to the internet from the server with 'ping -c 5 www.google.com'
if successful, try update server again, then it should start. (will need rebooted before playing after world creation)
dhcp might not be set up to work with your Xen server, so you might have to set a static IP address depending on your setup.
Through the same external address your players use to log into your server on port 8080 (you may need the https:// in front in some cases)
This is the same way the mobile page will be able to be viewed from your smartphone. (It's being tested now and will probably be in this weekends update)
Well, it wasn't the very first boot. On the very first boot it did download the files.
When I ping I get this:
tc@box:~$ ping -c 5 www.google.com
ping: bad address 'www.google.com'
tc@box:~$ ping -c 5 http://google.com
ping: bad port spec 'http://google.com'
tc@box:~$ ping -c 5 http://www.google.com
ping: bad port spec 'http://www.google.com'
I have a local ip. I don't know what else to do here.
(yes i followed the tutorial exactly, with each i was able to adjust the waitusb time)
I had it working, but then messed up on install, and decided to restart.
Eventually I was running into an issue where when I type 'sudo ./10_setup_sudo.sh' I get a 'sudo: ./10... command not found!'
I even did a 'cat ./10_setup_sudo.sh' it said that the file was not found.
I tried to do a chmod 777 * and then it spat back saying 'no such file or directory'
very confused.
I'm trying to just install on an old machine. when I'm setting up the partitions what sizes should I make them, percentage wise? how big should the swap partition be?
cheers!
by the way, once I get this working... If you need any javascript/php developers for the webpanel, let me know... as that is where my expertise lies :smile.gif:
the massive wall of text does not appear. i believe this is because of my previous install.
when i boot my computer from disk, its loads the gnu grub, but when i select "MineOS+ x86"
It gives the error:
this is why I wanted to reinstall. if this error of mine could be fixed instead, that would be ideal :S I looked up the error online and it seemed to have happened to some before when trying to install the old mineos, but I wasn't able to find a useful solution.
I'm connecting to the machine using XenCenter and also Putty. I have set up many other severs on that physical machine and had had no issues with any of the VMs connecting to the internet. I'll download the files manually this time but, I would really like it to be accessible from the web.
EDIT
I also have a ubuntu server running off that machine and I get the normal:
ping results like you posted above. As far as network goes it's the same for both VMs. There's some issue with MineOS+ and Xenserver.