LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 04-07-2008, 06:42 PM   #1
rustyray
LQ Newbie
 
Registered: Jan 2008
Location: Ridgecrest, Ca
Posts: 4

Rep: Reputation: 0
Question nedit - problems


Ok we all know that nedit is not the best editor but I have a client that uses it and I cannot get it to work with ssh2.
I get the error " cannot open display"
I have tried the following (using tcsh)
setenv DISPLAY=<hostname>:0.0
nedit -d <hostname>:0.0
I have set the xhost + so all clients can access that system (tmp setting reset after failure)
Any ideas ?
BTW this is only happening on 1 of the 6 systems we have.
We are using RH Enterprise 4.X AS.
 
Old 04-07-2008, 08:13 PM   #2
networkr
LQ Newbie
 
Registered: Dec 2003
Location: Alpharetta, GA
Distribution: Debian
Posts: 12

Rep: Reputation: 1
Nedit over SSH

I do this all the time with Cygwin on an XP machine.

Things to ensure are that X is running on the local machine. X is not part of Windows, so I use the Cygwin/X package. To do that from WinXP/Cygwin, I do this:

"startxwin.bat" from a bash shell in Cygwin.

I get this....

$ startxwin.bat
startxwin.bat - Starting on Windows NT/2000/XP/2003

Then an xterm also launches where I can do the following:

From the machine I'm sitting in front of (WinXP box) I do this in the xterm:

at Cygwin xterm prompt, type "xhost +" (to enable all hosts XDMCP)
ssh to Linux machine I want to run the X application from
at Linux prompt, type "export DISPLAY=<hostname>:0.0"
then I can just type "nedit" and nedit will come up.

P.S. All the stuff from the xterm onward also works from a Unix or other Linux client in whatever X Terminal program you're using (Gnome Terminal or Konsole), exact same syntax. Also, any program that runs in the windowing environment that you can launch from the command line are also candidates for the same type of use.

Last edited by networkr; 04-07-2008 at 08:21 PM. Reason: adding some addl info
 
Old 04-08-2008, 12:45 PM   #3
rustyray
LQ Newbie
 
Registered: Jan 2008
Location: Ridgecrest, Ca
Posts: 4

Original Poster
Rep: Reputation: 0
Nedit over SSH

First let me say thank you for the reply, but I tried what you suggested and I still cannot get it to work. I think I should add that we are trying this server to server and the other 5 systems (RHL Enterprise 4.X server)do not have this issue.
I have matched the settings on the problem child that the other systems have, but it still does not want to pop up the nedit window on the system I am connected from.
If I go to one of the other systems or even the problem system and ssh to one of the other systems it will work, but only when I ssh to that 1 system will it not work.
I even tried emacs and it gives me that error "set xhost + X.X.X.X or try setenv DISPLAY=hostname:0.0.
None of this works.. I am beginning to think I may have to reinstall the nedit software or even reinstall RHL on that system (which is not a good answer either). If you come up with some more ideas let me know I am willing to try almost anything at this point.
 
Old 04-08-2008, 01:13 PM   #4
networkr
LQ Newbie
 
Registered: Dec 2003
Location: Alpharetta, GA
Distribution: Debian
Posts: 12

Rep: Reputation: 1
The only other things I can think of is that your XDMCP is not enabled on that one RHEL machine or there's a firewall up, but there are a number of things to check outlined in various faqs and howtos... Here's a few links fyi. Happy reading.

http://www.faqs.org/docs/Linux-HOWTO/XDMCP-HOWTO.html
http://www.ibiblio.org/pub/Linux/doc...DMCP-HOWTO.pdf
http://www.starnet.com/xwin32kb/How_..._Unix_machine/
http://www.gnome.org/projects/gdm/do.../overview.html
http://www.faqs.org/docs/Linux-mini/XDM-Xterm.html
 
Old 04-09-2008, 02:45 PM   #5
rustyray
LQ Newbie
 
Registered: Jan 2008
Location: Ridgecrest, Ca
Posts: 4

Original Poster
Rep: Reputation: 0
nedit

Thanks. Looks like I have a lot of reading in front of me...
 
  


Reply

Tags
display, xhost


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with nedit Amyaayaa Linux - Kernel 1 04-06-2008 01:47 AM
Nedit Doyley Linux - Newbie 1 05-26-2007 10:35 AM
Nedit: Improvements? Replacements flamesrock Linux - Software 5 11-10-2004 03:09 PM
NEdit macros theonebeyond Linux - Software 0 09-10-2004 02:59 AM
Can't open file in nedit ICO Linux - Software 8 03-07-2004 08:48 AM


All times are GMT -5. The time now is 12:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration