LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2011, 12:44 AM   #1
silverDan
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Rep: Reputation: Disabled
'Nedit : Can't open display' message in ssh sever


hellow

I have a problem as u see the title..
I have to open the nedit in ssh server but it's not open at all
Also i know some commandS forexample.. 'echo DISPLAY=IP:0.0 or export DISPLAY=IP:0.0
But it's useless things

Please help me another way to solve this problem
I'm using redhat enterprise 6.1
 
Old 08-31-2011, 12:52 AM   #2
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Did you check if X server is listening on TCP port 5900?
 
Old 08-31-2011, 12:58 AM   #3
silverDan
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Maynot.. but how check the X server?

I'm very new this software
 
Old 08-31-2011, 12:59 AM   #4
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Can you post the output of
Quote:
netstat -antp
here?
 
Old 08-31-2011, 01:03 AM   #5
silverDan
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
I entered your command..

what should i check this point?
 
Old 08-31-2011, 01:19 AM   #6
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Look for a service listening on TCP port 5900
 
Old 08-31-2011, 01:27 AM   #7
silverDan
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
I found that but it didn't exist
 
Old 08-31-2011, 01:29 AM   #8
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
How are you connecting to the machine? Did you do an SSH -X <ip>?
 
Old 08-31-2011, 01:31 AM   #9
silverDan
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
I just connect server this way like.. ssh name@IP
 
Old 08-31-2011, 01:32 AM   #10
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Do
Quote:
ssh -X name@ip
and execute nedit.
 
Old 08-31-2011, 01:36 AM   #11
silverDan
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
I did it but nothing changed. just looking same messages
 
Old 08-31-2011, 01:40 AM   #12
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
After you did ssh -X, check for netstat output as mentioned before.

You should also have an X server on your machine. What machine are you connecting from? Windows or Linux?
 
Old 08-31-2011, 01:48 AM   #13
silverDan
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
I'm connecting linux to linux

and as u mentioned about netstat command, did it on local or server?
 
Old 08-31-2011, 01:52 AM   #14
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Hi -

Netstat is on the remote machine to which you connect. This is also applicable on the local machine. You need X running on local machine and remote machine to listen on a port.

After you did "ssh -X", what was the DISPLAY environ holding?
 
1 members found this post helpful.
Old 08-31-2011, 02:01 AM   #15
silverDan
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
I input that command, but it just output 'usage: ssh [~~]' maybe there's not exist -X command
 
  


Reply



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
Locale or run level - cannot open display message konzo Linux - Newbie 5 01-14-2010 04:32 PM
can not open display through ssh SuperDude123 Linux - Newbie 3 03-13-2009 01:23 AM
How to display welcome message in ssh minil Programming 1 07-08-2005 01:22 AM
Use NEdit to save file over SSH h8trix Linux - General 2 02-26-2005 03:28 PM
Can't open file in nedit ICO Linux - Software 8 03-07-2004 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:36 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration