• 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: Rich Cook <email@hidden>
  • Date: Wed, 31 Oct 2007 15:24:05 -0700

Oh, crap, that's right,
The way to make it work is to modify /etc/sshd_config on the remote machine like so:


Make sure this is set to yes:

X11Forwarding yes

I'm sure you'll find it's set to "no" right now. Apple in their wisdom has decided that's too dangerous, thus ironically making many people think they to use xhost instead.

(Ben, can that be changed?  What is the deal there?)



On Oct 31, 2007, at 3:16 PM, Bobby Jones wrote:

Yeah I tried that and I get

Error: Can't open display:

going from Tiger to Tiger with stock settings and no DISPLAY set.




On Oct 31, 2007, at 6:12 PM, Rich Cook wrote:

You should not set DISPLAY. When you connect with ssh, just use the -Y flag and your DISPLAY will automatically be set on the remote host. Do not use "xhost +remotehost", that's a security hole.

On Oct 31, 2007, at 3:06 PM, Bobby Jones wrote:

Opps I'm sorry. . . . I got that a little backwards. .
The scenario below does work.

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?

-B





On Oct 31, 2007, at 5:56 PM, Rich Cook wrote:

It should not affect that situation, should it? I mean ssh (with tunneling, which I assume you mean) sets your DISPLAY for you automatically. You should probably not override that, unless you are using xauth or something. So just leave it alone and it should work.

On Oct 31, 2007, at 2:44 PM, Bobby Jones wrote:

Speaking of strange things. . .

What is the "recommended" way for X DISPLAY to be handled between Leopard and Tiger?

Obviously since Tiger needs it set. . . and Leopard does not. . . and if Tiger HAS it set and you SSH to it from a Leopard box (I.E. laptop) there is no X forwarding magic happening there.

(An no the answer shouldn't be upgrade your Tiger installation to Leopard ;) )


Thanks, -Bobby



On Oct 31, 2007, at 5:37 PM, Ben Byer wrote:

On Oct 31, 2007, at 12:20 PM, Andrew Gallatin wrote:


I was one of the people having problems starting X due to my DISPLAY
being set (thus preventing the magic launchd smoke and mirrors DISPLAY
string from being used). After hunting through my dot files, I
finally realized that I was setting it in ~/MacOSX/ environment.plist.


I think I was doing that because it got me a DISPLAY in terminal, but
I honestly don't remember. Removing it, logging out, and logging in
again allowed X to work normally. (if you can consider the strange
launchd behavior normall..)


Where by "strange" you mean "carefully designed and improved", right?

Ben Byer
CoreOS / BSD Technology Group, XDarwin maintainer

_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://
This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://
This email sent to email@hidden

--
✐Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4037, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)



_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/ mailman/options/x11-users/email@hidden


This email sent to email@hidden


--
✐The primary task of most software projects is to discover and resolve these unknowns rather than to build a system. -- Philip G. Armour
--
Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4037, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)



_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/ mailman/options/x11-users/email@hidden


This email sent to email@hidden


--
✐The primary task of most software projects is to discover and resolve these unknowns rather than to build a system. -- Philip G. Armour
--
Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4037, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)


_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
This email sent to 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>)
 >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