Help! my X11 is crashing and my guess is it has to do with the mess
I made with the $DISPLAY variable. I can run a Terminal but I
cannot launch any applications related to X11: it will try to launch it
but it will crash after a few seconds and will keep trying forever.
I tried to follow the ssh debugging instructions and I thought the
problem was the /etc/sshrc file. I deleted that file and nothing. I
also tried reinstalling xquartz 2.5.0 and nothing
This is the output from the console, after trying to launch an xterm
from Terminal
Thank you in advance for any help
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] X11.app: DISPLAY ("/tmp/launch-FAqsQ6/org.macosforge.xquartz:0") does not match our id ("org.x"), unsetting.
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] X11.app: main(): argc=2
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] argv[1] = -psn_0_69649
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] Waiting for startup parameters via Mach IPC.
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] X11.app: Could not connect to server (DISPLAY is not set). Starting X server.
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] X11.app: Launching /usr/X11/bin/startx:
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] argv[0] = /bin/sh
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] argv[1] = -c
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] argv[2] = /usr/X11/bin/startx
5/3/10 5:17:10 PM [0x0-0x11011].org.x.X11[128] font_cache: Scanning user font directories to generate X11 font caches
5/3/10 5:17:11 PM [0x0-0x11011].org.x.X11[128] font_cache: Updating FC cache
5/3/10 5:17:11 PM org.x.privileged_startx[183] font_cache: Scanning system font directories to generate X11 font caches
5/3/10 5:17:11 PM defaults[202]
The domain/default pair of (org.x.X11, dpi) does not exist
5/3/10 5:17:12 PM [0x0-0x11011].org.x.X11[128] xauth: creating new authority file /Users/croman/.serverauth.171
5/3/10 5:17:12 PM [0x0-0x11011].org.x.X11[128] launch_msg("CheckIn") IPC failure: Operation not permitted
5/3/10 5:17:12 PM [0x0-0x11011].org.x.X11[128] X11.app: No launchd socket handed off, unsetting DISPLAY
5/3/10 5:17:12 PM [0x0-0x11011].org.x.X11[128] X11.app: do_start_x11_server(): argc=4
5/3/10 5:17:12 PM [0x0-0x11011].org.x.X11[128] argv[0] = /usr/X11/bin/X
5/3/10 5:17:12 PM [0x0-0x11011].org.x.X11[128] argv[1] = :0
5/3/10 5:17:12 PM [0x0-0x11011].org.x.X11[128] argv[2] = -auth
5/3/10 5:17:12 PM [0x0-0x11011].org.x.X11[128] argv[3] = /Users/croman/.serverauth.171
5/3/10 5:17:13 PM [0x0-0x11011].org.x.X11[128] Xquartz starting:
5/3/10 5:17:13 PM [0x0-0x11011].org.x.X11[128] X.Org X Server 1.4.2-apple53
5/3/10 5:17:13 PM [0x0-0x11011].org.x.X11[128] Build Date: 20100211
5/3/10 5:17:14 PM [0x0-0x11011].org.x.X11[128] (EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
5/3/10 5:17:14 PM [0x0-0x11011].org.x.X11[128] (EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
5/3/10 5:17:14 PM org.x.privileged_startx[183] font_cache: Updating FC cache
5/3/10 5:17:14 PM [0x0-0x11011].org.x.X11[128] waiting for X server to shut down
5/3/10 5:17:17 PM [0x0-0x11011].org.x.X11[128] Quitting Xquartz...
5/3/10 5:18:02 PM [0x0-0x11011].org.x.X11 font_cache: Done
5/3/10 5:18:03 PM org.x.privileged_startx[183] font_cache: Done
On Thu, Apr 29, 2010 at 9:35 PM, Carlos Roman
<email@hidden> wrote:
Thank you!, the link is totally clear and enabling ForwardX11 in the sshd_config file on the
remote location was the solution.On Thu, Apr 29, 2010 at 8:53 PM, Jeremy Huddleston
<email@hidden> wrote:
On Apr 29, 2010, at 09:55, Carlos Roman wrote:
>>
>>
>> 'xhost +' enables connection without authentication from other systems over
>> TCP/IP and has nothing to do with ssh tunnels. Make sure you're sshing to
>> the remote system using 'ssh -Y' and that the remote system allows ssh
>> tunneling in its /etc/sshd_config.
>>
>>
> Hello, thanks for the clarification. I am using -Y and I set tunneling and
> X11Forward to
> yes in sshd_config and ssh_config files.
> The strange thing is, if I echo $DISPLAY it gives me blank. Nothing.
Then that is your problem. Chances are your remote system is not allowing X11 forwarding. You may need to restart sshd after editing the config file.
> Then I
> export $DISPLAY=":0.0" and it will display the applications at the remote
> location,
Yes, that is expected.
> but not here. I am sure this is something trivial, but I don't know what it
> is...
http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ#sshXforwardingdebugging