Hi,

use vncserver -query localhost
But before, remove everything in your ~/.vnc/xstartup, but keep the file
empty
here.

Another way is to modify the script vncserver to allow the -query otpion to
avoid the xstartup.
#nouvelle ligne pour QUERY = new line for QUERY
#ligne modifiee pour QUERY = modified line for QUERY


[...]
$vncUserDir = "$ENV{HOME}/.vnc";
$xauthorityFile = "$ENV{HOME}/.Xauthority";

#nouvelle ligne pour QUERY
$query = "";

$defaultXStartup
    = ("#!/bin/sh\n\n".
       "xrdb \$HOME/.Xresources\n".
[...]
# Check command line options

#ligne modifiee pour QUERY
&ParseOptions("-geometry",1,"-depth",1,"-pixelformat",1,"-name",1,"-help",0,
       "-kill",1,"-query",1);

&Usage() if ($opt{'-help'});
[...]
if ($opt{'-pixelformat'}) {
    $pixelformat = $opt{'-pixelformat'};
}

#nouvelles lignes pour QUERY
if ($opt{'-query'}) {
    $query = $opt{'-query'};
}

&CheckGeometryAndDepth();
[...]
# Now start the X VNC Server

$cmd = "Xvnc :$displayNumber";

#nouvelle ligne pour QUERY
$cmd .= " -query $query" if ($query);

$cmd .= " -desktop " . &quotedString($desktopName);
[...]
$ENV{VNCDESKTOP}= $desktopName;

#nouvelle ligne pour QUERY
if (!$query) {

    system("$vncUserDir/xstartup >> " . &quotedString($desktopLog) . " 2>&1
&");

#nouvelle ligne pour QUERY
}

exit;
[...]
sub Usage
{
    die("\nusage: $prog [:<number>] [-name <desktop-name>] [-depth
<depth>]\n".
 "                 [-geometry <width>x<height>]\n".
 "                 [-pixelformat rgbNNN|bgrNNN]\n".

#nouvelle ligne pour QUERY
 "                 [-query <host>]\n".

 "                 <Xvnc-options>...\n\n".
 "       $prog -kill :<number>\n\n");
}
[...]


CU

.                         \)|(/
.                         (o o)
. /-----------------ooO----(_)----Ooo-----------------\
.(_|                  Francis VIVAT                   |
.  |                    CETP-CNRS                     |
.  |  10-12, avenue de l'Europe  78140 Velizy         |
.  |             Tel    : +33 1 3925 4780             |
.  |             Fax    : +33 1 3925 4922             |_
.  |      E-Mail : [EMAIL PROTECTED]         | )
.  \---------------------------------------------------/
.                        (_)  (_)



----- Message d'origine -----
De : "Forrest, Wayne" <[EMAIL PROTECTED]>
@ : <[EMAIL PROTECTED]>
Envoyi : vendredi 2 fivrier 2001 05:13
Objet : Solaris 7 CDE


> Hi
>
>
> Ive only just started using vnc and have the server running on both WNT and
> Solaris.
> When running the Xvnc server on Solaris is there anyway a pc client can
> display the Solaris Common Desktop Environment?
> I currently get a single xterm and what looks like the Openwindows
> interface.
>
> regards
>
> Wayne Forrest
>
> CAD Systems Engineer
> Australian Submarine Corporation
>
> Phone:  +61 8 8348 7802
> Fax:      +61 8 8348 7001
> email: [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to [EMAIL PROTECTED]
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to