Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to export the display
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Fri Jun 26, 2009 7:34 pm    Post subject: [SOLVED] How to export the display Reply with quote

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
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Fri Jun 26, 2009 8:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Fri Jun 26, 2009 8:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Fri Jun 26, 2009 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Fri Jun 26, 2009 8:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Fri Jun 26, 2009 8:55 pm    Post subject: Reply with quote

and also do you got open port on that machine with X ?
if you use iptables or anythin for a firewall you need to open specific port by default it's 6000 i think

http://www.gentoo.org/doc/en/security/security-handbook.xml?full=1 and chapter 10.m X
i guess i was wrong it's turned on by default

did you try
Code:
DISPLAY=192.168.1.7:0 ; export DISPLAY

with one 0 not 0.0 ?
_________________
"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
Back to top
View user's profile Send private message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Fri Jun 26, 2009 9:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Sat Jun 27, 2009 9:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sat Jun 27, 2009 11:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Sun Jun 28, 2009 11:49 am    Post subject: Reply with quote

I am trying to do it over xdmcp. Not over X11 forwading.
Back to top
View user's profile Send private message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 67
Location: Brasschaat, Belgium

PostPosted: Sun Jun 28, 2009 12:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Sun Jun 28, 2009 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 67
Location: Brasschaat, Belgium

PostPosted: Sun Jun 28, 2009 4:42 pm    Post subject: Reply with quote

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


!!! :wink:
_________________
https://github.com/udevbe/greenfield
https://github.com/udevbe/westfield
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum