Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NEdit: Can't open display

Status
Not open for further replies.

wstran

MIS
Jul 18, 2002
46
US
Greetings,

I have a Linux server with Redhat Enterprise 4 and two workstations, PC1 with Redhat Linux 9 and PC2 with Redhat Enterprise 4. When I do the following on both of my workstations:

xhost +
ssh PC1 (or PC2)
export DISPLAY=PC1:0.0 (or PC2:0.0)

then I want to load a graphical text editor, e.g. nedit, the PC1 (RH9) displays the nedit screen without any error; however, the PC2 (RHEL4) gives me an error:

nedit: the current locale is utf8 (en_US.UTF-8)
nedit: changed locale to non-utf8 (en_US)
NEdit: Can't open display

It's weird that both ssh to the same Linux server but one works and the other doesn't. I guess there's some more things that I need to do to make the RHEL4 box works. Please help, thanks.
 
Sorry I just found an error in my post:

ssh PC1 (or PC2) should be ssh RHEL4-server
 
Do a "man ssh" to learn about the "-X" or "-x" option. Using that option, you should be able to ssh to the host and NOT have to set the DISPLAY because ssh does that for you.
 
Thanks ZaSter but even I run the ssh -X hostname, I still got the same errors.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top