LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-10-2008, 10:31 PM   #1
ajkannan83
Member
 
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-10-2008, 11:33 PM   #2
lakris
Member
 
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Ubuntu, RedHat, SuSe, Debian, Slax
Posts: 102

Rep: Reputation: 15
Quote:
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.

/Lakris

Last edited by lakris; 02-10-2008 at 11:35 PM.
 
  


Reply


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 05:53 AM
NS2.26/TCP installation error? japz20 Linux - Newbie 6 01-16-2013 03:27 AM
ns2 md_imranullah LQ Suggestions & Feedback 2 01-25-2008 02:01 PM
Ns2 ConfusedMonkey Linux - Software 3 10-05-2005 11:32 AM
problem with NS2 cain_eve Programming 1 04-17-2005 03:32 PM


All times are GMT -5. The time now is 05:41 PM.

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