 |
 |
XWindows Remote Viewing
|
 |
|
 |
|
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status:
Offline
|
|
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
|
|
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...
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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...
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|