Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-10-2008, 11:31 PM   #1
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Rep: Reputation: 15
NS2 Error

Hello Friends

We are using Redhat Linux Advanced Server 3.0. And also I have installed NS-2(Network Simulator-2) in this server. All the client machines are loaded in Windows 2000 Professional. All the users working Linux C, C++ using Telnet. Now we should use NS-2 in windows machine using putty software.

The ns command is working properly. But nam command is not working properly. “Error:Couldn’t Display” Error message is displayed.

In Windows Machine using Putty Software .

root@localchost admin# ns
“ This is command is working fine. But the nam commad is not working properly.

root@localhost admin# nam

Xlib: connection to "localhost:0.0" refused by server
Xlib: No protocol specified

nam: couldn't connect to display "localhost:0.0"

How to view and run the linux GUI application in windows machine.

Please help me.
Old 02-11-2008, 12:33 AM   #2
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Ubuntu, RedHat, SuSe, Debian, Slax
Posts: 102

Rep: Reputation: 15
Originally Posted by ajkannan83 View Post
How to view and run the linux GUI application in windows machine.
If I understand Your problem correctly, You want to be able to view graphical applications on Your Windows desktop, started on a Linux machine to which You are connected via putty.

Then You need an X Window server on Your windows machine and You need to run putty with X-tunnelling enabled.

For X window server I use Xming. For putty, enable X11-forwarding under Categories-> SSH -> Tunnels-

Hope it helps.

If the problem is local, for example if You su to root, from a normal user account, there may be rights issues with displaying applications. But You can use the same approach, instead of doing su - for example, You can do ssh -X root@localhost (enabling X11-forwarding). If root is allowed ssh-access that is. And that You really need to be root.

Or You can fiddle with the X display/rights settings, xhost or something.


Last edited by lakris; 02-11-2008 at 12:35 AM.


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
NS2 snapshot install error : tk8.4 sn68 Linux - Desktop 15 07-22-2014 06:53 AM
NS2.26/TCP installation error? japz20 Linux - Newbie 6 01-16-2013 04:27 AM
ns2 md_imranullah LQ Suggestions & Feedback 2 01-25-2008 03:01 PM
Ns2 ConfusedMonkey Linux - Software 3 10-05-2005 12:32 PM
problem with NS2 cain_eve Programming 1 04-17-2005 04:32 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 PM.

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