Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok so I just bought my vps for a minecraft server its linux and for some reason when ever i do the command (screen sh minecraft.sh) it says (Screen is terminating) i really need help on this.
What exactly are you trying to do? I imagine you want to start screen and next the minecraft script inside a screen session to avoid it terminating when you logout. Is that correct? You can start screen and directly open a SSH connection for example like this:
Code:
screen ssh servername
but that doesn't work for local scripts or commands AFAIK. What you could do is just launch screen, start your script inside the session and detach screen:
Code:
screen
sh minecraft.sh
CTRL-a CTRL-d
After that you can check if your screen session is running with:
Code:
screen -ls
and re-attach with:
Code:
screen -r
Once your screen session is running you can safely logout of your server. Hope this helps.
screen
sh minecraft.sh
CTRL-a CTRL-d i detached it
screen -ls
screen -r
do i do (exit) and do screen sh minecraft.sh
or do i stay in screen and do screen sh minecraft.sh?
That error indicates that you cannot start an instance of the Java Virtual Machine which apparently is needed by the application you're trying to run. How much RAM (and how much free) do you have on your VPS? I had the same problem with 'our' software here and had to add RAM because Java needed at least 1Gb free.
And how much RAM do you have free and what are the RAM requirements for Minecraft? What's mentioned in minecraft.sh with regards to RAM or starting Java?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.