home *** CD-ROM | disk | FTP | other *** search
/ Plex 2 / Plex2.mdf / u_linux / xyforwar.rea < prev    next >
Text File  |  1994-05-25  |  2KB  |  65 lines

  1. In answer to a question I posted the other day,
  2. I'm uploading to Sunsite a couple of
  3. program sources. The major work, not mine, is
  4. "xforward", from the DEC Cambridge labs. See the
  5. README in the sources for more information.
  6.  
  7. Background: 
  8. Well, I finally got "term" working, along with
  9. "txconn". Hopwever, I do most of my work on a color xterminal
  10. attached to box on which "term" runs, via ethernet.
  11. I wanted my x stuff received via the "txconn"
  12. remapping to display on the color termminal.
  13. I looked around and found the "xforward" program which does
  14. the right thing with tcp connections.
  15.  
  16. Unfortunately, txconn does its magic by connecting to
  17. a unix family socket on the X-server instead of a
  18. internet socket.
  19.  
  20. Solution:
  21.  
  22. This was a quick hack on the xforward source
  23. so that I could redirect an incoming (term socket) request
  24. for a local X-server on a unix socket
  25. to a remote X-server connected via
  26. an internet socket.
  27.  
  28. It's meant to be used together with the term utility
  29. txconn.
  30.  
  31. Usage:
  32.  
  33. Let me give the way I use it:
  34.  
  35. 0) Kill any Xervers on local "term" machine hopf2.
  36. 1) From local machine hopf2, connect to remote machine
  37.    hopf via pcomm
  38. 2) From login on hopf, start "term -l ./.termrc/hopf2.log "
  39. 3) In pcomm, ^A-up and select "term" as my upload utility.
  40.    ( I had previous installed term as an external protocol in 
  41.    pcomm).
  42. 4) switch to another window on hopf2, and do
  43.    "yforward -display color:0 -n 0 -t 360 &
  44.    Hopf2 should respond with a message like
  45.   "display is hopf2.math.purdue.edu:/tmp/.X11-unix/X0"
  46. 5) Now trsh back to hopf:
  47.    "trsh "
  48.    and on hopf, "trsh"
  49.    hopf will give you a message giving the display number, 
  50.    probably hopf:9.
  51.    Now on hopf, do "setenv DISPLAY hopf:9 "
  52.    and you X applications should dislay back on "color:0"
  53. 6) This will prompt you for each attempted connections.
  54.    Some X-app open several connections, so this is a minor
  55.    pain.
  56.  
  57. The theory one more time:
  58.  
  59. hopf:9 ---(via term)-->hopf2:0 ---(via yforward)--> color:0
  60.  
  61. Good luck.
  62.  
  63. Clarence Wilkerson
  64.  
  65.