<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=XPRA_and_SSH</id>
	<title>XPRA and SSH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=XPRA_and_SSH"/>
	<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=XPRA_and_SSH&amp;action=history"/>
	<updated>2026-05-28T17:49:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=XPRA_and_SSH&amp;diff=830&amp;oldid=prev</id>
		<title>Sokolova-lapa at 14:27, 11 April 2018</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=XPRA_and_SSH&amp;diff=830&amp;oldid=prev"/>
		<updated>2018-04-11T14:27:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:27, 11 April 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot; &gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;username@constellation:~&amp;gt; xpra start :123&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;username@constellation:~&amp;gt; xpra start :123&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The :123 is an arbitrary display port which any X program will use in a minute. Please note that :0 is reserved for the physical display on your remote desk! To ensure that all X programs will use the XPRA-server you need to modify the DISPLAY environmental variable. In a [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;csh:start&lt;/del&gt;|CSH]], you can use&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The :123 is an arbitrary display port which any X program will use in a minute. Please note that :0 is reserved for the physical display on your remote desk! To ensure that all X programs will use the XPRA-server you need to modify the DISPLAY environmental variable. In a [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;TcShell&lt;/ins&gt;|CSH]], you can use&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;username@constellation:~&amp;gt; setenv DISPLAY :123&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;username@constellation:~&amp;gt; setenv DISPLAY :123&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sokolova-lapa</name></author>
	</entry>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=XPRA_and_SSH&amp;diff=824&amp;oldid=prev</id>
		<title>Sokolova-lapa: Created page with &quot;  Category:Working Remotely  = Working remotely using XPRA and SSH =  [https://www.xpra.org/ XPRA] allows you to start remote X programs and display them on your local mac...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=XPRA_and_SSH&amp;diff=824&amp;oldid=prev"/>
		<updated>2018-04-11T14:22:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  &lt;a href=&quot;/wiki/index.php/Category:Working_Remotely&quot; title=&quot;Category:Working Remotely&quot;&gt;Category:Working Remotely&lt;/a&gt;  = Working remotely using XPRA and SSH =  [https://www.xpra.org/ XPRA] allows you to start remote X programs and display them on your local mac...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Working Remotely]]&lt;br /&gt;
&lt;br /&gt;
= Working remotely using XPRA and SSH =&lt;br /&gt;
&lt;br /&gt;
[https://www.xpra.org/ XPRA] allows you to start remote X programs and display them on your local machine. [[Winswitch|Winswitch]] uses XPRA internally, but you can use it directly as well. Especially, you can use the speed of [[SSH|SSH]] for commands, but don't need to use X11-forwarding during your SSH-connection, which can be very slow.&lt;br /&gt;
&lt;br /&gt;
First, you need to install XPRA on your local machine. If you are using a Debian-based UNIX-system you can get XPRA via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install xpra&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Please note that you might not get the current version of XPRA depending on your distribution. Instead you can add the [[Winswitch|winswitch]]-repository to your package list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;step 1: starting an XPRA-server at Remeis&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First establish a SSH-connection to your favourite machine on Remeis:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
you@local:~&amp;gt; ssh constellation.sternwarte.uni-erlangen.de&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now start an XPRA-server using&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
username@constellation:~&amp;gt; xpra start :123&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The :123 is an arbitrary display port which any X program will use in a minute. Please note that :0 is reserved for the physical display on your remote desk! To ensure that all X programs will use the XPRA-server you need to modify the DISPLAY environmental variable. In a [[csh:start|CSH]], you can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
username@constellation:~&amp;gt; setenv DISPLAY :123&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;step 2: connecting to the XPRA-server&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, to display all X program on your local machine, open a new shell and attach the XPRA-session:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
you@local:~&amp;gt; xpra attach ssh:constellation.sternwarte.uni-erlangen.de:123&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, :123 is again the display port XPRA is using. Any X program or window you start in the SSH-connection will open at your local machine. This work even for plot windows in, e.g., ISIS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;step 2+N: open more SSH connections&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you need N more terminals on the remeis machines, but still want to forward their X windows to your local machine, just start another SSH-connection and set the DISPLAY variable:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
you@local:~&amp;gt; ssh constellation.sternwarte.uni-erlangen.de&lt;br /&gt;
username@constellation:~&amp;gt; setenv DISPLAY :123&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;final step: shutting down the XPRA-server&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your done with your work you should stop the XPRA-server to free the display port:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
username@constellation:~&amp;gt; xpra stop :123&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sokolova-lapa</name></author>
	</entry>
</feed>