>>>>> "CBee" == Corn Beerse <Beerse> writes:

>> -----Original Message-----
>> From: D. M [mailto:[EMAIL PROTECTED]]
>> 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 
>> running....

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:

               http://www.uk.research.att.com/vnc/faq.html

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<---------------
#!/bin/sh
#
# experimental shell script vncserver - starts Xvnc & runs your programs
#

savedDISPLAY=$DISPLAY

# Xvnc exec (add path if needed):
XVNC=Xvnc
#XVNC=/usr/X11R6.3/bin/Xvnc

# shell script that will start extra programs:
#XINITRC=$HOME/.vnc/xstartup
XINITRC=$HOME/.vnc/vnc.xinitrc
#XINITRC=$HOME/.xinitrc

# vncviewer exec:
VNCVIEWER=vncviewer
VNCVIEWEROPTS='-owncmap'

# vnc passwd exec
VNCPASSWD=vncpasswd

#HOST=sstpok-11
#HOST=localhost
HOST=`/bin/hostname`

# force Xvnc display to be :2, or whatever
DISPLAY=$HOST:2
#DISPLAY=:2
export DISPLAY
dispnum=2
vncport=5902

echo "starting Xvnc on display $DISPLAY"

# set the fontpath here:
FONTPATH=/usr/openwin/lib/X11/fonts/,/usr/openwin/lib/X11/fonts/misc/,/usr/openwin/lib/X11/fonts/75dpi/,/usr/openwin/lib/X11/fonts/100dpi/,/usr/openwin/lib/X11/fonts/Type1/

# Depth of server to start (8bpp,16bpp,24bpp)
#DEPTH=8
#DEPTH=16
DEPTH=24

# 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:
#VISUAL='-cc 3'
VISUAL=

# Set the geometry here (ex: 800x600,1024x768,1280x1024)
#GEO=800x600
GEO=1024x768

PASSWD=$HOME/.vnc/passwd
if [ ! -f $PASSWD ]
then
  echo "ERROR: You MUST run vncpasswd once before using this script, aborting"
  exit 1
fi

# if you want xauth authorization protocol
#XAUTH=$HOME/.Xauthority
#xauth -f $XAUTH add $DISPLAY . DEADBEEF
#XAUTHOPT="-auth $XAUTH"

# 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 &
vncpid=$!
echo $vncpid > $HOME/.vnc/$HOST:$dispnum.pid
sleep 5

# 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 &

sleep 3

# 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:
kill $vncpid
rm -f $HOME/.vnc/$HOST:$dispnum.pid
--------------->8 end cut here 8<---------------

Hope this helps.

Chuck

-- 
Charles K. Hines   <[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>
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'
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to