Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-17-2012, 01:11 AM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 6
Rep:
|
My vps (Screen is terminating)
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.
|
|
|
04-17-2012, 01:21 AM
|
#2
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hello and welcome to LinuxQuestions,
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:
and re-attach with:
Once your screen session is running you can safely logout of your server. Hope this helps.
Kind regards,
Eric
|
|
|
04-17-2012, 01:27 AM
|
#3
|
LQ Newbie
Registered: Apr 2012
Posts: 6
Original Poster
Rep:
|
Yea im trying to make it not turn off my server when I log off screen.I will try the codes give me a second.
|
|
|
04-17-2012, 01:37 AM
|
#4
|
LQ Newbie
Registered: Apr 2012
Posts: 6
Original Poster
Rep:
|
I did
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?
|
|
|
04-17-2012, 01:40 AM
|
#5
|
LQ Newbie
Registered: Apr 2012
Posts: 6
Original Poster
Rep:
|
Could I just uninstall screen then reinstall it a get a fresh file?But i don't know where to locate the screen file.
|
|
|
04-17-2012, 01:41 AM
|
#6
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
You execute screen by typing only screen on the command line:
Next you'll be inside your screen session. That's when you type the command to start your minecraft:
Code:
sh minecraft.sh <ENTER>
and you detach your screen session which will bring you back to your 'normal' console prompt.
and check if your screen session is running with:
If it is, you can safely logout of your server, log back in when needed and re-attach to your screen session with:
Kind regards,
Eric
---------- Post added 17-04-12 at 08:42 ----------
Quote:
Originally Posted by Magic1022
Could I just uninstall screen then reinstall it a get a fresh file?But i don't know where to locate the screen file.
|
Hi,
Why would you do that? What error are you encountering that makes you think you need to uninstall screen?
Kind regards,
Eric
|
|
|
04-17-2012, 01:53 AM
|
#7
|
LQ Newbie
Registered: Apr 2012
Posts: 6
Original Poster
Rep:
|
When i do (sh minecraft.sh and press enter) it says
Error occurred during during initialization of VM
Could not reserve enough space for object heap
Could not create the java virtual machine.
|
|
|
04-17-2012, 02:34 AM
|
#8
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
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.
Kind regards,
Eric
|
|
|
04-17-2012, 03:07 PM
|
#9
|
LQ Newbie
Registered: Apr 2012
Posts: 6
Original Poster
Rep:
|
I have 6GB ram vps i dont know how much storage though it didn't say here is the website,
www.diamondhosting.net
|
|
|
04-18-2012, 12:49 AM
|
#10
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
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?
Kind regards,
Eric
|
|
|
05-02-2012, 12:16 AM
|
#11
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
Can you give an update on your situation? Is your problem solved or are you still looking for a solution?
Kind regards,
Eric
|
|
|
All times are GMT -5. The time now is 01:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|