VNC setup on a Solaris machine -- Posted by inturi on Wednesday, January 23 2008
Looks like the problem is existing /tmp/.X11* files...after removing them, it worked fine.

% ls -ltr /tmp/.X11*
/tmp/.X11-unix:
total 0
srwxrwxrwx 1 root root 0 Dec 3 22:52 X0

/tmp/.X11-pipe:
total 0
-rw-rw-rw- 1 root root 0 Dec 3 22:52 X0\

% userid root rm -rf /tmp/.X11*

% vncserver

===> worked fine.

% ps -eaf | grep vnc | grep -v grep
spalaka 21430 1 0 15:01:08 pts/1 0:01 Xvnc :1 -desktop X -httpd /usr/local/vnc/classes -auth /u
/user1/.Xauthority -





Subject
Re: VNC setup for a Sol machine


I get the following error when I try to start vncserver. Also vncconfig is not found on sunfire3 in /usr
/openwin/bin

_XSERVTransSocketCreateListener: failed to bind listener
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for local

Subject: VNC setup for a Sol machine

Create the file $HOME/.vnc/xstartup: ( $HOME is your home dir )

#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24 10 10 -ls -title "$VNCDESKTOP Desktop" &

/usr/dt/bin/Xsession &

2) make sure your PATH env var includes /usr/openwin/bin

3) Run the cmd to start the VNC server -
vncserver

4) From client ( laptop), try to connect to the host using vncviewer..


[Edit] Home
If this information is helpful to you then please click here and post one simple tip that you know. Share your knowledge!