nightmare with Xvnc :p
chuck.hines "at" baesystems.com
Tue Jun 25 13:44:02 2002
>>>>> "CBee" == Corn Beerse <Beerse> writes:
>> -----Original Message-----
>> From: D. M [mailto:city_gal79 "at" HOTMAIL.COM]
>> hey guys....i e-mailed couple of times about Xvnc and thank u for the
>> help...to say the truth im a new user of solaris so plz bare
>> with me...im
>> trying to install the vnc server on solaris 2.5 so i can
>> connect to it...the
>> problem again is i can use the vnc viewer but my purpose is
>> to install the
>> server when i type vncserver it says no command found i guess becuase
>> solaris has no perl on it...the other way is typing Xvnc this
>> way.. it says:
>> _XSERVTransSocketINTECreateListiner:...SockerCreatListenier() failed
>> _XSERVTransMakeALLCOTSSeverListeners:server already running
>> Fatal server error:
>> Cannot establish any listening sockets-make sure an X
>> server isn't already
CBee> It's the X11 windows side that fails to start. You mention to start
CBee> Xvnc. Do you specify a display? The default is :0 which is occupied by
CBee> the X (Xsun?) application at your console. Try `Xvnc :4`.
CBee> If this `Xvnc :4` still fails with the same error, just alter the
CBee> numbers to find one. If the error alters, it's most likely because Xvnc
CBee> cannot create a socket. It specifies a directory in which it tries to
CBee> create a file. This directory must have read, write and execute richts
CBee> for you. (drwxrwxrwx will do). Solaris is known to have this security to
CBee> tight for vnc.
You might want to check the FAQ as well:
See Q13 & Q23, they may be helpful.
>> can anyone plzzzz tell me what am i doing wrong?...do i have
>> to type some commands or something....thaaank you
CBee> To use the vncserver script, perl (5.x) is required. But, the script is
CBee> not required. Most of the script is the creation of the user's vnc
CBee> settings in the ~/.vnc/ directory. You can do that manually. The
CBee> remainder of the script is a call to `Xvnc` and a call to a startup
CBee> script in ~/.vnc/. You can create a script for that.
CBee> If you're realy fresh on unix, have your sysadmin setup vnc as on this
CBee> page: http://www.sourcecodecorner.com/articles/vnc/linux.asp.
Or, they could try some variant of this script below as an alternate startup
script (which is a variant of one that someone posted to this list several
years ago). Read the comments, it does not behave identically to the
vncserver script (although by changing a couple of the lines it will be very
similar). For instance, it automatically launches the viewer as well, which
you may or may not want, and it also kills the running Xvnc after the viewer
exits (comment all those lines out to stop that behavior).
--------------->8 cut here 8<---------------
# experimental shell script vncserver - starts Xvnc & runs your programs
# Xvnc exec (add path if needed):
# shell script that will start extra programs:
# vncviewer exec:
# vnc passwd exec
# force Xvnc display to be :2, or whatever
echo "starting Xvnc on display $DISPLAY"
# set the fontpath here:
# Depth of server to start (8bpp,16bpp,24bpp)
# note - might want DEPTH=8 to use PseudoColor visual instead of
# default TrueColor visual, since a lot of programs can't handle that
# very well:
# Set the geometry here (ex: 800x600,1024x768,1280x1024)
if [ ! -f $PASSWD ]
echo "ERROR: You MUST run vncpasswd once before using this script, aborting"
# if you want xauth authorization protocol
#xauth -f $XAUTH add $DISPLAY . DEADBEEF
# Other options go here. The -nolisten local can be used to not create a
# socket in /tmp/.X11-unix/ (no UDP, have to use hostname:2 instead of simply
# :2 as the DISPLAY value locally)
OPTS="-co /usr/openwin/lib/X11/rgb -rfbwait 120000 -rfbport $vncport -rfbauth $PASSWD $XAUTHOPT -desktop VNCdesktop -nolisten local"
# invoke Xvnc server
echo $XVNC :$dispnum -fp $FONTPATH -depth $DEPTH $VISUAL -geometry $GEO $OPTS
$XVNC :$dispnum -fp $FONTPATH -depth $DEPTH $VISUAL -geometry $GEO $OPTS > $HOME/.vnc/$HOST:$dispnum.log 2>&1 &
echo $vncpid > $HOME/.vnc/$HOST:$dispnum.pid
# if you want to automagically launch the viewer:
echo "starting vncviewer of $HOST:$dispnum on display $savedDISPLAY"
$VNCVIEWER -display $savedDISPLAY -passwd $PASSWD $VNCVIEWEROPTS $HOST:$dispnum >> $HOME/.vnc/$HOST:$dispnum.log 2>&1 &
# since I don't want xauth authorization:
xhost + >> $HOME/.vnc/$HOST:$dispnum.log 2>&1
# start up xclients (window manager last, shouldn't exit if you want to be
# able to automatically kill Xvnc when it exits, detailed below):
. $XINITRC >> $HOME/.vnc/$HOST:$dispnum.log 2>&1
# if you want to behave like standard X server, kill $XVNC when $XINITRC
# is done, uncomment these two lines:
rm -f $HOME/.vnc/$HOST:$dispnum.pid
--------------->8 end cut here 8<---------------
Hope this helps.
Charles K. Hines <ckh "at" requesttech.com> <chuck.hines "at" baesystems.com>
Principal Scientist at ReQuest Technologies Inc (http://www.ReQuestTech.com/)
"You tell him and I will smack you. I will smack you like a
bad bad donkey, okay!" - Pepe in 'Muppets From Space'