LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-16-2017, 05:45 AM   #1
annie12391
LQ Newbie
 
Registered: Jun 2017
Posts: 1

Rep: Reputation: Disabled
Running Matlab overnight on a remote machine


Hi all,

I’m using Linux remotely from my Mac Terminal using SSH with X11 forwarding. I open a Matlab Command Window in Linux and run a script that takes 8 hours to complete. However when I’ve left this to run overnight, I get the ‘broken pipe’ error message, most likely due to a transient loss of connection with the server. After a bit of research I tried using ‘screen’ to get around this but I can’t get it work with Matlab running in a separate command window.

Does anyone have any ideas to keep Matlab running on Linux even if the connection from my Mac is transiently lost?

Any help would be much appreciated.

Many thanks.
 
Old 06-16-2017, 06:12 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,098

Rep: Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143
you need local X client (on that linux box) and use VNC or similar to access it from your Mac.
 
Old 06-16-2017, 06:17 AM   #3
rhamel
Member
 
Registered: Sep 2009
Location: Caribbean
Distribution: Slackware 14.2
Posts: 60

Rep: Reputation: Disabled
I'm going to suggest you run a vnc server on your remote box. Assuming it's a Linux box and not a Mac box, there are several vnc implementations you can download and run.

The one I've been using lately is x11vnchttp://www.karlrunge.com/x11vnc/, with tsvnc as the client. tsvnc connects via SSH and then on successful login, starts up x11vnc on the remote machine. Once x11vnc is started, tsvnc then starts up a vnc viewer to connect to it.

I use this and have no problem re-connecting to sessions previously started.

You can also use other vnc server implementations by logging in over SSH, starting vncserver from the CLI and then connecting using a vncviewer client to connect to the vncserver. This avoids using VNC over SSH, which is NOT a configuration I would recommend.

VNC over SSH is preferred coz the session is encrypted and can be compressed for speed as well.

In addition to VNC and VNC over SSH, there are other remote display programs I've used with varying degrees of success in the past.

These include Remote Desktop Protocol solutionshttp://www.xrdp.org/, ThinLinchttps://www.cendio.com/thinlinc/what-is-thinlinc, x2gohttp://wiki.x2go.org/.

They all require some sort of display server on the remote host with a corresponding client on the client (Mac) end.


I don't use a Mac so I can't speak for the stability of these solutions on the Mac platform, but they work fairly well on both Windows and Linux clients. So assuming you can't get one to work on Mac, there's always the possibility of running either Windows or Linux in a virtual machine on your Mac to have the client for these solutions available to you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a Linux Machine as a Remote Desktop cntgetmedown Linux - Virtualization and Cloud 9 07-16-2017 09:11 PM
[SOLVED] Use SOCKS proxy running on a remote machine shadyabhi Linux - Networking 3 01-16-2014 02:12 AM
Slow overnight running on nomachine session speeds up on interacting with the machine wallisgj SUSE / openSUSE 1 12-21-2012 11:54 AM
Remote server sleeping overnight dsledge Linux - Server 1 12-26-2007 11:05 AM
Running X-application on a remote AND local machine LinuxFrosh Linux - Software 1 07-04-2006 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration