Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > XWindows Remote Viewing

XWindows Remote Viewing
Thread Tools
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status: Offline
Reply With Quote
Apr 26, 2004, 09:59 AM
 
i'm looking to use the lab machine from uni at home on my iBook but i'm unsure of what i need to do to set this up could some one point me to a tutorial or even guide me thru this if they have the time. it would be really cool if you could!

thanks in advance.
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."

-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.
     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Apr 26, 2004, 10:30 AM
 
Originally posted by ntsc:
i'm looking to use the lab machine from uni at home on my iBook but i'm unsure of what i need to do to set this up could some one point me to a tutorial or even guide me thru this if they have the time. it would be really cool if you could!
It is really quite simple:

1. If you are running Panther... install the Xcode package if you haven't already.

2. Open /Applications/Utilities/X11.app

3. In the xterminal window type:

ssh userid@somehost.youruni.edu

4. Once logged in... just enter the name of the X based application that you want to run on the remote machine. It will display locally.

5. If it doesn't work you may have to reconfigure your firewall.

This will not work well over a dial-up connection... you need broadband.
-DU-...etc...
     
ntsc  (op)
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status: Offline
Reply With Quote
Apr 26, 2004, 11:31 AM
 
thanks for the quick response, i did exactly what you suggest but the terminal spits out the following message and doesn't open the app

(gaim:11426): Gdk-CRITICAL **: file gdkdisplay-x11.c: line 315 (gdk_display_get_name): assertion `GDK_IS_DISPLAY (display)' failed

** (gaim:11426): WARNING **: cannot open display: unset

[1]+ Exit 1 gaim

i assume that i have to configure something? not sure how to go about this.
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."

-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Apr 26, 2004, 12:10 PM
 
Originally posted by ntsc:
thanks for the quick response, i did exactly what you suggest but the terminal spits out the following message and doesn't open the app

(gaim:11426): Gdk-CRITICAL **: file gdkdisplay-x11.c: line 315 (gdk_display_get_name): assertion `GDK_IS_DISPLAY (display)' failed

** (gaim:11426): WARNING **: cannot open display: unset

[1]+ Exit 1 gaim

i assume that i have to configure something? not sure how to go about this.

1) Log into the remote machine
2) Type "who | grep username", replacing username with your username on the remote host. The IP address of your local machine is on that line.
3) If your remote shell is Bash, Korn, or Bourne shell, type this:


DISPLAY="ip_address:0.0"
export DISPLAY


If your remote shell is csh, or tcsh, type this:


setenv DISPLAY "ip_address:0.0"


In either case, replace ip_address with your IP address from step (2).

4) In a terminal on your local machine type "xhost +"
5) THEN, run your remote program.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Forum Regular
Join Date: May 2001
Status: Offline
Reply With Quote
Apr 27, 2004, 12:11 AM
 
Dont't forget to forward the required ports. Use ssh -X username@box to have ssh automatically forward the X11 ports for you.
If your computer stops responding for a long time, turn it off and then back on. - Microsoft
     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Apr 27, 2004, 11:31 AM
 
Hmmm...

I was trying to figure out why I don't have to go through any of this to get remote X11 working. Like I said in my previous post I just start X11 locally on my Mac, ssh to remote machine (no -X, no export this or that), then just type in the command for the X11 based app that I want to run. Then I looked at the sshd_config files on those remote machines and I have:

X11Forwarding yes

instead of the default "no".

Not sure why Apple has this turned off by default.
-DU-...etc...
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:33 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2