presmerovani DISPLAY

Juraj Ziegler e na hq.sk
Pátek Březen 30 13:28:43 CEST 2001


On Fri, Mar 30, 2001 at 01:19:29PM +0200, Tomas Knaifl wrote:
e> On Fri 30. March 2001 12:54, you wrote:
e> > Zdravim
e> >
e> > Pouzivam na serveru SSH (ne OpenSSH, ale klidne budu, kdyz mi to pomuze).
e> > Potreboval bych, aby se mi po nahlaseni z jineho stroje presmeroval na
e> > tento stroj DISPLAY. Neco jsem nasel v konfiguraci, ale budto jsem to
e> > nepochopil, nebo je to neco jineho. Nevite nekdo jak na to ?
e> >
e> 
e> strucny postup (z pocitace u ktereho sedite a chcete mit na nej presmerovany 
e> vystup):
e> 
e> xhost +jmeno_pocitadla (jmeno serveru, na ktery se pripojujete - aby mohl 
tak toto teda urcite nie, najma ak na jmeno_pocitadla robi aj niekto iny ako
vy

e> spolupracovat s vasim pocitacem)
e> ssh bla_bla_bla
e> export DISPLAY = "jmeno_kam_ma_jit_vystup:0"
e> ... a muzete zacit spoustet.. xkove aplikace budou zobrazovat svuj vystup na 
e> pocitaci, jeho jmeno bude uvedene v promenne DISPLAY

myslim ze autor chcel pouzit ssh-x11-forwarding. 

man ssh:

     If the user is using X11 (the DISPLAY environment variable is set), the
     connection to the X11 display is automatically forwarded to the remote
     side in such a way that any X11 programs started from the shell (or com­
     mand) will go through the encrypted channel, and the connection to the
     real X server will be made from the local machine.  The user should not
     manually set DISPLAY. Forwarding of X11 connections can be configured on
     the command line or in configuration files.

...

     -x      Disables X11 forwarding.  This can also be specified on a per-
             host basis in a configuration file. (default)

     -X      Enables X11 forwarding.

(e)

-- 
_______________________________________________________________________________
>e na hq.sk<                                                  >http://hq.sk/~euro<
------------- další část ---------------
A non-text attachment was scrubbed...
Name: [žádný popis není k dispozici]
Type: application/pgp-signature
Size: 232 bytes
Desc: [žádný popis není k dispozici]
URL: <http://www.linux.cz/pipermail/linux/attachments/20010330/8915abf4/attachment.sig>


Další informace o konferenci Linux