You try plotting something in R on a Linux machine in an SSH session you'll get this nasty error message:
Error in function (display = "", width, height, pointsize, gamma, bg,:
X11 I/O error while opening X11 connection to 'localhost:10.0'
Turns out there's a very easy way to see graphical output over your SSH terminal. First, if you're not already using PuTTY for SSH, download putty.exe from here. Next, download, install, and run Xming. While Xming is running in your system tray, log into the Linux server as you normally would using PuTTY. Then type this command at the terminal to log into the linux server of your choice (here, pepperjack), with the -X (uppercase) to enable X11 forwarding.
ssh -X pepperjack.mc.vanderbilt.edu
If all goes well you should now be able to use programs that utilize graphical output or interfaces, which are running on the remote Linux machine rather than your local windows computer.
Xming - PC X Server
Xming download link on SourceForge
Hi,
ReplyDeleteI recommend this site:
http://www.cse.unsw.edu.au/~helpdesk/documentation/Putty.html
to see another way to use Xming with Putty.
Regards,
Federico Antico
PhD Student
https://engineering.purdue.edu/~zavattie/
thanks for sharing it .. it worked perfectly
DeleteNot able to access the link.
Deletehttp://www.cse.unsw.edu.au/~helpdesk/documentation/Putty.html
Can you please update..
I have been trying to find a workaround for this problem for ages and never realized just how simple the solution was. Thank you for this.
ReplyDeleteIt is certainly very useful to be able to send a graphical output to a remote Linux machine. Many thanks for this one guys.
ReplyDelete"ssh -X server" is not necessary after enabling putty forwarding X11.
ReplyDeleteThanks a lot!!
ReplyDeleteand thanks to http://www.cse.unsw.edu.au/~helpdesk/documentation/Putty.html also!
This comment has been removed by the author.
ReplyDeleteThanks for the post. It helped a lot. Keep up the good work.
ReplyDeleteThe link http://www.cse.unsw.edu.au/~helpdesk/documentation/Putty.html holds an easier fix to this problem ..
How can I save R images generated using putty (linux server) in Xming view ?
ReplyDeletethanks.
ReplyDeleteAlso the following page has very detailed steps about using xming, xshell, putty, tightvnc to display linux gui on windows desktop (x11 forwarding when behind firewall)
Looks like you forgot to add the link.
DeleteSorry, the page is at http://www.doxer.org/learn-linux/use-xming-xshell-putty-tightvnc-to-display-linux-gui-on-windows-desktop-x11-forwarding-when-behind-firewall/
Delete