Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Display remoto su connessione ssh?
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
Merlink
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2004
Posts: 104
Location: Agrigento, Italy

PostPosted: Thu Nov 04, 2004 5:04 pm    Post subject: [RISOLTO] Display remoto su connessione ssh? Reply with quote

Saluti.
Cosa ho:
Due pc, uno senza monitor, che ha vari compiti quali quello di printserver, gateway e altre cosette. L'altro pc e' quello da cui scrivo, una normale workstation.
Entrambi hanno linux, entrambi Gentoo, entrambi Xorg.

Cosa voglio fare:
Voglio loggarmi dal mio pc al gateway tramite ssh, avviare un applicazione locale (Es: ethereal) e visualizzarne il "disegno" sul mio desktop.

Come ho proceduto fin ora:
ssh -X user@10.0.0.1
export DISPLAY=10.0.0.2:0.0
ethereal

Nessun risultato.
Tra l'altro, abilitando l'X11 forwarding in ssh, tramit eil flag X, dovrei trovare gia impostate le variabili quali DISPLAY (cosa non vera...o sbaglio qualcosa).
Sul mio PC (10.0.0.2) ho abilitato XDCMP, login remoto, root login remoto, xhost +10.0.0.101. Sul PC remoto (10.0.0.101) il runlevel di default non comprende xdm.

Spero che la mia brevita' non dia fastidio a nessuno ^_^

Grazie in anticipo a chi mi aiutera'.

Saluti


Last edited by Merlink on Fri Nov 05, 2004 9:48 am; edited 1 time in total
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Thu Nov 04, 2004 6:43 pm    Post subject: Reply with quote

ciao non e' che il server X a cui vuoi girare il DISPLAY e' lanciato in modalita' no listen per pacchetti tcp non locali?
Back to top
View user's profile Send private message
Merlink
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2004
Posts: 104
Location: Agrigento, Italy

PostPosted: Thu Nov 04, 2004 6:54 pm    Post subject: Reply with quote

1) come faccio a saperlo?
2) se vado con X -broadcast da un terzo pc, ho il greeter gdm di questa macchina, quindi immagino che le connessioni esterne siano permesse (almeno con gdm)
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Fri Nov 05, 2004 7:19 am    Post subject: Reply with quote

Ciao,
io provereri a non mettere X bensi Y

Code:

ssh -Y user@host.com


poi tranquillamente lancia dalla shell appena aperta il tuo comando

Code:

ethereal


byebye
fat_penguin
Back to top
View user's profile Send private message
Merlink
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2004
Posts: 104
Location: Agrigento, Italy

PostPosted: Fri Nov 05, 2004 8:43 am    Post subject: Reply with quote

Code:

root@fire ~ # ethereal

(ethereal:16925): Gtk-WARNING **: cannot open display:
root@fire ~ # export DISPLAY=10.0.0.2:0
root@fire ~ # ethereal

(ethereal:16935): Gtk-WARNING **: cannot open display:


questo e' quello che accade (anche) con ssh -Y

inizio a pensare che ci sia qualcosa che non va da me...
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Fri Nov 05, 2004 8:54 am    Post subject: Reply with quote

una domanda: vedo che lanci il comado ethereal da root...
Ma tu fai il login come utente e poi fai "su" per diventare root?

Se cosi fosse ... il problema sta li...

In questo caso devi emergiare "sudo" e configurarlo in modo che il tuo utente possa lanciare ethereal:
Code:

sudo /usr/bin/ethereal


byebye
fat_penguin
Back to top
View user's profile Send private message
Merlink
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2004
Posts: 104
Location: Agrigento, Italy

PostPosted: Fri Nov 05, 2004 9:02 am    Post subject: Reply with quote

no, ho abilitato il login ssh da root (ssh e' in listening solo sulla eth della lan).

cmq ho provato anche da utente non root (non si sa mai) e non va ugualmente (gedit).

Tnx
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Fri Nov 05, 2004 9:08 am    Post subject: Reply with quote

... strano, io lo uso giornalmente senza alcun problema.
Cmq ho visto che tu usi l'export del display... prova solo a loggarti con l'opzione -Y e poi lancia direttamente ethereal ... senza nessun export esplicito.... l'opzione -Y lo fa al posto tuo!

byebye
fat_penguin
Back to top
View user's profile Send private message
Merlink
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2004
Posts: 104
Location: Agrigento, Italy

PostPosted: Fri Nov 05, 2004 9:20 am    Post subject: Reply with quote

fat_penguin wrote:
... strano, io lo uso giornalmente senza alcun problema.
Cmq ho visto che tu usi l'export del display... prova solo a loggarti con l'opzione -Y e poi lancia direttamente ethereal ... senza nessun export esplicito.... l'opzione -Y lo fa al posto tuo!

byebye
fat_penguin


E' quello che pensavo, infatti, come vedi dal code di qualche post sopra, faccio l'export esplicito solo dopo il primo "cannot open display".

Ora mi viene un dubbio, mi puoi dire esattamente cosa hai configurato in xorg /gdm etc? In questi casi, ho notato che solitamente l'errore e' a causa di un qualcosa che non conosco e ovviamente non ho saputo configurare correttamente :D

Grazie, bye
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Fri Nov 05, 2004 9:24 am    Post subject: Reply with quote

Nel file /etc/ssh/sshd_config hai
Code:

X11Forwarding yes


??

byebye
fat_penguin
Back to top
View user's profile Send private message
Merlink
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2004
Posts: 104
Location: Agrigento, Italy

PostPosted: Fri Nov 05, 2004 9:47 am    Post subject: Reply with quote

Visto?
te lo dicevo che era una cosa stupida :D

aka => Adesso tutto funge, abilitato X11Forwarding sia qui come client che li' come server ^_^

Grazie mille!
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