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.. |
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. |
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 |
i want run my system apps in to remote system...
so the display will be remote.. |
i mean
displaying local applications on my remote workstation... |
Then swap around what I have, but you'll have to know what your DISPLAY:x.x is for your remote workstation.
|
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 :) |
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]$ |
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 |
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 :) |
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........ |
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 |
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 :) |
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......... |
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. |