I am trying to write an xstartup file to cater for a mixed environment,
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.

I've got minimal xstartup file as follows:

397 rgi@shannon>cat xstartup
#!/bin/sh
xterm & 
dtwm &
398 rgi@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@shannon>cat xstartup.fancy
#!/bin/csh
xterm &
set OSNAME=`uname -s`
switch ($OSNAME)
case IRIX:
#       echo "xxx IRIX"
        /usr/bin/X11/xrdb $HOME/.Xresources
        /usr/bin/X11/4Dwm -launch &

        breaksw
case Linux:
#       echo "xxx Linux"
        /usr/bin/gnome-wm &
        breaksw
case SunOS:
#       echo "Solaris"
        /usr/dt/bin/dtwm &
        breaksw
default:
#       echo "something else"
        breaksw
endsw
399 rgi@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.

The vnc logfile /users/ncs/rgi/.vnc/shannon:1.log contains nothing out
of the ordinary.

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


Fri Jun 07 13:13:49 2002
Workspace Manager: Unable to manage any screens on display.

131 rgi@shannon>

What am I doing wrong, am I being really stupid?

Any input appreciated.

tia, Dick

-- 
Richard Gillman
iTSS UNIX Systems Group, Maclean Building, Wallingford OX10 8BB
Tel: 01491 - 692 339
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to