Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Utilizzo]perchè ssh -X non setta DISPLAY?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Fri Jul 30, 2004 7:14 am    Post subject: [Utilizzo]perchè ssh -X non setta DISPLAY? Reply with quote

Contrariamente a quanto descritto in questa tip e previsto anche da
Code:
man ssh

....
     -X      Enables X11 forwarding.  This can also be specified on a
             per-host basis in a configuration file
....

non riesco proprio a convincere ssh a settare automaticamente la variabile d'ambiente DISPLAY all'inizio di una conessione remota.
Dove sbaglio?
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Fri Jul 30, 2004 9:05 am    Post subject: Reply with quote

devi settarla sia lato server che lato client? controllato che sia fatto in tutti e 2?
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Fri Jul 30, 2004 11:06 am    Post subject: Reply with quote

@ ProT-0-TypE

Io di solito faccio così:
Code:

cloc3@gentoo-ppc cloc3 $ echo $DISPLAY
:0
cloc3@gentoo-ppc cloc3 $
cloc3@gentoo-ppc cloc3 $ ssh -X gentoo-laptop
Password:
Last login: Fri Jul 30 12:57:25 2004 from gentoo-ppc.paschini.net
cloc3@gentoo-laptop cloc3 $
cloc3@gentoo-laptop ~ $ echo $DISPLAY

cloc3@gentoo-laptop ~ $

a questo punto , devo necessariamente dare:
Code:

export DISPLAY=gentoo-ppc:0

Premettere quest'ultimo comando ad ssh è inutile.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
gcarlo
n00b
n00b


Joined: 01 Jul 2003
Posts: 35
Location: Padova - Italy

PostPosted: Mon Aug 02, 2004 11:50 am    Post subject: Reply with quote

la cosa più semplice è impostare nel file ~/.ssh/config della macchina client
l'opzione:
Host *
...
ForwardX11 yes
...

Che cmq deve essere abilitata anche sul server...

Ciao
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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