LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2004, 01:12 PM   #1
gopalkasat
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Rep: Reputation: 0
Unhappy Error: can't open display


hi

I have PCQ-Linux 2004 installed on my desktop computer. I am trying to connect to a Unix server X-window session from my desktop. I am using telnet. I am able to login in the server but when i try to get the display of the server on my desktop i get the message like

Error: can't open display

can anyone help me for this

Its urgent
 
Old 12-13-2004, 01:23 PM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
You have to set the DISPLAY variable in the client box... and add the client host to the X server's allowed hosts:

X Server Side:
Code:
xhost + clientIP
Client side:
Code:
export DISPLAY=XServerIP:0.0
mozilla
(in case you want to run mozilla)
 
Old 12-13-2004, 01:42 PM   #3
gopalkasat
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Error: can't open display

Thanks eantoranz


I can you pls clear some of my doubts.

with X Server----do you mean the server to with i am logging in?

and

with Client------do you mean the desktop on which i want the display?


Well i will agian Clear my question.

I have PCQ Linux 2004 Installed on my Desktop Computer. We have a Unix Server Installed in our institution. I am logging in the Unix Server through telnet from my desktop (through pcq linux).
There is no problem with the telnet. Its fine. Now i want to run the Fluent software from the server. and i want the software display interface on my desktop.

so now can u pls explore ur reply
pls let me know in detail., i am not very good at linux


gopal
 
Old 12-13-2004, 01:45 PM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Sure... in that case the client (the X client) is your Unix server. The X server will be your desktop computer.

The X is a network service itself. You will run one application in some host (your Unix server) and it will try to use an X server (your desktop computer) to display the visual parts.

In other words.... the X client is the host that ACTUALLY RUNS the process and the X server is the hosts that actually DISPLAYS the visual part.

Get the concept?

Last edited by eantoranz; 12-13-2004 at 01:47 PM.
 
Old 12-13-2004, 01:51 PM   #5
gopalkasat
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Error: can't open display

ya thanks a lot

well but one more thing i want to ask you. when i am doing the same thing from a red hat linux box then its getting fine and there is no error. I don't have to give any such command which you have mentioned for red hat.

for red hat i am giving

xhost +
DISPLAY='MY DESKOTP IP ADDRESS:0"

and then i telnet to the unix server and everything works fine

why so? why the error is comming in pcq linux?


can you pls explain me?
 
Old 12-13-2004, 01:53 PM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
well... I guess that's because the ssh client (or telnet client) is enabling X forward by default.
 
Old 12-13-2004, 01:54 PM   #7
gopalkasat
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Error: can't open display

so can i disable the x forwarding on pcq linux
 
Old 12-13-2004, 01:57 PM   #8
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
I guess so.... but I don't know how..... start another thread. (maybe it can be done with one option of your telnet-ssh client (or maybe if you change its default values).
 
Old 12-13-2004, 01:59 PM   #9
gopalkasat
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Original Poster
Rep: Reputation: 0
ok thanks any way

i will try it.........................
 
  


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
Error: Can't open display (X-windows & apache) hsingams Linux - General 5 08-08-2005 08:34 PM
"Can't open display" error when try to use a program remote heande Linux - Newbie 2 03-11-2005 10:13 AM
Suse 9.1 Error: Can't open display dan7 General 5 07-23-2004 10:59 AM
wdb Error: Can't open display: 172.16.1.28:0 murugesan Linux - Networking 4 02-19-2004 04:01 AM
Could not open display error reyemarr Linux - General 14 12-06-2003 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:55 PM.

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