Re: graphics window for TRAMP sessions
Tyler Smith via ESS-help <[email protected]>
| Newsgroups | gmane.emacs.ess.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks everyone for your suggestions. I was unable to get this to work, despite setting my local `.ssh/config` settings, the remote `/etc/ssh/ssh_config` as directed (and restarting the remote ssh daemon for good measure), and also adding the DISPLAY value to `tramp-remote-process-environment`. When I do this, trying `plot(1:10)` from the ESS R terminal, I get the error: ``` No protocol specified Error in .External2(C_X11, d$display, d$width, d$height, d$pointsize, : unable to start device X11cairo In addition: Warning message: In (function (display = "", width, height, pointsize, gamma, bg, : unable to open connection to X11 display '' ``` However, plotting works just fine if I do instead: - M-x shell - ssh remotehost - R - M-x ess-remote So I guess the problem is solved, although I don't know why the non-`ess-remote` approach doesn't work for me when it clearly does for several others. Thanks again, Tyler -- plantarum.ca On Sat, May 21, 2022, at 2:28 AM, Chris Wallace wrote: > You can set the -X in your .shh/config. Use > > Host * > ForwardX11 yes > > https://chr1swallace.github.io > > *From:* ESS-help <[email protected]> on behalf of Tyler Smith via ESS-help <[email protected]> > *Sent:* Friday, May 20, 2022 8:51:38 PM > *To:* ESS-help <[email protected]> > *Subject:* [ESS] graphics window for TRAMP sessions > > Hi, > > I'm working on a remote machine. I load my script file via `C-x C-f /ssh:host:file.Rmd`. When I run code from the code blocks, it starts a session on the remote machine, no problems. However, if I do a plot, nothing happens. Or at least nothing is displayed. > > I've been working around this by creating a jpeg file for each of my plots on the remote machine, then opening the file this creates to view the image. > > I wonder: is it possible to use ESS/TRAMP in a way that allows the remote R session to display a graphics window on my local machine? Without Emacs, I can do this via `ssh -X`, is there a way to tell TRAMP to use the `-X` flag? Or is this possible with ESS-remote instead of TRAMP? > > Thanks for any suggestions, > > Tyler > > -- > plantarum.ca > > ______________________________________________ > [email protected] mailing list > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fess-help&data=05%7C01%7Ccew54%40universityofcambridgecloud.onmicrosoft.com%7Ce63fc282115f4809b0d508da3a9a3ecd%7C49a50445bdfa4b79ade3547b4f3986e9%7C0%7C0%7C637886731396950817%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oN%2F%2Bfmd2N4VsslCdZ8LyyOsgLTFBCDynsG0L5MM%2FWbE%3D&reserved=0 [[alternative HTML version deleted]] ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/ess-help