View Single Post

   
  #3 (permalink)  
Old 01-16-2008, 05:20 PM
Alan D Johnson
 
Posts: n/a
Default Re: DISPLAY via telnet...

Corne' Beerse wrote:

> Sergey Dolin wrote:
>
>> Hello, All!
>>
>> By RFC telnet should pass DISPLAY and USER variables to remote
>> machine, and
>> it does so on AIX, LINUX, some of BSD, but does not on HP-UX (cygwin
>> telnet
>> vs. HP-UX telnetd).
>>
>> Is it my fault?

>
>
> at least partly: I think the rfc is newwer than the implementation of
> the telnet deamon, if the deamon followed any rfc at all, I did not know
> of any remote protocol that nicely forwards such environment variables
> until I saw them in the newer (linux) implementations.
>
> I do know, some implementations are configurable on the passed
> parameters bu I don't recal on which platform.
>
>>
>> How can I execute interactive remote shell on HP-UX with automatically
>> set
>> DISPLAY variable?

>
>
> verry hard. If you can use remsh/rlogin/rexec and such, look at xrlogin,
> xrsh or such. They are scripts to do what you might like.
>
>>
>> Why does 'export DISPLAY=`hostname`:0.0;rsh rBox xterm -ls` ignore my
>> ^digit

>
>
> Better use the xterm option "-display" to set the display for the xterm
> or other X11 application.
>
>> keystrokes (namely ^6 in VIM)?

>
>
> Might be a keyboard mismatch. You can debug this with `xkeycaps.`
>
>>
>> Why does rlogind with installed LDAP-UX and pam_krb deny access to me
>> although rcp, ftp, telnet, and rsh <some command> work ok?

>
>
> This can be added security in the rlogind, not in the rexecd and rshd.
> Specially the .._krb does sound secirity to me.
>
>>
>>
>> With best regards, Sergey Dolin.
>>

>

We do a who on where you are coming from and tack it on there, here is a
chunk from my .profile that I use to define it, you have to do a lot
of iterations to really discover what the environ is, telnet, ssh,
rlogin, xterm, etc...
DISPLAY=`who am i -R | awk -F" " '{print $6}' | sed 's/(//' | sed
's/)//'`:0

Reply With Quote