image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old May 10th, 2002, 10:50 AM
Registered User
 
Join Date: Mar 2002
Location: Kyoto, Japan
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Fusengammu is on a distinguished road
Running remote X Win apps on OS X

I have OS X running in my apt, and I want to run an X app from school, so I start OroborOSX on my machine and type

xhost <remote machine name>

on my terminal, and xhost adds the remote machine to the access control list.

Then I set the DISPLAY variable on the remote machine to the my <IP address:0.0> which I get from Network Utility. When I try to run something like "xterm" on the remote machine, it never ends up being shown.

I suspect this is because I am on a cable modem AND a router, because my roommate and I are sharing the connection. I remember way back when running through a SLIP connection and being able to display remote X Win apps(very very slowly) on my Linux box at home, and would love to be able to do this again. Anyone know how??
Reply With Quote
  #2  
Old May 10th, 2002, 10:53 AM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
if you are behind a NAT firewall router (which you almost certainly are, if you are sharing a home connection), then you need to get your router to forward port 6000 to your machine. in general, if you want to use any type of server from behind a NAT firewall, you will need to get the router to forward the port that the server uses. X uses 6000
Reply With Quote
  #3  
Old May 10th, 2002, 11:52 AM
Registered User
 
Join Date: Mar 2002
Location: Kyoto, Japan
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Fusengammu is on a distinguished road
>> if you are behind a NAT firewall router (which you almost certainly are, if you are sharing a home connection), then you need to get your router to forward port 6000 to your machine.


Okay, I looked through the docs for my router, and it does say that it is a NAT firewall router. But I couldn't find anything about how to forward port 6000 to my machine. Do I do that through OS X's Network Control Panel? The "Proxies" tab says something about SOCKS firewall and also something about a port. Also, I read through the documents and it says my IP address should be set to 192.168.xxx.xxx, which means that if I type this in as my DISPLAY variable on the remote machine, it probably means nothing, because there are thousands of people with the same IP address I have since that is what the router hands out... Do you what <IP address>:0.0 I should be giving as my DISPLAY??

thanx
Reply With Quote
  #4  
Old May 10th, 2002, 12:21 PM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
what kind of router do you have? if it is one of those generic home routers from linksys or netgear, then you access its config through a webbrowser.

so first, figure out what its IP address is. maybe it will be 192.168.0.1, or something. that will be in the documentation, along with a login. so type that IP in your browser, and login. then, somewhere in the configuration, it will give you an option to specify a port, and then specify what host to forward it to. here you will put 6000 for the port, and your local machines IP for the host to forward to. you can find your local machines IP by typing ifconfig en0 at the command line. (there are probably a number of ways to find your local IP, and it seems like you have one already?)

save the config, and login. it may require you to restart the router, it may not.

now, login to the remote host, and set the display to myIP:0.0

myIP that i specify here is not your machines local IP, but your network IP on the Internet. that is how traffic on the internet finds you. it is the IP that your router presents to the internet, it masks your local ip and translates it to this global IP. your routers config might be able to tell you what this IP or hostname is, but at this point the easiest way is to type this on the command line of the remote host (which has the x client that you want to use)

either type:
$ who am i
or
$ echo $REMOTEHOST

i have found that the first one will tell you your Internet IP (actually fully qualified domainname, but it doesn t matter which you use) in parentheses after your name. this one works on solaris or linux.

some systems don t give that information in respone to who am i. then i can get it from echo $REMOTEHOST, only if i am using the enhanced tenex c shell (tcsh). bash does not set this environment variable. i ll wager there is a way to find the info from bash too. anyone can tell me what this is?

ok so this should work if you can find all these infos. let us know

BTW, i am also physicist in training. way to go us!
Reply With Quote
  #5  
Old May 10th, 2002, 01:48 PM
Registered User
 
Join Date: Mar 2002
Location: Kyoto, Japan
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Fusengammu is on a distinguished road
Ahh, so that's what the screen shot of the web browser in the doc was. I forgot what brand my router is. But thanks for the tips. Now I think I know what to do.

Cool! OS X is great for physics BTW. In fact the reason why I wanted the X DISPLAY was so I can make sure my hmwk for my "math for physicists" class displayed correctly in postscript on the SUN servers at school so that I could print it and turn it in. Too bad we're doing stat right now Its my least favorite area of math because its BORING. Oh well, can't complain.

The fact that OS X has all the programming tools AND great media support just kicks ass. 5, 6 years ago I couldn't imagine being able to use perl, C, gnuplot and stuff + use something as cool as iTunes to listen to internet radio while I work, play MacMAME and RockNES (mmm 80s video games) when I'm bored.

thanx for the tips. i'll try them out when i get home
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apps running from cloned drive? Andy Hughes Mac OS X System & Mac Software 0 September 23rd, 2003 09:56 PM
Running Unix apps in OS X? loom001 Unix & X11 1 March 23rd, 2003 04:35 AM
Xwindows s/w: running Darwin apps on Windows? jmt922e Unix & X11 1 January 8th, 2003 02:55 PM
Remote Desktop Connection (Windows client) legacyb4 Mac OS X System & Mac Software 1 August 6th, 2002 03:01 PM
Thoughts about UNIX apps on OSX? mczolton Apple News, Rumors & Discussion 1 October 19th, 2000 03:06 PM


All times are GMT -5. The time now is 04:41 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.