Re: Finding my $DISPLAY programatically.
Re: Finding my $DISPLAY programatically.
- Subject: Re: Finding my $DISPLAY programatically.
- From: Jeremy Huddleston <email@hidden>
- Date: Fri, 2 May 2008 11:16:13 -0700
On May 2, 2008, at 07:57, Robert Tillyard wrote:
At present I am hard coding the DISPLAY to their IP address with :
0.0 tacked on, so for my computer that would be 172.16.1.1:0.0 which
the remote end does understand.
Some of the remote systems are quite old and don't all have ssh
Is there any reason why you can't install ssh on these ancient machines?
and in order to use ssh I need to get the users user name and
password into the command line but there is no -password option to
ssh and even if there was another user could see the password by
doing a ps.
No, you don't need the password. Have the users create ssh keys with
no passphrase if you want no-password login.
I'm hoping that it is easier to find a valid DISPLAY that a remote
host will recognise that it is to convert the application to use
ssh. If that's not possible then I will have to restrict the Macs to
have only one user at a time and if X11 crashes they'll have to
reboot it but I'd like to be more friendly than that if I can.
That's a bit extreme. If anything you could just try this (or similar):
ps x | grep /usr/X11/bin/X | sed 's/^.* \(:[^ ]*\).*$/\1/' | head -n 1
You'll need to make sure they're using 2.2.1 or later and have their
security settings in X11 setup to allow remote TCP/IP connections...
but ssh is the better option!
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden