running remote x programs in os x

Jump to First Reply
Posted:
in Genius Bar edited January 2014
Ok so I have downloaded and installed x11 from the Apple web site. On my Sun server I have exported my display to be that of my laptop (192.0.0.10:0.0). But when I run xterm, or any x app on the server it just hangs. Works fine for my w2k desktop with Reflections. Is there something that needs to be enabled in os X before connections are accepted. I have tried playing with the x11 prefs to no avail.



Thanks in advance.

Comments

  • Reply 1 of 6
    thuh freakthuh freak Posts: 2,664member
    well, you have to xhost the machine which is running the x11 server (the one where the video shows up). drop into terminal, and type "xhost ip" (make sure that DISPLAY is set correctly on that machine). (the x11 server is the computer where you want the programs to be visible, not necessarily from where you run them.)



    now, when you say you try to run these programs, from which computer are you spawning them? you mentioned possibly 4 computers, a SUN, a laptop, a mac and a windows box. is the LT actually the mac or win?



    here's an example of how it works for me. on my mac, i 'setenv DISPLAY :0.0' then 'xhost comp1'. on comp1, i 'setenv macip:0.0' then 'xterm&' (or other x11 program).
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 6
    wmfwmf Posts: 1,164member
    A nice thing about using ssh is that it sets up all that stuff automatically. So you might try opening an xterm on your Mac and then sshing to your other machines.
     0Likes 0Dislikes 0Informatives
  • Reply 3 of 6
    gardnerjgardnerj Posts: 167member
    i wasn't doing xhost on the pb that before but i am now ...

    display on pb set to :0.0

    xhost 192.0.0.2 (on pb)

    display on sun box set to 192.0.0.10:0.0



    forget the windows machine i just used that to test the sun box was set up correctly. the connection is purely between my pb and sun server. programs should be running on the sun box with the display being pushed back to my pb.



    followed your example which i agree should work but the xterm/xclock/xapp... hangs and doesn't show up on the pb. it shouldn't make any difference but i'm doing this through an airport.
     0Likes 0Dislikes 0Informatives
  • Reply 4 of 6
    gardnerjgardnerj Posts: 167member
    When I turn off the firewall on the the pb. hey presto it works but OSX won't let me edit the settings. Is there a manual way of doing this?
     0Likes 0Dislikes 0Informatives
  • Reply 5 of 6
    thuh freakthuh freak Posts: 2,664member
    Quote:

    Originally posted by gardnerj

    When I turn off the firewall on the the pb. hey presto it works but OSX won't let me edit the settings. Is there a manual way of doing this?



    in sys prefs, you can add new firewall settings, and edit old ones. what you need, to let the x11 connection run through, is to open up port 5900 (for display 0.0, 5901 for 1.0, etc). i think its tcp and udp.
     0Likes 0Dislikes 0Informatives
  • Reply 6 of 6
    gardnerjgardnerj Posts: 167member
    I checked /etc/services on the pb and the x11 entries were hashed out. By default it appears to use port 6000. Once i had unhashed them, rebooted and added port 6000 to the firewall it worked. Thanks for your help. Off to x things up ....
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.