CoEPP RC
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
xpra [2015/05/01 15:21]
goncalo [A general Xpra use case with xterm]
xpra [2015/05/01 15:23]
goncalo [A general Xpra use case with xterm]
Line 107: Line 107:
   * All following operations can be done on the localhost.   * All following operations can be done on the localhost.
  
-  * The DISPLAY has to be unique. Therefore, we will use the $RANDOM env var in bash to guarantee unique DISPLAY IDs.+  * The DISPLAY ​ID has to be unique. Therefore, we will use the $RANDOM env var in bash to guarantee unique DISPLAY IDs.
    
-  * Start the xpra server in the remove machine, start the application,​ and attach the xpra client to the DISPLAY $ND. xterm should shortly appear in your local machine.+  * Start the Xpra server in the remove machine, start the application,​ and attach the Xpra client to the DISPLAY $ND. xterm should shortly appear in your local machine.
 <​code>​ <​code>​
 [localhost ~]$ ND=$RANDOM [localhost ~]$ ND=$RANDOM
Line 127: Line 127:
 </​code>​ </​code>​
  
-  * Once that xterm starts, the user can use it to launch other remote applications. All the windows applications will be properly redirected to the local machine.+  * Once xterm starts, the user can use it to launch other remote applications. All the windows applications will be properly redirected to the local machine.
  
   * At any time, you can detach from the DISPLAY, and attach later one   * At any time, you can detach from the DISPLAY, and attach later one
Line 154: Line 154:
 </​code>​ </​code>​
  
-  * When you close the xterm window, you close the application. However, the xpra server continues to control the $ND DISPLAY, and the xpra client continues to be attached to it (if you did not detached). You can actually reuse that DISPLAY to launch the same or other application via, for example, ssh. In this example, we are starting xemacs.+  * When you close the xterm window, you close the application. However, the Xpra server continues to control the $ND DISPLAY, and the Xpra client continues to be attached to it (if you did not detached). You can actually reuse that DISPLAY to launch the same or other application via, for example, ssh. In this example, we are starting xemacs.
 <​code>​ <​code>​
 $ ssh -l goncalo sydui4.syd.coepp.org.au "​DISPLAY=:​$ND xemacs&"​ & $ ssh -l goncalo sydui4.syd.coepp.org.au "​DISPLAY=:​$ND xemacs&"​ &
 </​code>​ </​code>​
  
-  * The server will continue running in the remote side until it is stopped (which should be done when you finished ​working)+  * The server will continue running in the remote side until it is stopped (which should be done when you finish ​working)
 <​code>​ <​code>​
 $ xpra stop ssh:​goncalo@sydui4.syd.coepp.org.au:​$ND ​ $ xpra stop ssh:​goncalo@sydui4.syd.coepp.org.au:​$ND ​
xpra.txt · Last modified: 2016/08/05 12:24 by scrosby
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki