Ray,
I never need to explicitly setenv DISPLAY
in the xstartup script, it always seems have
the DISPLAY properly set before running
regardless of what DISPLAY gets assigned
by the vncserver script.
Here's a thought: maybe the interpretter
(or "shelll") that is being invoked for
xstartup has it's own initialization file
that it runs at startup, before running
xstartup, in order to set up the proper
environment variables. Maybe the
DISPLAY is being explicitly set to some
default within that file, thereby clobbering the
value of DISPLAY being passed to
xstartup from vncserver.
For my xstartup, I can't remember
exactly what it looked like initially.
I might have modified my xstartup script,
it now says #!/bin/tcsh at the top. This
specifies that it is to be interpretted
using the "tcsh" interpretter, which
always runs the initialization file
~/.cshrc (~ stands for your home
directory). It might also run ~/.tchsrc,
I never tried creating such a file.
Another shell like bash
would run ~/.bashrc. Check the
interpretter specified at the top of
xstartup, look for an associated
initialization file, then see if DISPLAY
is set within it.
As a different test, stick the following
at the beginning of xstartup, below the
1st line that specifies the interpretter:
echo DISPLAY is _${DISPLAY}_
exit
This would display the value of
DISPLAY as seen by the xstartup
process, which might give some
hints. Normally, "echo" sends
output to the terminal, but I think
xstartup is called in such a way that
any output that is generated gets sent
to ~/.vnc/tree1:13.log (for your example
below). So browse through that file to
find what the above "echo" command
spits out.
Not sure if this would find the cause,
but good luck.
Fred
--------------------------------------------------------------------------
Fred Ma
Department of Electronics
Carleton University, Mackenzie Building
1125 Colonel By Drive
Ottawa, Ontario
Canada K1S 5B6
[EMAIL PROTECTED]
==========================================================================
> Date: Thu, 31 Jan 2002 10:54:35 -0800 (PST)
> From: Raymond Balise <[EMAIL PROTECTED]>
> Subject: setenv DISPLAY
>
> Hello,
> I am using VNC server on Solaris. After I type
> vncserver I get assingned a new X desktop like:
> tree1.blah.edu:13
>
> This is good. However, before I can use the
> connection I need to type this:
>
> setenv DISPLAY tree1.blah.edu:13
>
> No I don't know enought unix to know whey this is true
> but it works.
>
> Is there a way to return the address and display
> number that vncserver assigns me so I can put the
> setenv DISPLAY in my ~/.vnc/xstartup file?
>
> Thank you
> Ray
---------------------------------------------------------------------
To unsubscribe, mail [EMAIL PROTECTED] with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------