joedirtdigger
Posts: 3
Joined: Thu Mar 06, 2014 1:00 am

remote access question

Sat Mar 29, 2014 7:23 pm

Greetings one and all, I have had my pi for almost a month now and it is working fantastic with its assigned task (running a private minecraft server) As my title implies I have questions with regards to remote access and my pi, currently if I SSH from putty to my pi and do what I want everything goes fine, except for one thing, If I start my minecraft server up while logged in via putty, and then end my putty session, it also kills my server thread. Now, if I swap vid input and jump over to the pi screen itself I can log in and run with no problems, as I don't log out when I do it from the source.

So my question is, is there a way to remote into the pi directly?

ie, putty in from my windows desktop, do whatever, and if i switch my vid input over to the pi i see all the work i did remotely.

I ask because although the pi is doing great, me and my friends still can crash the server with a little effort and if I'm not around I have to keep my SSH connection on, on my phone so the server stays up until I can get home to properly restart it.

thanks for taking time to read my post and advance thanks for any helpful answers

User avatar
default_user8
Posts: 658
Joined: Mon Nov 18, 2013 3:11 am

Re: remote access question

Sat Mar 29, 2014 7:28 pm

Use a vnc conncetion instead of ssh. There are plenty of post here about using tightvnc or other vnc servers. It is a remote desktop connection so you will be logged into your pi's desktop.
Two heads are better than one, unless one's a goat head.

User avatar
MrBunsy
Posts: 185
Joined: Mon Feb 20, 2012 1:48 pm
Location: Southampton, UK
Contact: Website

Re: remote access question

Sat Mar 29, 2014 7:36 pm

Screen (http://en.wikipedia.org/wiki/GNU_Screen) will do what you want. There are various alternatives too, but screen's what I personally use. It means you can re-access your session despite losing your original ssh session.

Alternatively you can start the server in the background by putting & at the end of the command eg:

Code: Select all

java -jar minecraft.jar &
Atlhough then in order to shut it down you'll have to find the process and kill it with something like killall (http://en.wikipedia.org/wiki/Killall)

joedirtdigger
Posts: 3
Joined: Thu Mar 06, 2014 1:00 am

Re: remote access question

Sat Mar 29, 2014 8:08 pm

default_user8 wrote:Use a vnc connection instead of ssh. There are plenty of post here about using tightvnc or other vnc servers. It is a remote desktop connection so you will be logged into your pi's desktop.
I will look into this, I assume that it will require a package to be downloaded and installed on my pi, correct? are you familiar with the system resources it requires? my server takes up every last bit of my Pis RAM so I have little to none to spare without affecting server performance.

MrBunsy wrote:Screen (http://en.wikipedia.org/wiki/GNU_Screen) will do what you want. There are various alternatives too, but screen's what I personally use. It means you can re-access your session despite losing your original ssh session.

Alternatively you can start the server in the background by putting & at the end of the command eg:

Code: Select all

java -jar minecraft.jar &
Atlhough then in order to shut it down you'll have to find the process and kill it with something like killall (http://en.wikipedia.org/wiki/Killall)

It seems like this may be more what Im looking for as far as the load it puts on the server. I cant run it in the background though I need to be able to do adminy stuff on the server while it is running.



Thank you both for the quick replies

User avatar
default_user8
Posts: 658
Joined: Mon Nov 18, 2013 3:11 am

Re: remote access question

Sat Mar 29, 2014 10:26 pm

FYI tightvnc puts a .3% load on my processor.
Two heads are better than one, unless one's a goat head.

Return to “Beginners”