No permissions?

create a user for your server i have create a user eg. minecraft then i set it to the folder "chown -R minecraft:minecraft /home/minecraft" "chmod 777 startserver.sh" then i use "sh minecraft" and run all with this user The User minecraft is only a example dont use it

command not found

install all programms apt-get install tar gzip tar bzip2 zip screen wget xmlstarlet

bash: ./startserver.sh /bin/bash^M: bad interpreter: No such file or directory

install "dos2unix" and then run it over the file "dos2unix startscript.sh"