Well... This isn't a problem with the script, you just don't meet all of the prerequisites.
You should really post what you have been trying... If you have done nothing then... wow...
But I digress...
I don't know your environment, you should have some idea though. There are a few package managers that maybe be in use... There are several front ends to RPM that ease the process of obtaining and installing RPMs and in resolving their dependencies. These include:
* yum used in Fedora, CentOS-5, Red Hat Enterprise Linux 5 and above, Scientific Linux, Yellow Dog Linux and Oracle Enterprise Linux
* up2date used in Red Hat Enterprise Linux and CentOS (CentOS-3 and CentOS-4).
* Synaptic Package Manager used in PCLinuxOS
* Zypper used in openSUSE, SUSE Linux Enterprise and Ark Linux
* urpmi used in Mandriva Linux
* apt-rpm, a port of Debian's Advanced Packaging Tool (APT)
* Smart Package Manager, used in Unity Linux, available for many distributions including Fedora
I'm guessing maybe you actually have libzypp?
I've been quite spoiled with dpkg on debian for some time now, so I can't offer much information on dealing with the RPM file. I've dealt with them in Ark, but that's all GUI based. Installing it as root may be nessasary though... you could try downloading the file for your distro and throwing it in something like a /bin folder in your home directory, and call it directly, like ~/bin/screen
I think it should still run when that terminal is killed...
If you don't have servermod turned on, then it will inject the classes into your vanilla minecraft_server.jar file, otherwise it will download the runecraft jar file into the plugins folder.
Hi everyone, sorry if this is redundant, as I've been away from the forums for a month.
I noticed that Bukkit started throwing Memory errors recently. I thought it was a change in Sheller, but I'm getting the errors when running Bukkit solo.
Specifically "java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory"
Did I miss some major change to Bukkit? Nothing has changed on the Ubuntu Server I'm using, literally just the MC Sheller script and the Bukkit jar. No plugins.
Thanks in advance for any insight.
UPDATE: Old version of Java started throwing the errors. Updated to _24 from _21 and we're all good.
./minecraft.sh say "<message>"
If the server is online, this will send the <message> to all users via the console.
If the message is not surrounded by either single or double quotes, only the first word will be sent.
Incorrect: ./minecraft.sh say This is a public message
Correct: ./minecraft.sh say "This is a public message"
./minecraft.sh tell <user> "<message>"
If the server is online, this will send a whisper of <message> to <user>.
If the message is not surrounded by either single or double quotes, only the first word will be sent.
Incorrect: ./minecraft.sh tell test_user This is a private message
Correct: ./minecraft.sh tell test_user "This is a private message"
You can easily make your script not require quotes around the message by replacing the $2 (or $3) with a $*
./minecraft.sh say "<message>"
If the server is online, this will send the <message> to all users via the console.
If the message is not surrounded by either single or double quotes, only the first word will be sent.
Incorrect: ./minecraft.sh say This is a public message
Correct: ./minecraft.sh say "This is a public message"
./minecraft.sh tell <user> "<message>"
If the server is online, this will send a whisper of <message> to <user>.
If the message is not surrounded by either single or double quotes, only the first word will be sent.
Incorrect: ./minecraft.sh tell test_user This is a private message
Correct: ./minecraft.sh tell test_user "This is a private message"
You can easily make your script not require quotes around the message by replacing the $2 (or $3) with a $*
./minecraft.sh say "<message>"
If the server is online, this will send the <message> to all users via the console.
If the message is not surrounded by either single or double quotes, only the first word will be sent.
Incorrect: ./minecraft.sh say This is a public message
Correct: ./minecraft.sh say "This is a public message"
./minecraft.sh tell <user> "<message>"
If the server is online, this will send a whisper of <message> to <user>.
If the message is not surrounded by either single or double quotes, only the first word will be sent.
Incorrect: ./minecraft.sh tell test_user This is a private message
Correct: ./minecraft.sh tell test_user "This is a private message"
You can easily make your script not require quotes around the message by replacing the $2 (or $3) with a $*
I wanted to see if you might consider adding the ability to backup the plugins directory in a similar matter to worlds. Some plugins we use don't store in sql databases, and we would hate to lose that data.
I wanted to see if you might consider adding the ability to backup the plugins directory in a similar matter to worlds. Some plugins we use don't store in sql databases, and we would hate to lose that data.
That shouldn't be too hard to implement. That does make sense and I've ran into that issue as well.
I finally started using the script again and downloaded the latest version today. I seem to be getting an error when stopping the server. Please see the error below, and the config below that.
I am using craftbukkit 960, and this is on a centos server. Script version 2.4.
The server starts without any error, and the script seems to be stopping it as normal, just throwing out this error when it does.
Thank you very much for your assistance.
Error:
-bash-3.2$ ./smp_manage.sh stop
ERROR: User name does not exist.
********* simple selection ********* ********* selection by list *********
-A all processes -C by command name
-N negate selection -G by real group ID (supports names)
-a all w/ tty except session leaders -U by real user ID (supports names)
-d all except session leaders -g by session OR by effective group name
-e all processes -p by process ID
T all processes on this terminal -s processes in the sessions given
a all w/ tty, including other users -t by tty
g OBSOLETE -- DO NOT USE -u by effective user ID (supports names)
r only running processes U processes for specified users
x processes w/o controlling ttys t by tty
*********** output format ********** *********** long options ***********
-o,o user-defined -f full --Group --User --pid --cols --ppid
-j,j job control s signal --group --user --sid --rows --info
-O,O preloaded -o v virtual memory --cumulative --format --deselect
-l,l long u user-oriented --sort --tty --forest --version
-F extra full X registers --heading --no-heading --context
********* misc options *********
-V,V show version L list format codes f ASCII art forest
-m,m,-L,-T,H threads S children in sum -y change -l format
-M,Z security data c true command name -c scheduling class
-w,w wide output n numeric WCHAN,UID -H process hierarchy
Stopping minecraft server...
-bash-3.2$
config section of script (did not change anything else)
Interesting, it seems the version does show 2.2, though I downloaded from the 2.4 link. Just tried it again and I still see it mentioning 2.2. I'll try the latest 2.5 tomorrow.
Interesting, it seems the version does show 2.2, though I downloaded from the 2.4 link. Just tried it again and I still see it mentioning 2.2. I'll try the latest 2.5 tomorrow.
use the latest link instead... to get 2.5 since there are fixes in that one... You can also just take the chunk i posted from 2.5 and paste it over your current one to get it working.
You need to install GNU Screen. On a Debian or Ubuntu system, you can do that with:
You can also try:
I don't know what package manager Suse uses. If it is RPM based, you can probably find what you need here: http://www.rpmfind.net/linux/rpm2html/search.php?query=screen
Well... This isn't a problem with the script, you just don't meet all of the prerequisites.
You should really post what you have been trying... If you have done nothing then... wow...
But I digress...
I don't know your environment, you should have some idea though. There are a few package managers that maybe be in use... There are several front ends to RPM that ease the process of obtaining and installing RPMs and in resolving their dependencies. These include:
* yum used in Fedora, CentOS-5, Red Hat Enterprise Linux 5 and above, Scientific Linux, Yellow Dog Linux and Oracle Enterprise Linux
* up2date used in Red Hat Enterprise Linux and CentOS (CentOS-3 and CentOS-4).
* Synaptic Package Manager used in PCLinuxOS
* Zypper used in openSUSE, SUSE Linux Enterprise and Ark Linux
* urpmi used in Mandriva Linux
* apt-rpm, a port of Debian's Advanced Packaging Tool (APT)
* Smart Package Manager, used in Unity Linux, available for many distributions including Fedora
I'm guessing maybe you actually have libzypp?
I've been quite spoiled with dpkg on debian for some time now, so I can't offer much information on dealing with the RPM file. I've dealt with them in Ark, but that's all GUI based. Installing it as root may be nessasary though... you could try downloading the file for your distro and throwing it in something like a /bin folder in your home directory, and call it directly, like ~/bin/screen
I think it should still run when that terminal is killed...
Lulz
Lulz
****... my bad... Runecraft now works correctly.
If you don't have servermod turned on, then it will inject the classes into your vanilla minecraft_server.jar file, otherwise it will download the runecraft jar file into the plugins folder.
Lulz
I noticed that Bukkit started throwing Memory errors recently. I thought it was a change in Sheller, but I'm getting the errors when running Bukkit solo.
Specifically "java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory"
Did I miss some major change to Bukkit? Nothing has changed on the Ubuntu Server I'm using, literally just the MC Sheller script and the Bukkit jar. No plugins.
Thanks in advance for any insight.
UPDATE: Old version of Java started throwing the errors. Updated to _24 from _21 and we're all good.
You can easily make your script not require quotes around the message by replacing the $2 (or $3) with a $*
I haven't tested this in your script, but it works well in mine.
Yes, it works pretty well, that will makes things quite a bit easier... thanks again :biggrin.gif:
Lulz
I forgot an important part of the equation for that code to work: you need to remove some of the arguments from the command line.
or simply
With this, you can essentially recreate a limited version of the send command from my script where you can moderate the commands allowed to be sent.
I wanted to see if you might consider adding the ability to backup the plugins directory in a similar matter to worlds. Some plugins we use don't store in sql databases, and we would hate to lose that data.
That shouldn't be too hard to implement. That does make sense and I've ran into that issue as well.
Lulz
I finally started using the script again and downloaded the latest version today. I seem to be getting an error when stopping the server. Please see the error below, and the config below that.
I am using craftbukkit 960, and this is on a centos server. Script version 2.4.
The server starts without any error, and the script seems to be stopping it as normal, just throwing out this error when it does.
Thank you very much for your assistance.
Error:
config section of script (did not change anything else)
Can you post your entire minecraft.sh script to pastebin?
The username should be automatically pulled for use in ps command that finds the right screen...
Here are lines 86 to 109
USERNAME=$(whoami) pulls the current logged in username for use during the 'ps -a -u...' command
This was actually added because $USERNAME had previously set to $screen_name, causing some environment to error out much like what you are seeing.
Lulz
Here is the current script: http://pastebin.com/jNzKxANX
use the latest link instead... to get 2.5 since there are fixes in that one... You can also just take the chunk i posted from 2.5 and paste it over your current one to get it working.
Lulz