Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-16-2017, 06:45 AM   #1
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, 07:12 AM   #2
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,563

Rep: Reputation: 7254Reputation: 7254Reputation: 7254Reputation: 7254Reputation: 7254Reputation: 7254Reputation: 7254Reputation: 7254Reputation: 7254Reputation: 7254Reputation: 7254
you need local X client (on that linux box) and use VNC or similar to access it from your Mac.
Old 06-16-2017, 07:17 AM   #3
Registered: Sep 2009
Location: Caribbean
Distribution: Slackware 15.0, Proxmox 7.4-17, FreeBSD 13.2
Posts: 70

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 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 solutions, ThinLinc, x2go

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.


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 10:11 PM
[SOLVED] Use SOCKS proxy running on a remote machine shadyabhi Linux - Networking 3 01-16-2014 03:12 AM
Slow overnight running on nomachine session speeds up on interacting with the machine wallisgj SUSE / openSUSE 1 12-21-2012 12:54 PM
Remote server sleeping overnight dsledge Linux - Server 1 12-26-2007 12:05 PM
Running X-application on a remote AND local machine LinuxFrosh Linux - Software 1 07-04-2006 11:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 AM.

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