LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 02: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, 02:23 PM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
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, 02: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, 02:45 PM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
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 02:47 PM.
 
Old 12-13-2004, 02: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, 02:53 PM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
well... I guess that's because the ssh client (or telnet client) is enabling X forward by default.
 
Old 12-13-2004, 02: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, 02:57 PM   #8
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
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, 02: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


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


All times are GMT -5. The time now is 02:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration