Translate

jueves, 28 de junio de 2012

Procedimiento para la generación de Tunel con vncserver y putty para AIX


1. Intalación en el, o los servers

a. Instalación en el Nodo1 del VNC

[root@ XXXXXXXXXX  ]/>rpm -ivh vnc-3.3.3r2-3.aix5.1.ppc.rpm
vnc                         ##################################################
[root@ XXXXXXXXXX  ]/>

b. Instalación en el Nodo2 del VNC

[root@NODO2]/>rpm -ivh vnc-3.3.3r2-3.aix5.1.ppc.rpm
vnc                         ##################################################
[root@NODO2]/>

c. Editar /etc/ssh/sshd_config y eliminar el comentario (#) de las lineas X11 así:

[root@nodo1]vi /etc/ssh/ssh_config
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes



2. Lanzar el vncserver en el servidor

a. Desde el Putty nueva session cree el password para el vncserver asi: (asegurse de tener configurado el Tunel en el putty)

[grid@ XXXXXXXXXX  ]/home/grid>vncserver
You will require a password to access your desktops.
Password: 
Verify: 

b. lanzar el vncserver

[grid@ XXXXXXXXXX  ]/home/grid>vncserver
New 'X' desktop is  XXXXXXXXXX :1
Creating default startup script /home/grid/.vnc/xstartup
Starting applications specified in /home/grid/.vnc/xstartup
Log file is /home/grid/.vnc/XXXXXXXXXX :1.log
[grid@XXXXXXXXXX ]/home/grid>

No cierre la session del putty  

3. Ejecute el vncserver desde el cliente

a. Desde el cliente

Ejecutar el VNC Viewer con localhost:5901 (valores por defaul) de lo contrario consulte el log para ver los valores correctos

Figura 1. Ventana Conección Ultr@VNC


Si falla saldrá una ventana similar as:

Figura 2 Ventana de mensaje de error Ultr@VNC

Si no falla saldrá una ventana solicitando el password el mismo que configuro en el paso 2.a:

Figura 3 Ventana de Password VNC Client

Para solucionar la falla reportada el procedimiento seria

1. Indague sobre el log y verifique que el error es similar a el señalado aquí abajo

[root@ XXXXXXXXXX ]/>tail -f /.vnc/ XXXXXXXXXX :1.log
could not open default font 'fixed'
xrdb: Connection refused
xrdb: Can't open display ' XXXXXXXXXX :1'
1356-265 xsetroot:  Unable to open display:   XXXXXXXXXX :1.
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm Xt error: Can't open display: %s
twm:  unable to open display " XXXXXXXXXX :1"

2. SOLUCION

a. Edite el archivo vncserver y adicione en la linea 151 la siguiente instrucción

$cmd .= " -fp /usr/lib/X11/fonts/,/usr/lib/X11/fonts/misc/";

[root@XXXXXXXXXX ]/>cd /usr/bin/X11
[root@XXXXXXXXXX]/usr/bin/X11>ls -la vnc* 
lrwxrwxrwx    1 root     system           39 Jun 22 11:08 vncconnect -> ../../../../opt/freeware/bin/vncconnect
lrwxrwxrwx    1 root     system           38 Jun 22 11:08 vncpasswd -> ../../../../opt/freeware/bin/vncpasswd
lrwxrwxrwx    1 root     system           38 Jun 22 11:08 vncserver -> ../../../../opt/freeware/bin/vncserver
lrwxrwxrwx    1 root     system           38 Jun 22 11:08 vncviewer -> ../../../../opt/freeware/bin/vncviewer
[root@ XXXXXXXXXX ]/usr/bin/X11>cd /opt/freeware/bin/ 
[root@ XXXXXXXXXX ]/opt/freeware/bin>chmod u+w vncsercer
[root@ XXXXXXXXXX ]/opt/freeware/bin>ls -la vncserver
-rwxr-xr-x    1 root     system        13312 Oct 26 2000  vncserver
[root@ XXXXXXXXXX ]/opt/freeware/bin>vi  vncserver

:151 $cmd .= " -fp /usr/lib/X11/fonts/,/usr/lib/X11/fonts/misc/";


No hay comentarios:

Publicar un comentario