Wednesday, November 10, 2010

vncserver not accessible/won't start in AIX 6.1

after installing vncserver under AIX 6.1 (TL3), vncserver won't run properly to accept incoming vncviewer connections.

NOTE: vncserver version here is rather old - so be warned.

from the logfile in user's $HOME/.vnc/ directory:

29/10/10 14:22:47 Xvnc version 3.3.3r2
29/10/10 14:22:47 Copyright (C) AT&T Laboratories Cambridge.
29/10/10 14:22:47 All Rights Reserved.
29/10/10 14:22:47 See http://www.uk.research.att.com/vnc for information on VNC
29/10/10 14:22:47 Desktop name 'X' (DEMETER:1)
29/10/10 14:22:47 Protocol version supported 3.3
29/10/10 14:22:47 Listening for VNC connections on TCP port 5901
29/10/10 14:22:47 Listening for HTTP connections on TCP port 5801
29/10/10 14:22:47   URL http://DEMETER:5801
Font directory '/usr/lib/X11/fonts/Speedo/' not found - ignoring

Fatal server error:
could not open default font 'fixed'
xrdb: A remote host refused an attempted connect operation.
1356-605 xrdb: Can't open display 'DEMETER:1'
1356-265 xsetroot:  Unable to open display:  DEMETER:1.
xterm Xt error: Can't open display: DEMETER:1
twm:  unable to open display "DEMETER:1"

solution was to edit the script /usr/bin/X11/vncserver

and add this line (in my system its in line 151:
$cmd .= " -fp /usr/lib/X11/fonts/,/usr/lib/X11/fonts/misc/";

after saving the changes and starting vncserver:
29/10/10 14:44:03 Xvnc version 3.3.3r2
29/10/10 14:44:03 Copyright (C) AT&T Laboratories Cambridge.
29/10/10 14:44:03 All Rights Reserved.
29/10/10 14:44:03 See http://www.uk.research.att.com/vnc for information on VNC
29/10/10 14:44:03 Desktop name 'X' (DEMETER:1)
29/10/10 14:44:03 Protocol version supported 3.3
29/10/10 14:44:03 Listening for VNC connections on TCP port 5901
29/10/10 14:44:03 Listening for HTTP connections on TCP port 5801
29/10/10 14:44:03   URL http://DEMETER:5801

i can now access the vnc session.

ps -ef | grep vnc
user04 4644886 6135868   1 14:47:24  pts/0  0:00 grep vnc
  user04 6004822       1   0 14:44:02  pts/0  0:04 Xvnc :1 -desktop X -httpd /usr/local/vnc/classes -auth /home/admin/user04/.Xauthority -geometry 1024x768 -depth 8 -rfbwait 120000 -rfbauth /home/admin/user04/.vnc/passwd -rfbport 5901 -fp /usr/lib/X11/fonts/,/usr/lib/X11/fonts/misc/

1 comments:

  1. Worked really fine! Thanks!

    ReplyDelete