Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
viewing x remoteley?
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
skeletal29
n00b
n00b


Joined: 07 Oct 2002
Posts: 39
Location: Nyc

PostPosted: Thu Oct 10, 2002 11:48 pm    Post subject: viewing x remoteley? Reply with quote

How is this done? lets say i have more then one linux computer on the network and i want to connect to its x server.. and use kde or what ever.
_________________
omp:
1.2ghz @ 1.32 Amd Athlon
Gigabyte GA-7VRXP Motherboard
256 Mb Samsung PC-2700 Ram
80 GbMAXTOR 6L080J4
LITEON DVD-ROM LTD163
Os: Gentoo Linux.
Back to top
View user's profile Send private message
d_f0rce
n00b
n00b


Joined: 06 Oct 2002
Posts: 27

PostPosted: Fri Oct 11, 2002 12:23 am    Post subject: Reply with quote

Hi,

you need to have XDMCP enabled on the remote computer for this to work.

On the client just type:

X :0 -query remotehost
if you do not have an x server already running on the client.

or

X :1 -query remotehost
if there is already an x server running on your client

You can use indirect queries too:
X :0 -indirect remotehost

Bye,
Alex
Back to top
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Fri Oct 11, 2002 1:37 am    Post subject: Reply with quote

Alternatively, this can be done with SSH, which I think is a better solution if you're on a public network. Simply SSH in after making sure that X11 Forwarding is enabled, and then just start the X application.
Back to top
View user's profile Send private message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Fri Oct 11, 2002 2:09 am    Post subject: Reply with quote

in /etc/ssd/sshd_config (I think, it's at least quite similar to that) is a line that says "X11 Forwarding" - set it to yes on the machine that will be running the X-app.

Now:


ssh -X user@hostname

then:

export DISPLAY=ipofclientmachine:0.displaynumber
(usually 0.0)
then run a program like you would normally.


~Mac~
Back to top
View user's profile Send private message
zenon
Apprentice
Apprentice


Joined: 09 Oct 2002
Posts: 263

PostPosted: Fri Oct 11, 2002 4:03 am    Post subject: Reply with quote

oh! oh! oh!

I have SSH all set-up, terminal login works flawlessly, X-Forwarding is on... How do I connect with Windows using X-Win32?
http://www.starnet.com/

I tried and tried to get it working please, my fingers are SO crossed.
Back to top
View user's profile Send private message
gaskill
n00b
n00b


Joined: 18 Apr 2002
Posts: 17
Location: Iowa

PostPosted: Fri Oct 11, 2002 4:20 am    Post subject: Reply with quote

zenon wrote:
oh! oh! oh!

I have SSH all set-up, terminal login works flawlessly, X-Forwarding is on... How do I connect with Windows using X-Win32?
http://www.starnet.com/

I tried and tried to get it working please, my fingers are SO crossed.


Make sure the X server is running on your Windows machine. Then get putty (search Google for putty, I can't remember the site). Select your options (SSH, probably V2 encryption) and make sure you check the box for "Enable X Forwarding" in the SSH options. I recommend saving your configuration so you don't have to set everything every time you use it. Now login to your ssh box, and try "xterm &" . If xterm pops up, everything Works. If not, double check the ssh server's settings and make sure putty is set to allow X forwarding. It works for me with WinaXe.
Back to top
View user's profile Send private message
zenon
Apprentice
Apprentice


Joined: 09 Oct 2002
Posts: 263

PostPosted: Fri Oct 11, 2002 8:33 pm    Post subject: Reply with quote

I get this: :(
from Absolute Telnet 1.84

Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm Xt error: Can't open display: %s

And this from Putty:

_X11TransSocketINETConnect: Can't get address for localh
ost
xterm Xt error: Can't open display: localhost:10.0

[2]+ Exit 1 xterm
Back to top
View user's profile Send private message
gaskill
n00b
n00b


Joined: 18 Apr 2002
Posts: 17
Location: Iowa

PostPosted: Sat Oct 12, 2002 3:10 am    Post subject: Reply with quote

Are you logging in as root, or this that first error just popping up for no good reason? If you are running as root, I'd try logging in as a normal user. Otherwise someone who knows more than me should answer, since I've pretty much told you everything I know about this.
Back to top
View user's profile Send private message
zenon
Apprentice
Apprentice


Joined: 09 Oct 2002
Posts: 263

PostPosted: Sat Oct 12, 2002 4:27 am    Post subject: Reply with quote

root or normal user doesn't make any difference :(
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