• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DISPLAY setting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DISPLAY setting


  • Subject: Re: DISPLAY setting
  • From: Greg Parker <email@hidden>
  • Date: Wed, 31 Oct 2007 15:52:59 -0700

On Oct 31, 2007, at 3:06 PM, Bobby Jones wrote:
The scenario I was thinking about is ssh from Tiger to Tiger once you remove DISPLAY to accomodate Leopard. I had DISPLAY exported in / etc/bashrc for all my Tiger installs. . . but Leopard obviously doesn't play well with that.

So now I remove that to accommodate Leopard's X. . . but now when I ssh Tiger to Tiger. . .obviously there is no DISPLAY being passed. So I guess now I have to manually set DISPLAY every time I ssh from Tiger to Tiger if I've removed DISPLAY to accommodate Leopard's new X11?

The best way to handle this is to set DISPLAY if not already set, in some appropriate shell startup file. The file to use and syntax depend on which shell you're using; presumably adding an appropriate `if` statement where you're already handling it in Tiger will work.


The results:

Tiger: DISPLAY is not set, script sets it
Leopard: launchd set DISPLAY, script leaves it alone
SSH -Y out: ssh sees DISPLAY set at one end, ssh starts X forwarding and sets DISPLAY at the other end
SSH -Y in: ssh set DISPLAY, script leaves it alone



-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (email@hidden) This email sent to email@hidden
  • Follow-Ups:
    • Re: DISPLAY setting
      • From: Rich Cook <email@hidden>
References: 
 >DISPLAY setting (From: Andrew Gallatin <email@hidden>)
 >Re: DISPLAY setting (From: Ben Byer <email@hidden>)
 >Re: DISPLAY setting (From: Bobby Jones <email@hidden>)
 >Re: DISPLAY setting (From: Rich Cook <email@hidden>)
 >Re: DISPLAY setting (From: Bobby Jones <email@hidden>)

  • Prev by Date: Re: DISPLAY setting
  • Next by Date: Re: DISPLAY setting
  • Previous by thread: Re: DISPLAY setting
  • Next by thread: Re: DISPLAY setting
  • Index(es):
    • Date
    • Thread