Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X forwarding without using SSH
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
rakis
n00b
n00b


Joined: 02 Apr 2003
Posts: 27
Location: Tucson, Arizona

PostPosted: Sun Jul 11, 2004 7:43 pm    Post subject: X forwarding without using SSH Reply with quote

I am having some trouble finding what I need to configure to get a standard X forwarded xterm. I need to be able to forward displays/programs without using SSH.

I know this is a security problem, but I don't have access to install ssh on these machines and these machines aren't on the internet anyways. Any help would be greatly appreciated.
_________________
"I find Windows of absolutely no technical interest." -Bill Joy
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sun Jul 11, 2004 7:56 pm    Post subject: Reply with quote

VNC, maybe?
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
rakis
n00b
n00b


Joined: 02 Apr 2003
Posts: 27
Location: Tucson, Arizona

PostPosted: Sun Jul 11, 2004 8:11 pm    Post subject: VNC... Reply with quote

VNC would be nice, but again, I can't install anything on these machines other than what is already available....

Any other ideas? I just need the standard:

Code:


export DISPLAY=1.2.3.4:0
program &



I get a response that:

cannot connect to X server 1.2.3.4:0

I've enabled all of the alowing stuff in GDM. What do I need to modify in the X config files to allow this?
_________________
"I find Windows of absolutely no technical interest." -Bill Joy
Back to top
View user's profile Send private message
steve_m
n00b
n00b


Joined: 30 Mar 2004
Posts: 5

PostPosted: Sun Jul 11, 2004 8:29 pm    Post subject: Reply with quote

Do you have java on this machine.

If so, look at something like

http://www.jcraft.com/jsch/

or

http://www.netspace.org/ssh/
Back to top
View user's profile Send private message
Toph
n00b
n00b


Joined: 02 Jun 2003
Posts: 24

PostPosted: Sun Jul 11, 2004 10:02 pm    Post subject: Reply with quote

Quote:
cannot connect to X server 1.2.3.4:0


There are basically 3 things you have to check:

- if you have a firewall running at $DISPLAY (where you're supposed to sit at and look), open ports 6000 onwards (6000 is :0, 6001 :1, and so on)
- Gentoo usually starts X in a safe mode, disallowing TCP connections to it (" -nolisten"). Please edit /etc/X11/gdm/gdm.conf and change the line "#DisallowTCP=true" to "DisallowTCP=false". Restart gdm.

You should now be able to connect to that X-Server, but you'll probably run into authorization trouble. If you don't share the same home-dir at both hosts, you have to autorize the remote host to connect using "xhost +$IP_OF_REMOTE_HOST" (pretty unsafe, but quick&easy) or xauth (more elegant and safe).

If the connection between the 2 hosts isn't that fast, you should also have a look at lbxproxy, which can compress the X-Protocol. That also makes it at least a bit less readable on the network.
Back to top
View user's profile Send private message
rakis
n00b
n00b


Joined: 02 Apr 2003
Posts: 27
Location: Tucson, Arizona

PostPosted: Mon Jul 12, 2004 12:35 am    Post subject: OMG Reply with quote

OMG it was THAT easy!! I totaly left that out! SCHWEET! Thanks so much buddy. I really, really, really appreciate it! Finally a COOL linux distro at work. :-D I'm living large now!
_________________
"I find Windows of absolutely no technical interest." -Bill Joy
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