Thread: I need help automating a Minecraft server
i'm trying automate minecraft server, , decided use ubuntu 11.04 on computer. computer i'm using old computer (it's old family pc, it's 5 years old (and running amazingly i've formatted hard drive (compared how used run))) won't run unix environment (or that) , runs gnome environment instead.
anyways; server auto-starts when computer turns on (my computer automatically turns on). need have computer auto-shutdown @ 12:00am enter command "stop" running terminal. plan later add more commands (such automatically welcoming people server when connect, that's not important right , i'll able figure out if can working).
command i'm using shutdown computer:
sudo shutdown -p 24:00
however, doesn't work. first of all, need enter password, need way have shell file enter password me whenever terminal asks it. second of all, plan doesn't work, if enter password (like, countdown doesn't appear).
entering commands terminal, way can think of is:
echo "stop"
problem doesn't work because wont enter running terminal (and don't know how that).
(i'm noob when comes linux)
i haven't set minecraft server before, why shutting down computer? why not stop minecraft server @ midnight?
there lots more options shutdown command - take @ man page
you can remotely access server via ssh. first install openssh-servercode:man shutdown
then remote computer can log in viacode:sudo apt-get install openssh-server
code:ssh -l username ip.address.of.machine
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] I need help automating a Minecraft server
Ubuntu
Comments
Post a Comment