Pravat Chandra Patra

VNC server starting up issues due to font errors

Wednesday Mar 22, 2006

Problem: VNCSERVER had following issues on the logfile while starting "vncserver"

1) Install the packages in SOLARIS COMPANION CD for x86
2) Copy the below files from a working machine to the desired location.

Workingmachine> cd /usr/openwin/lib/X11/fonts/

"tar following files "

Workingmachine> tar -cvf fonts.tar ./100dpi/fonts.dir ./75dpi/fonts.dir ./misc/fonts.dir ./100dpi/fonts.alias ./75dpi/fonts.alias ./misc/fonts.alias

Workingmachine> tar -tvf fonts.tar -rw-r--r-- 0/2 15900 Aug 5 23:27 2005 ./100dpi/fonts.dir -rw-r--r-- 0/2 15396 Aug 5 23:27 2005 ./75dpi/fonts.dir -rw-r--r-- 0/2 6623 Aug 5 22:33 2005 ./misc/fonts.dir -rw-r--r-- 0/1 10508 Aug 5 23:27 2005 ./100dpi/fonts.alias -rw-r--r-- 0/1 10108 Aug 5 23:27 2005 ./75dpi/fonts.alias -rw-r--r-- 0/1 11469 Aug 5 22:14 2005 ./misc/fonts.alias

-COPY fonts.tar to "/usr/openwin/lib/X11/fonts/" directory of current machine mymachine> cd /usr/openwin/lib/X11/fonts/ mymachine> tar -xvf fonts.tar

Modify /.vnc/xstartup file to start gnome session -------------------------------------------------- # vi .vnc/xstartup #!/bin/sh [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #twm & /usr/bin/gnome-session

Put a vnc script in /etc/rc3.d directory to startup VNC at BOOT bash-3.00# cd /etc/rc3.d bash-3.00# cat S99vnc #!/sbin/sh PATH=$PATH:/usr/openwin/bin:/opt/sfw/bin export PATH case "$1" in 'start') if [ -f /.vnc/xstartup ]; then echo 'VNC SERVER is starting at port 1' # /opt/sfw/bin/vncserver :1 /opt/sfw/bin/vncserver :1 >/dev/msglog 2>&1 & fi ;; 'stop') /usr/bin/pkill vnc ;; *) echo "Usage: $0 { start | stop }" exit 1 ;; esac exit 0 bash-3.00# Setting up the password: bash-3.00# /opt/sfw/bin/vncpasswd Password: Verify:

To check which port it's listening: (In this case HTTP listening on 5801, VNC connection on 5901 ) Refer logfile. bash-3.00# tail -20 /.vnc/iecg11n-5:1.log 31/08/06 05:28:53 See http://www.realvnc.com for information on VNC 31/08/06 05:28:53 Desktop name 'X' (iecg11n-5:1) 31/08/06 05:28:53 Protocol version supported 3.3 31/08/06 05:28:53 Listening for VNC connections on TCP port 5901 31/08/06 05:28:53 Listening for HTTP connections on TCP port 5801 31/08/06 05:28:53 URL http://iecg11n-5:5801

[0] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed