View previous topic :: View next topic |
Author |
Message |
ursusca Apprentice
Joined: 10 Sep 2008 Posts: 284 Location: Toronto ON, CANADA
|
Posted: Fri Jun 26, 2009 7:34 pm Post subject: [SOLVED] How to export the display |
|
|
Hi everyone,
I use KDE desktop (3.5.10) on my Gentoo computer. I'd like to run remote applications on my computer.
remote computer:
[mike@bearcentos ~]$ DISPLAY=192.168.1.7:0.0; export DISPLAY
[mike@bearcentos ~]$ echo $DISPLAY
192.168.1.7:0.0
my Gentoo computer:
mike@gentoobear ~ $ xhost +192.168.1.2
192.168.1.2 being added to access control list
remote computer:
[mike@bearcentos ~]$ xterm
xterm Xt error: Can't open display: 192.168.1.7:0.0
why this is happening...
What elese do I need to do?
Last edited by ursusca on Sun Jun 28, 2009 7:01 pm; edited 1 time in total |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
Posted: Fri Jun 26, 2009 8:05 pm Post subject: |
|
|
i think you got to much ZERO in here
this is what i'm using for example
Code: | DISPLAY=192.168.1.10:0 xterm & |
works always
you got to remember that X got to be run with accepting connection to it i think by default it's turned off _________________ "bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg
Last edited by tgR10 on Fri Jun 26, 2009 8:07 pm; edited 1 time in total |
|
Back to top |
|
|
Gankfest l33t
Joined: 01 Aug 2007 Posts: 946 Location: Miami Beach, FL
|
Posted: Fri Jun 26, 2009 8:07 pm Post subject: |
|
|
Are you doing this through SS, If not that would be the best way ! _________________ Gankfest™ (>")> ~*
Everyone has to start somewhere, it depends on where you end up that counts! (>")> |
|
Back to top |
|
|
ursusca Apprentice
Joined: 10 Sep 2008 Posts: 284 Location: Toronto ON, CANADA
|
Posted: Fri Jun 26, 2009 8:22 pm Post subject: |
|
|
paradox6996 wrote: | Are you doing this through SS, If not that would be the best way ! |
Do you mean SSH? I log on to remote computer from my gentoo computer throgh SSH. |
|
Back to top |
|
|
ursusca Apprentice
Joined: 10 Sep 2008 Posts: 284 Location: Toronto ON, CANADA
|
Posted: Fri Jun 26, 2009 8:36 pm Post subject: |
|
|
tgR10 wrote: | i think you got to much ZERO in here
this is what i'm using for example
Code: | DISPLAY=192.168.1.10:0 xterm & |
works always
you got to remember that X got to be run with accepting connection to it i think by default it's turned off |
Tell me, please how can I turn on it? |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
|
Back to top |
|
|
ursusca Apprentice
Joined: 10 Sep 2008 Posts: 284 Location: Toronto ON, CANADA
|
Posted: Fri Jun 26, 2009 9:00 pm Post subject: |
|
|
Thankyou, tgR10
I've tried DISPLAY=192.168.1.7:0
It didn't help me
I don't use a firewall. |
|
Back to top |
|
|
Gankfest l33t
Joined: 01 Aug 2007 Posts: 946 Location: Miami Beach, FL
|
Posted: Sat Jun 27, 2009 9:12 pm Post subject: |
|
|
Did you set everything correctly!
http://www.gentoo-wiki.info/OpenSSH/X_forwarding _________________ Gankfest™ (>")> ~*
Everyone has to start somewhere, it depends on where you end up that counts! (>")> |
|
Back to top |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sat Jun 27, 2009 11:15 pm Post subject: |
|
|
ursusca wrote: | paradox6996 wrote: | Are you doing this through SS, If not that would be the best way ! |
Do you mean SSH? I log on to remote computer from my gentoo computer throgh SSH. | ssh -X with sshd allowing X11 forwarding is a good way... it seems you're trying to do it over xdmcp, though. _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
|
ursusca Apprentice
Joined: 10 Sep 2008 Posts: 284 Location: Toronto ON, CANADA
|
Posted: Sun Jun 28, 2009 11:49 am Post subject: |
|
|
I am trying to do it over xdmcp. Not over X11 forwading. |
|
Back to top |
|
|
zixnub n00b
Joined: 27 Dec 2007 Posts: 67 Location: Brasschaat, Belgium
|
Posted: Sun Jun 28, 2009 12:02 pm Post subject: |
|
|
the first 0 in :0.0 is the display nr, the second 0 is the display's screen nr. Usually only one 0 is sufficient, but specifying 0.0 shouldn't hurt. What could be the problem is X rejecting remote connections. This is the default behavior for security reasons. Google how you can start X for remote connections. You also need to specify which clients are allowed to connect to the X server in certain configuration files and/or client's need some form of authentication with the X server.
Maybe this can give some insight:
http://tldp.org/HOWTO/Remote-X-Apps.html#toc9 _________________ https://github.com/udevbe/greenfield
https://github.com/udevbe/westfield |
|
Back to top |
|
|
ursusca Apprentice
Joined: 10 Sep 2008 Posts: 284 Location: Toronto ON, CANADA
|
Posted: Sun Jun 28, 2009 3:01 pm Post subject: |
|
|
poly_poly-man wrote: | ursusca wrote: | paradox6996 wrote: | Are you doing this through SS, If not that would be the best way ! |
Do you mean SSH? I log on to remote computer from my gentoo computer throgh SSH. | ssh -X with sshd allowing X11 forwarding is a good way... it seems you're trying to do it over xdmcp, though. |
Thank you, poly_poly-man
I've tried to do it over X11 forwarding.
I've checked the following line in my /etc/ssh/sshd_config file:
X11Forwarding yes
My gentoo computer:
mike@gentoobear ~ $ xhost +
access control disabled, clients can connect from any host
mike@gentoobear ~ $ ssh -X 192.168.1.2
mike@192.168.1.2's password:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Sun Jun 28 18:39:29 2009 from beargentoo
remote computer
[mike@bearcentos ~]$ xterm &
[1] 5077
[mike@bearcentos ~]$ firefox &
[2] 5111
[1] Done xterm
[mike@bearcentos ~]$
It works for me but can anybody explain me what dies it mean:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
??? |
|
Back to top |
|
|
zixnub n00b
Joined: 27 Dec 2007 Posts: 67 Location: Brasschaat, Belgium
|
Posted: Sun Jun 28, 2009 4:42 pm Post subject: |
|
|
zixnub wrote: | the first 0 in :0.0 is the display nr, the second 0 is the display's screen nr. Usually only one 0 is sufficient, but specifying 0.0 shouldn't hurt. What could be the problem is X rejecting remote connections. This is the default behavior for security reasons. Google how you can start X for remote connections. You also need to specify which clients are allowed to connect to the X server in certain configuration files and/or client's need some form of authentication with the X server.
Maybe this can give some insight:
http://tldp.org/HOWTO/Remote-X-Apps.html#toc9 |
!!! _________________ https://github.com/udevbe/greenfield
https://github.com/udevbe/westfield |
|
Back to top |
|
|
|