VNC - grey desktop with cursor - Unix
cbeerse "at" hiscom.nl
Fri Jun 7 14:57:01 2002
> -----Original Message-----
> From: Richard Gillman [mailto:rgi "at" itss.nerc.ac.uk]
I can't help, it just asks for a setup like
If that's no solution, read on...
> I am trying to write an xstartup file to cater for a mixed
> Irix, Linux, Solaris. User filespace is shared using NIS, so if a user
> starts vncserver on Solaris, it has to look like solaris, if (s)he
> starts it on Irix, it has to look like Irix, etc. The same desktop
> managers are not available on different architectures.
General approach for single filesystem, multi architecture systems, like
In scripts, try to use as much general unix applications and avoid hard
coded paths to binaries.
Start with an extended $PATH setting.
Once you realy need to go platform specific use the `uname` command in a
For sh scripts:
case `uname` in
# Irix command sequence
# Linux command sequence
# Solaris command sequence
# none of the above, might need a message here.
Be sure to use the output for `uname` at the place of the case tests, I'm
sure on the linux one, the Solaris (SunOS) one is by head and Irix, I just
If there is some version specific details (like between different versions)
try the results of `uname -r`. Best to do this inside a `uname` switch.
Hence, the above can be used in your system-wide xstartup script.
> I've got minimal xstartup file as follows:
> 397 rgi "at" shannon>cat xstartup
> xterm &
> dtwm &
Dost this work properly? I frequently have the most absurd problems (that
was HP-UX however) Might need to start cde with an other command, don't know
by head now.
> 398 rgi "at" shannon>
> This works fine on Solaris, and, when I run vncserver, vncviewer gives
> me a miniature version of my Solaris desktop, all the
> applications along
> the bottom, buttons one two three four, four screens, maybe the colour
> not quite right on screen four, an xterm in screen one. Fine.
> I've got a generalised xstartup file, as follows:
> 398 rgi "at" shannon>cat xstartup.fancy
> xterm &
> set OSNAME=`uname -s`
> switch ($OSNAME)
> case IRIX:
> # echo "xxx IRIX"
> /usr/bin/X11/xrdb $HOME/.Xresources
> /usr/bin/X11/4Dwm -launch &
> case Linux:
> # echo "xxx Linux"
> /usr/bin/gnome-wm &
> case SunOS:
> # echo "Solaris"
> /usr/dt/bin/dtwm &
> # echo "something else"
> 399 rgi "at" shannon>
> (I've tried a #!/bin/sh version as well.) Now this should be
> functionally equivalent to the minimal xstartup when used
> under solaris,
> and csh -x xstartup indicates it is doing what I would want it to do.
> But, immediately after typing vncserver, an xterm pops up on
> my desktop,
> and when I connect with vncviewer, I get the Grey Screen Of
> Despair. The
> Irix situation is the same, I haven't tried it on Linux yet.
You have a bad $DISPLAY setting. I bet there is one in your .cshrc file.
Better not to use csh scripts for this reason. Also, beter move the $DISPLAY
setting to .login. If it needs to be in .cshrc, first test if it is not
already set since most setting set's it wrong.
> The vnc logfile /users/ncs/rgi/.vnc/shannon:1.log contains nothing out
> of the ordinary.
It does not get anything... read on.
> The dt error logfile /users/ncs/rgi/.dt/errorlog contains
> Fri Jun 07 13:13:49 2002
> Workspace Manager: Another window manager is running on screen 0
It is started with the wrong $DISPLAY setting: should be :1
> Fri Jun 07 13:13:49 2002
> Workspace Manager: Unable to manage any screens on display.
Read $DISPLAY :0, not the one you needed.
> 131 rgi "at" shannon>
> What am I doing wrong, am I being really stupid?
For most current window managers that go beyond managing the windows (read
cde, kde, gnome etc.) it is more easy to start Xvnc (vncserver) with the
option '-query localhost' or equivalent. This does not need any xstartup
script (the vncserver script might need it, read that script for details).
You can leave it as-is or empty at your wishes. It provides a complete login
as if with an other (remote) Xserver like exceed or pc-xware. Try it now
with `vncserver -query localhost` and connect to this server with your
The setup at http://www.sourcecodecorner.com/articles/vnc/linux.asp uses
this too, among other details.