home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18799 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.6 KB

  1. Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: kenny@castle.ed.ac.uk (K J MacDonald)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: setting DISPLAY env variable
  5. Message-ID: <1992Dec21.200457.7837@sm.sony.co.jp>
  6. Date: 21 Dec 92 20:04:57 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Edinburgh University
  10. Lines: 36
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 21 Dec 92 16:47:18 GMT
  14. Message-Id: <29777@castle.ed.ac.uk>
  15. Newsgroups: comp.windows.x
  16. References: <1h4bp2INNi8u@sol.deakin.OZ.AU>, <BzM3Az.2FG@gabriel.keele.ac.uk>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. I always run on a different X Terminal each time I log on (to several
  20. different machines around the campus) and I've got a quick and dirty way
  21. of setting my DISPLAY env. variable.
  22.  
  23. On each machine that I log into I place the following line into my
  24. .bashrc (or .cshrc or  whatever) file.
  25.  
  26.     export DISPLAY=`cat $HOME/etc/display`
  27.  
  28. And on each machine that has a .xsession file I add the following lines
  29. to the .xsession file.
  30.  
  31.     rsh <remote_machine> "echo $DISPLAY > etc/display"
  32.     rsh <another_mathine> "echo $DISPLAY > etc/display"
  33.  
  34. and so on.
  35.  
  36. Now when my .xsession is run, my DISPLAY variable is written into a file
  37. on each of the machines I have accounts on. This is then read when I log
  38. on to the other machine. 
  39.  
  40. Simple, eh ?
  41.  
  42.         Kenny.
  43.  
  44. -----------------------------------------------------------
  45. Kenneth MacDonald        E-mail kenny@festival.ed.ac.uk
  46. Dept. of Geology & Geophysics
  47. University of Edinburgh        Scotland
  48. -----------------------------------------------------------
  49.