|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Sep 2004
Messaggi: 1009
|
Permessi per usare X da remoto via SSH
CIAO
Ho degli utenti che si collegano via SSH ad una Linux-box . Ora, vorrei dagli anche la possibilita` di fargli usare anche il server X.Org . Su questa Linux-box, che parte in modalita` testuale, ho installato x11vnc per controllare X da remoto. Ora, come devo fare a far si` che i miei utenti, anche quando non sono in sede, possano usare il loro desktop grafico? In altre parole, quali permessi devo dare ad X per permettere cio`? GRAZIE CIAO Uso la Etch Testing. |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Jan 2005
Messaggi: 387
|
Senza usare vnc, puoi abilitare il forward del server X nella configurazione di sshd (/etc/ssh/sshd_config) (già abilitata di default, se non hai modificato nulla) e poi avviare con:
Codice:
ssh -X user@host /usr/X11/xterm
__________________
|
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Sep 2004
Messaggi: 1009
|
Purtroppo, posso accedere alla macchina Linux soltanto da una macchina XP con il programma PuTTY.
Comunque, se ti riferisci all'opzione X11Forwarding nel file /etc/ssh/sshd_config , essa e` impostata su yes . Il fatto strano e che, quando in una shell remota di un account normale lancio, in background, il server X, mi appare questa scritta: Codice:
Using username "balubeto". Authenticating with public key "imported-openssh-key" Linux PLUTO 2.6.15-1-686 #2 Mon Mar 6 15:27:08 UTC 2006 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. Last login: Thu Apr 20 17:53:38 2006 from pippo balubeto@PLUTO:~$ startx & [1] 6095 balubeto@PLUTO:~$ xauth: creating new authority file /home/balubeto/.serverauth.6095 X: user not authorized to run the X server, aborting. giving up. /usr/X11R6/bin/xinit: Connection refused (errno 111): unable to connect to X server /usr/X11R6/bin/xinit: No such process (errno 3): Server error. Couldnt get a file descriptor referring to the console [1]+ Exit 71 startx balubeto@PLUTO:~$ Codice:
Using username "root". Authenticating with public key "imported-openssh-key" Last login: Thu Apr 20 18:10:55 2006 from pippo Linux PLUTO 2.6.15-1-686 #2 Mon Mar 6 15:27:08 UTC 2006 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. PLUTO:~# startx & [1] 6091 PLUTO:~# xauth: creating new authority file /root/.serverauth.6091 X: warning; process set to priority -1 instead of requested priority 0 X Window System Version 6.9.0 (Debian 6.9.0.dfsg.1-6 20060403233528 David Nusinow <[email protected]>) Release Date: 21 December 2005 X Protocol Version 11, Revision 0, Release 6.9 Build Operating System: Linux 2.6.12-1-686 i686 [ELF] Current Operating System: Linux PLUTO 2.6.15-1-686 #2 Mon Mar 6 15:27:08 UTC 2006 i686 Build Date: 04 April 2006 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present OS Kernel: Linux version 2.6.15-1-686 (Debian 2.6.15-8) ([email protected]) (gcc version 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)) #2 Mon Mar 6 15:27:08 UTC 2006 Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Thu Apr 20 18:15:40 2006 (==) Using config file: "/etc/X11/xorg.conf" (EE) Failed to load module "synaptics" (module does not exist, 0) (EE) No Input driver matching `synaptics' Warning: font renderer for ".pcf" already registered at priority 0 Warning: font renderer for ".pcf.Z" already registered at priority 0 Warning: font renderer for ".pcf.gz" already registered at priority 0 Warning: font renderer for ".snf" already registered at priority 0 Warning: font renderer for ".snf.Z" already registered at priority 0 Warning: font renderer for ".snf.gz" already registered at priority 0 Warning: font renderer for ".bdf" already registered at priority 0 Warning: font renderer for ".bdf.Z" already registered at priority 0 Warning: font renderer for ".bdf.gz" already registered at priority 0 Warning: font renderer for ".pmf" already registered at priority 0 Could not init font path element unix/:7100, removing from list! PLUTO:~# x11vnc -logfile ~/.x11vnc.log -rfbauth ~/.vnc/passwd -display :0 -forever -bg -localhost PORT=5900 PLUTO:~# Quindi, come mai, accedendo a Linux remotamente come un utente normale, non riesco neanche a caricare X in background? GRAZIE CIAO |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:58.



















