Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X11 Forwarding?
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
SneaZ
n00b
n00b


Joined: 20 Sep 2002
Posts: 22

PostPosted: Fri Sep 27, 2002 11:48 am    Post subject: X11 Forwarding? Reply with quote

llo,

could anyone explain what i need to run an x-session on my winblows box.

I set up sshd_config with the ForwardX11 option to yes.
what other steps are required?

::: thx :::
Back to top
View user's profile Send private message
pan
n00b
n00b


Joined: 14 Sep 2002
Posts: 13
Location: Sweden

PostPosted: Fri Sep 27, 2002 2:03 pm    Post subject: Reply with quote

You need an X-server on your windows computer. You can run xfree:
http://www.cygwin.com/xfree/
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Fri Sep 27, 2002 4:17 pm    Post subject: Reply with quote

also get an recent putty build .. putty is a great free win32 ssh client, that supports X11 forwarding :)
Back to top
View user's profile Send private message
SneaZ
n00b
n00b


Joined: 20 Sep 2002
Posts: 22

PostPosted: Fri Sep 27, 2002 5:17 pm    Post subject: Reply with quote

thx for the help

1.I enabled X11forwarding in my sshd_config file
2.I installed putty
3.Set the X11forwarding option in putty with localhost:0 as Display
4.Run putty
5. error => X connection to localhost:10.0 broken (explicit kill or server shutdown).

do i need to export a DISPLAY on my gentoo box?
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Fri Sep 27, 2002 7:12 pm    Post subject: Reply with quote

Yes,

Code:

export DISPLAY=anotherhostname:0


if you are using bash, for example.


SneaZ wrote:
thx for the help

1.I enabled X11forwarding in my sshd_config file
2.I installed putty
3.Set the X11forwarding option in putty with localhost:0 as Display
4.Run putty
5. error => X connection to localhost:10.0 broken (explicit kill or server shutdown).

do i need to export a DISPLAY on my gentoo box?
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Fri Sep 27, 2002 7:30 pm    Post subject: Reply with quote

Actually, ssh's X11 forwarding (in Putty and otherwise) opens up a local port on the X client end and forwards it to the originating end of the ssh connection. Putty also sets the DISPLAY variable to "localhost:10.0". You should not have to set the DISPLAY explicitly.

All you need to do is set "xhost + localhost" on your Cygwin end (on your PC). It looks like a local connection to the X server on the PC since it is being forwarded through ssh.
Bloody Bastard wrote:
Yes,

Code:

export DISPLAY=anotherhostname:0


if you are using bash, for example.


SneaZ wrote:
thx for the help

1.I enabled X11forwarding in my sshd_config file
2.I installed putty
3.Set the X11forwarding option in putty with localhost:0 as Display
4.Run putty
5. error => X connection to localhost:10.0 broken (explicit kill or server shutdown).

do i need to export a DISPLAY on my gentoo box?
Back to top
View user's profile Send private message
mlybarger
Guru
Guru


Joined: 04 Sep 2002
Posts: 475

PostPosted: Tue Oct 01, 2002 3:24 pm    Post subject: Reply with quote

maybe for the tips area? anyway, i edited my ~/.vnc/xstartup file and the first line has :
xhost + localhost <anyother boxes>

works ok. i've heard you can specify this in some ~/.Xxxxx file, but couldn't get that to work. if anyone with knowledge would care to spread the wealth, would be most appreciated. i know it's not the most secure way about it, but you've gotta have a little faith in the iptables, right :))
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