Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31st January 2007, 03:59 PM
fedora1968 Offline
Registered User
 
Join Date: Jan 2007
Location: Houston, Texas
Posts: 14
Thumbs down 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.
Reply With Quote
  #2  
Old 31st January 2007, 06:03 PM
Zotter's Avatar
Zotter Offline
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.
__________________
If it ain't broken - you're not really trying....
Registered Linux user #227845

Last edited by Zotter; 31st January 2007 at 06:05 PM.
Reply With Quote
  #3  
Old 31st January 2007, 06:15 PM
nick.stumpos's Avatar
nick.stumpos Offline
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
__________________
As always
Love, Life, Loyalty, Wisdom, Knowledge, And Understanding
FC6: Common Questions answered
Reply With Quote
  #4  
Old 31st January 2007, 08:04 PM
fedora1968 Offline
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.
Reply With Quote
  #5  
Old 31st January 2007, 08:27 PM
brunson Offline
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.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
  #6  
Old 1st February 2007, 03:41 AM
fedora1968 Offline
Registered User
 
Join Date: Jan 2007
Location: Houston, Texas
Posts: 14
ssh -X host_ip
works. Thank you all.
Reply With Quote
Reply

Tags
display, setenv, work

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
setenv TERM James Board Using Fedora 4 6th November 2008 07:37 PM
setenv/export DISPLAY help zackiv31 Using Fedora 0 1st November 2006 12:24 AM
cannot use setenv command yg8p2 Using Fedora 4 11th October 2005 10:03 AM


Current GMT-time: 04:54 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat