Go Back   The macosxhints Forums > OS X Help Requests > UNIX - X11



Reply
 
Thread Tools Rate Thread Display Modes
Old 11-07-2007, 03:32 PM   #1
Foobar_CfA
Registered User
 
Join Date: Nov 2007
Posts: 2
Help with Leopard and X11

Hi guys,

I installed leopard last week and X11 and I have been fighting.
I often use X11 for Xforwarding from my workstation at work onto my mac.

I have a macbook.
I read the suggestions in the sticky above:
Quote:
1) Open Terminal.app
2) run "echo $DISPLAY" -- verify the result is of the form "/tmp/ launchd-xxxxx/:0"
3) run "ssh -Y user@host"
4) after you log in, X11.app should start on your Mac
5) run "echo $DISPLAY" (on the remote host) -- verify result is of the form "localhost:10"
6) run xterm & (on the remote host) -- xterm should appear on your Mac.

Note that some people have seen problems with step 4, where X11.app can hang while launching -- I don't yet know why this is the case.""

My problem is that when I get to step 2, the DISPLAY env variable is not set!!!! How do I fix this? Everything I have read is that we shouldn't mess with the DISPLAY vairable so the launchd can set it, but it's not getting set... Help?

I just want to be able to ssh to my work account and open the windows I need on my mac. Other than this, I LOVE leopard!
Thanks
Foobar_CfA is offline   Reply With Quote
Old 11-07-2007, 09:07 PM   #2
Foobar_CfA
Registered User
 
Join Date: Nov 2007
Posts: 2
Got xterms running, now how about some other apps?

Okay! I had followed the directions to get Tiger back on (which was a mess) and I mananged to remove the org.x.X11.plist file. This is now back in place and this solved my first issue. I have the DISPLAY environment variable set again. Whew!

I can now launch xterms from my Solaris machine onto my mac. BUT... I can't launch other forms..

For example:
Solaris> xemacs &
Solaris> [1] exit
X11 connection rejected because of wrong authentication.

I have tried to use xauth to set up the authentication, but this is failing as well.

Again, I followed the steps from above, but I had to manually start up the X11.app (probably one more step I need to fix...)

Thoughts? I will keep banging away at this, but any thoughts are helpful!
(and yes, I did the ssh -Y....)
Foobar_CfA is offline   Reply With Quote
Old 11-09-2007, 01:05 AM   #3
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,233
Quote:
Originally Posted by Foobar_CfA
I installed leopard last week and X11 and I have been fighting.
I often use X11 for Xforwarding from my workstation at work onto my mac.

I have a macbook.
I read the suggestions in the sticky above:

My problem is that when I get to step 2, the DISPLAY env variable is not set!!!! How do I fix this? Everything I have read is that we shouldn't mess with the DISPLAY vairable so the launchd can set it, but it's not getting set... Help?

On the address.com machine, enable X11forwarding. Check /etc/sshd_config, set "X11Forwarding yes", and then restart ssh (turn remote login off and then on in System Preferences->Sharing)

(I suggest you install the latest Xquartz binaries from the Wiki, X11 is working much better now)

Last edited by sao; 11-09-2007 at 01:37 AM.
sao is offline   Reply With Quote
Old 01-02-2008, 09:18 AM   #4
bcantarel
Registered User
 
Join Date: Jan 2008
Posts: 1
Similar problem

I am logging into a MacPro with Leopard, trying to get X-forwarding to work, so that I can use emacs from my Macbook. The Macbook is able to log into other machines and have the X windows working. Also the MacPro can log into another machine and it works, but when the remote log in to the Macbook through ssh, the X-window (Emacs) opens into a new window on the MacPro, not the Macbook.

I have already double checked the ssh_config and sshd_config files. And using ssh trying the -X and -Y options and neither is working.

Any suggestions??
bcantarel is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.