View previous topic :: View next topic |
Author |
Message |
skeletal29 n00b
Joined: 07 Oct 2002 Posts: 39 Location: Nyc
|
Posted: Thu Oct 10, 2002 11:48 pm Post subject: viewing x remoteley? |
|
|
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 |
|
|
d_f0rce n00b
Joined: 06 Oct 2002 Posts: 27
|
Posted: Fri Oct 11, 2002 12:23 am Post subject: |
|
|
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 |
|
|
Mnemia Guru
Joined: 17 May 2002 Posts: 476
|
Posted: Fri Oct 11, 2002 1:37 am Post subject: |
|
|
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 |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Fri Oct 11, 2002 2:09 am Post subject: |
|
|
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 |
|
|
zenon Apprentice
Joined: 09 Oct 2002 Posts: 263
|
Posted: Fri Oct 11, 2002 4:03 am Post subject: |
|
|
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 |
|
|
gaskill n00b
Joined: 18 Apr 2002 Posts: 17 Location: Iowa
|
Posted: Fri Oct 11, 2002 4:20 am Post subject: |
|
|
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 |
|
|
zenon Apprentice
Joined: 09 Oct 2002 Posts: 263
|
Posted: Fri Oct 11, 2002 8:33 pm Post subject: |
|
|
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 |
|
|
gaskill n00b
Joined: 18 Apr 2002 Posts: 17 Location: Iowa
|
Posted: Sat Oct 12, 2002 3:10 am Post subject: |
|
|
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 |
|
|
zenon Apprentice
Joined: 09 Oct 2002 Posts: 263
|
Posted: Sat Oct 12, 2002 4:27 am Post subject: |
|
|
root or normal user doesn't make any difference |
|
Back to top |
|
|
|