 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

31st January 2007, 03:59 PM
|
|
Registered User
|
|
Join Date: Jan 2007
Location: Houston, Texas
Posts: 14

|
|
setenv DISPLAY does not work.
I bought a computer two weeks ago and installed Fedora for display
purpose. During fedora installation, I select DHCP for IP address. In order to run the software installed at school, I detect my IP address from website www.lawrencegoetz.com/programs/ipinfo/. I ssh to the computer of my school and run
setenv DISPLAY 72.xxx.xxx.xxx:0.0 (I forget my IP address).
Then I test it with command xterm. But the terminal did not appear on my screen. No error mesage. So the terminal must appear on someone's computer.
My system:
CPU : AMD 64 x2
RAM : 2GB
Hard drive 1 : windows xp media center
Hard drive 2 : fedora core 6
Any suggestion for running xterm?
Thanks a lot.
|

31st January 2007, 06:03 PM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Central Wyoming
Posts: 637

|
|
|
You need to look at the bigger picture.
School: has a few public IPs in the 72.x.x.x range.
Since you went to a public web site to find your IP, the public IP is what it reported to you. However, that's not the IP addy of your Fedora PC - just the public IP of the school's router.
PCs in the school - if the school's IT dept has half a brain - sit behind a NAT router, they're assigned non-routeable IPs by their in-house DHCP server.
If you go back to that Fedora box and run ipconfig, I bet you find it's actual IP addy is something like 192.168.0.x or 10.0.0.x. or one of the other reserved, non-routable IP blocks.
What you'll have to do is setup port forwarding on the router that has that 72.x.x.x addy - so it'll forward port 22 traffic to the box on the LAN with Fedora on it.
As it is, you're trying to 'shell' into their router, not your Fedora box.
Unless you're part of the school's IT dept or know how to bribe them real well, good luck on getting 'em to forward a port for ya.
EDIT:
Crap - re-reading your question it seems that I've totally misunderstood you here.
To use xterm use this command:
ssh -X <host IP>
Hope that's better.
Last edited by Zotter; 31st January 2007 at 06:05 PM.
|

31st January 2007, 06:15 PM
|
 |
Registered User
|
|
Join Date: Feb 2005
Location: Lansing, Mi
Age: 28
Posts: 2,222

|
|
|
you need to use the -X option is ssh to enable X forwarding
edit : sorry didnt see zotters edit, looks like he beat me
|

31st January 2007, 08:04 PM
|
|
Registered User
|
|
Join Date: Jan 2007
Location: Houston, Texas
Posts: 14

|
|
|
Thanks a lot, Zotters and Nickisgod1. I think "ssh -X <host IP>" is what I need. I will try it this evening at home.
"School: has a few public IPs in the 72.x.x.x range.
Since you went to a public web site to find your IP, the public IP is what it reported to you. However, that's not the IP addy of your Fedora PC - just the public IP of the school's router."
Zotters, your edit is correct. 72.xxx.xxx.xxx is the IP address of my fedora PC detected by a public website. Probably I am wrong, from the name of DHCP, my fedora PC will be assigned a real/physicsl IP by the server of IPS every time. How can I know the real/physical IP of my computer, even it is different every time I turn on my computer?
May God bless you.
|

31st January 2007, 08:27 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304

|
|
|
A couple of notes:
1) setenv is C-shell syntax. Are you running csh?
2) ssh will set your display variable for you if it encounters the correct environment to fowards X connections.
|

1st February 2007, 03:41 AM
|
|
Registered User
|
|
Join Date: Jan 2007
Location: Houston, Texas
Posts: 14

|
|
|
ssh -X host_ip
works. Thank you all.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting 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
|
|
|
Current GMT-time: 04:54 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|