• 1

    posted a message on I need a helping hand running my Server
    Quote from MajorCuddles

    I wasn't asking for help in this Topic, I was asking for someone who wants to help me Administrate the server.

    You can't always get what you want, but if you try sometime you just might find, you get what you need. Don't shun people who want to help you just because it wasn't the complete assistance you initially wanted.
    Posted in: Server Support and Administration
  • 0

    posted a message on [Multi World] Minecraft Server Control Script
    I got the scripts to run from the website. Finally! If anyone else wants to run them from a web interface do the following steps.

    1. Set the USER_NAME variable in /etc/init.d/minecraft_server to www-data

    2. Make sure www-data is part of the admin group. Make sure the permissions on your Minecraft server files and the /etc/init.d/minecraft_server include www-data as the user or the group. "chmod 755" and "chgrp www-data" can be used for this. www-data needs access to all of the files in order for the scripts to work fully.

    3. Your website needs to have Apache configured with CGI and able to run .sh files. Here's an example of my START.sh file in my /home/www/cgi-bin/ directory:
    #!/bin/sh
    
    echo Content-type: text/plain
    echo ""
    
    /etc/init.d/minecraft_server restart

    To call this script from my webpage I use a standard HTML link:
    <a href="./cgi-bin/START.sh">Start - Turn-on/restart the server and all worlds.</a>


    4. Make sure you're patient with running the start, restart, and update scripts. They take quite a while. Also, look at your
    /var/logs/apache2/error.log
    if you run into trouble.

    Setting up a webpage to activate/manage the server was a fun task. It's made management of the server easier for normal running circumstances for me and my friends (especially the less tech-savvy ones).

    Again, BIG THANK YOU!! to sandain! Your script is great and serves many purposes, once I figure out what Linux wanted from me. (: Your assistance has made this possible; I had no idea about www-data running the scripts and that was the root of my problems (I needed the permissions setup for it).

    Good luck to anyone trying this. The script run and managed locally works beautifully!
    Posted in: Server Support and Administration
  • 0

    posted a message on [Multi World] Minecraft Server Control Script
    Each script serves a different purpose.
    minecraft_server I use for the server to run. I run the scripts locally from it.
    minecraft_server_www Is supposed to be looking at the same server (I guess now that assumption was wrong?) and use the apache username in the file so the website can access it.

    Despite the permissions allowing www-data to access all of my minecraft server's files and the minecraft_server file it fails when I try to set it as user www-data and run commands from the minecraft_server file.
    Posted in: Server Support and Administration
  • 0

    posted a message on [Multi World] Minecraft Server Control Script
    Quote from sandain

    I am surprised that both screens complain about not being about to bind to the port.

    Do you have two startup scripts in the /etc/init.d directory, is that the reason there is two worlds starting? I'm grasping for answers right now..

    Yes. I have /etc/init.d/minecraft_server and /etc/init.d/minecraft_server_www. The first one is set to USER_NAME=myusername and the _www is set to USER_NAME=www-data. Both files are owned by myusername and in the www-data group with 755 permissions.

    I can run all commands locally just fine via the first one. My CGI (.sh) scripts listed previously look at the _www file. I did this to avoid the username mismatch error. I am a Linux newbie, so perhaps moving it out of the /etc/init.d file would be correct? I didn't realize what that folder did specifically until now.
    Posted in: Server Support and Administration
  • 0

    posted a message on [Multi World] Minecraft Server Control Script
    screen -r 22161.minecraft-world
    151 recipes
    16 achievements
    2011-06-30 14:37:31 [INFO] Starting minecraft server version Beta 1.7_01
    2011-06-30 14:37:31 [INFO] Loading properties
    2011-06-30 14:37:31 [INFO] Starting Minecraft server on *:25565
    2011-06-30 14:37:31 [WARNING] **** FAILED TO BIND TO PORT!
    2011-06-30 14:37:31 [WARNING] The exception was: java.net.BindException: Address already in use
    2011-06-30 14:37:31 [WARNING] Perhaps a server is already running on that port?


    screen -r 22014.minecraft-world
    2011-06-30 14:37:08 [INFO] Starting minecraft server version Beta 1.7_01
    2011-06-30 14:37:08 [INFO] Loading properties
    2011-06-30 14:37:08 [INFO] Starting Minecraft server on *:25565
    2011-06-30 14:37:08 [WARNING] **** FAILED TO BIND TO PORT!
    2011-06-30 14:37:08 [WARNING] The exception was: java.net.BindException: Address already in use
    2011-06-30 14:37:08 [WARNING] Perhaps a server is already running on that port?
    Posted in: Server Support and Administration
  • 0

    posted a message on [Multi World] Minecraft Server Control Script
    Quote from sandain

    This should give you access to that terminal.

    sudo chmod o+rw /dev/pts/5


    I don't know the password for the www-data account since I didn't specifically create it. Looking around online it doesn't have a password of its own that can be accessed.
    Posted in: Server Support and Administration
  • 0

    posted a message on Port Forward Website Wont Show Anything
    You have to mimic the guide in your own router's settings. Open another webpage and go to 192.168.0.1 (most likely) and login with your admin password. If you cannot get through this step you need to research more yourself.
    Posted in: Server Support and Administration
  • 0

    posted a message on [Multi World] Minecraft Server Control Script
    I only changed the USER_NAME variable. The script is in the /etc/init.d folder.

    Output from those commands:
    $ screen -r 22161.minecraft-world
    Cannot open your terminal '/dev/pts/5' - please check.
    $ screen -r 22014.minecraft-world
    Cannot open your terminal '/dev/pts/5' - please check.

    That's after a sudo su www-data.

    I don't expect you to fix my problems with this, since the script wasn't really intended for this use, but really appreciate all of your assistance. It's be nice to have help at least trying to figure it out!
    Posted in: Server Support and Administration
  • 0

    posted a message on Someone hacked my dedicated server! What do I do!?
    Quote from aeosaeos

    I honestly don't see how that will help. Sorry, but he's hacking the server. Not coming on and greifing, hacking. Also, I don't think i can change the IP of the dedicated server, can I?

    Try contacting your host. Provide the IPs, perhaps they can ban the invaders. If their server is under attack they should be notified.
    Posted in: Server Support and Administration
  • 0

    posted a message on HELP!!!!!!!!!!! :O
    ""

    Your server's RAM needs a rest and reboot. (:
    Posted in: Server Support and Administration
  • 0

    posted a message on local server
    Your 198.162.x.x IP is your local IP. Your router has an external IP address (http://www.whatismyip.com/) that you need give to your brother. Also, you need to setup port forwarding for your Minecraft Server on your router. Find your router here: http://portforward.com/ for help with that. My server uses port 25565, and I think that is default for Minecraft. If your IP changes from time to time (when you reset your router or sometimes your ISP may change it) you can use a service like http://www.dyndns.com/ to get a URL that is static. If you do that, you then have your brother connect with that youraccount.dyndns.org instead of the IP.

    Be sure to use the Whitelist feature to avoid getting unwanted guests to your server.
    Posted in: Server Support and Administration
  • 0

    posted a message on Commands
    Quote from Razorbacx

    Ok, so I have to Op myself before I can spawn in items?

    Yes.
    Posted in: Server Support and Administration
  • 0

    posted a message on Someone hacked my dedicated server! What do I do!?
    If banning by IP/username hasn't resolved the issue you need to:
    1. Change your server IP.
    2. Whitelist your server
    What is a prison based server without escape attempts? I don't understand the game you're trying to play, but to each his own!
    Posted in: Server Support and Administration
  • 0

    posted a message on Commands
    You cannot spawn items directly, manage other players, or teleport without OP rights. The server files should have an "OP.txt" (or similarly named) file. Your username needs to be added there.
    Posted in: Server Support and Administration
  • 0

    posted a message on [Multi World] Minecraft Server Control Script
    Stopped the server and I detached all of my java sockets (the two listed earlier) as suggested. I then switched to www-data and ran the commands as requested. My output is like this:
    $ sudo su www-data
    $ screen -ls
    There are screens on:
    	22161.minecraft-world	(06/30/2011 02:37:30 PM)	(Detached)
    	22014.minecraft-world	(06/30/2011 02:37:07 PM)	(Detached)
    2 Sockets in /var/run/screen/S-www-data.
    
    $ ps -a -u www-data -o pid,ppid,comm | grep java
    22016 22014 java
    22165 22161 java
    Posted in: Server Support and Administration
  • To post a comment, please or register a new account.