LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-22-2005, 07:54 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
how to export the display


when i try to export the display to remote system...

[staff@Simlab-node4 staff]$ export DISPLAY=10.255.240.105
[staff@Simlab-node4 staff]$ k3b
k3b: cannot connect to X server 10.255.240.105
[staff@Simlab-node4 staff]$ mozilla
[staff@Simlab-node4 staff]$ konqueror
konqueror: cannot connect to X server 10.255.240.105
[staff@Simlab-node4 staff]$

why this is happening...

how to export this in to remote system...

please help me..
 
Old 03-22-2005, 08:04 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Erg, been a while since I've done this, normally just use ssh.

[jhill@machine1]# export DISPLAY=machine2:0.0
[jhill@machine2]# xhost + machine1
[jhill@machine1]# xterm

use xterm to test with, it's a small footprint app, doesn't require a lot of bandwidth. Anyway, machine1 and 2 are seperate windows, etc. If you use ssh, you should only have to export the DISPLAY, make sure your sshd config has X turned on and you're good to go.
 
Old 03-22-2005, 08:05 AM   #3
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i can not display in remote system like this...........


[staff@Simlab-node5 staff]$ konqueror &
[1] 3588
[staff@Simlab-node5 staff]$ Xlib: connection to "10.255.240.105:0.0" refused by server
Xlib: No protocol specified

konqueror: cannot connect to X server 10.255.240.105:0.0
 
Old 03-22-2005, 08:11 AM   #4
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i want run my system apps in to remote system...

so the display will be remote..
 
Old 03-22-2005, 08:13 AM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i mean
displaying local applications on my remote workstation...
 
Old 03-22-2005, 08:19 AM   #6
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Then swap around what I have, but you'll have to know what your DISPLAY:x.x is for your remote workstation.
 
Old 03-22-2005, 11:21 AM   #7
Intimidator
Member
 
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15
firefox -display host:0.0

(in X terminal) Run firefox on the current machine and direct the output to machine named "host" display 0 screen 0. Your current machine must have a permission to display on the machine "host" (typically given by executing the command xhost current_machine_name in the xterminal of the machine host.

other X-windows program can be run remotely the same way
 
Old 03-23-2005, 06:24 AM   #8
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
hello sir this is the ouput...........


[staff@Simlab-node5 staff]$ firefox -display 10.255.240.104:0.0
bash: firefox: command not found
[staff@Simlab-node5 staff]$ k3b -display 10.255.240.104:0.0
Xlib: connection to "10.255.240.104:0.0" refused by server
Xlib: No protocol specified

k3b: cannot connect to X server 10.255.240.104:0.0
[staff@Simlab-node5 staff]$ xhost 10.255.240.105
10.255.240.105 being added to access control list
[staff@Simlab-node5 staff]$ k3b -display 10.255.240.104:0.0
Xlib: connection to "10.255.240.104:0.0" refused by server
Xlib: No protocol specified

k3b: cannot connect to X server 10.255.240.104:0.0
[staff@Simlab-node5 staff]$
 
Old 03-23-2005, 07:42 AM   #9
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
I have tried what Intimidator has said, but that did not work.

What I did later is

#ssh ip -X
#export DISPLAY=:0.0
#xloadimage test.jpg

-Prasanta
 
Old 03-23-2005, 08:07 AM   #10
Intimidator
Member
 
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15
xhost current_machine_name

U should run the above command on the remote host(10.255.240.104 in u r eg.) but not on the current machine.Read my post again.As far as the firefox problem is concerned I think firefox is not installed in u r pc or it's not in the PATH variable.

hey prasanta,

The question is about exporting the display _TO_ a remote machine
and not exporting the display _FROM_ the remote machine.Hope i have
made myself and the question clear.

Let me know if this is not what u people were thinking
 
Old 03-23-2005, 08:20 AM   #11
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
sir i can understand ur solution.......where to change the permission because the errror is.....


[staff@Simlab-node5 staff]$ xhost 10.255.240.105
10.255.240.105 being added to access control list
[staff@Simlab-node5 staff]$ k3b -display 10.255.240.104:0.0
Xlib: connection to "10.255.240.104:0.0" refused by server
Xlib: No protocol specified

k3b: cannot connect to X server 10.255.240.104:0.0
[staff@Simlab-node5 staff]$



and should i give the IP address for "host" or hostname..........


both systems are having k3b........
 
Old 03-23-2005, 08:53 AM   #12
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Hey Intimidator I even tried out what you said. But didn;t worked again. When I give
#xhost host
host being added to access control list
#mozilla -display host:0.0
it opens mozilla in the same pc from where I logged in.

But the comand that I tried, it opened the image (in my previuos post) in the other PC. What I did was ssh to the machine. If I don't use the export command openig mozilla will open in the same computer screen from where I logged in. If I use the export command it will open the image on the screen to the machine I logged in.

-Prasanta
 
Old 03-23-2005, 09:17 AM   #13
Intimidator
Member
 
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15
I will try to explain the things in a more clear way

we have got 2 pcs
Machine1 -- u r currently working on this computer
Machine2 -- remote machine to which u want to export display

In u r case

Machine1>ssh username@Machine2
Passwd: ********
u will dropped in to the command prompt of the second Machine

Machine2> xhost Machine1
By the above command u r allowing Machine1 to export display to Machine2

Machine2> logout

Then u will be in the command prompt of Machine1
Now do

Machine1> k3b -display Machine2:0.0

Then u will see K3b display on the Machine2

Hope this helps
 
Old 03-24-2005, 12:56 AM   #14
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
hello sir i can not ........


[staff@Simlab-node4 staff]$ ssh staff@10.255.240.105
staff@10.255.240.105's password:
[staff@Simlab-node5 staff]$ xhost 10.255.240.104
10.255.240.104 being added to access control list
[staff@Simlab-node5 staff]$


[staff@Simlab-node4 staff]$ k3b -display 10.255.240.105:0.0
Xlib: connection to "10.255.240.105:0.0" refused by server
Xlib: No protocol specified

k3b: cannot connect to X server 10.255.240.105:0.0
[staff@Simlab-node4 staff]$

so there is extra change required ..........please help me what is wrong.........
 
Old 03-24-2005, 02:13 AM   #15
Intimidator
Member
 
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15
Then it might be problem with the network settings
I think the problem will be with firewall Try disabling
firewall on both ends

As root run

service iptables stop

on both PCs

Post u r result .I will try to explore more on this
 
  


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
How to export HP-UX display to linux box xgreen Other *NIX 5 07-06-2007 08:58 AM
Trying to export display automatically in Linux ? lab123 Linux - Networking 0 09-29-2005 08:33 AM
Export Display From Sun -> Red Hat norbi99 Linux - Networking 1 11-14-2004 09:16 AM
can't export my display to another systems jaybrus LinuxQuestions.org Member Intro 2 05-15-2004 04:29 AM
can't export my display to another systems jaybrus Linux - General 1 05-14-2004 03:25 PM

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

All times are GMT -5. The time now is 10:02 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