LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to export the display (https://www.linuxquestions.org/questions/linux-networking-3/how-to-export-the-display-304667/)

bruse 03-22-2005 07:54 AM

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..

Technoslave 03-22-2005 08:04 AM

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.

bruse 03-22-2005 08:05 AM

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

bruse 03-22-2005 08:11 AM

i want run my system apps in to remote system...

so the display will be remote..

bruse 03-22-2005 08:13 AM

i mean
displaying local applications on my remote workstation...

Technoslave 03-22-2005 08:19 AM

Then swap around what I have, but you'll have to know what your DISPLAY:x.x is for your remote workstation.

Intimidator 03-22-2005 11:21 AM

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 :)

bruse 03-23-2005 06:24 AM

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]$

prasanta 03-23-2005 07:42 AM

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

Intimidator 03-23-2005 08:07 AM

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 :)

bruse 03-23-2005 08:20 AM

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........

prasanta 03-23-2005 08:53 AM

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

Intimidator 03-23-2005 09:17 AM

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 :)

bruse 03-24-2005 12:56 AM

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.........

Intimidator 03-24-2005 02:13 AM

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 :)


All times are GMT -5. The time now is 02:16 AM.