Thanks for the input. It turned out I was stupidly using the wrong
static version of sh! Final version (never say final!) is now... all
working OK except for Irix, where I still haven't got my head around
Windows Manager.

ttks again.

Dick

268 rgi@shannon>cat xstartup
#!/bin/sh -x
#set
xterm &
case `uname` in
IRIX)
        /usr/bin/X11/xrdb $HOME/.Xresources
        /usr/bin/X11/toolchest -name ToolChest
#       fm &
#       fmserv &
#       imdmonitor &
#       iconcatalog Applications &
        /usr/bin/X11/4Dwm -launch -xrm *SG_UseBackgrounds: True &
#       /usr/bin/X11/twm
        ;;
Linux)
        /usr/bin/gnome-session &
#       /usr/bin/startkde &
#       /usr/X11R6/bin/fvwm2 &
        ;;
SunOS)
#       need to check writability of /tmp/.X11-unix
        if [ ! -w '/tmp/.X11-unix' ] ; then
                echo "/tmp/.X11-unix not writable"
                exit
        fi
        /usr/dt/bin/dtwm &
        ;;
*)
#       echo "something else"
        ;;
esac
269 rgi@shannon>


"Beerse, Corni" wrote:
> 
> > -----Original Message-----
> > From: Richard Gillman [mailto:[EMAIL PROTECTED]]
> 
> I can't help, it just asks for a setup like
> http://www.sourcecodecorner.com/articles/vnc/linux.asp.

I had read this...

> If that's no solution, read on...
> 
> >
> > 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.
> 
> General approach for single filesystem, multi architecture systems, like
> yours:
> 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
> switch:
> 
> For sh scripts:
> case `uname` in
>         Irix)
>                 # Irix command sequence
>                 ;;
>         Linux)
>                 # Linux command sequence
>                 ;;
>         SunOs)
>                 # Solaris command sequence
>                 ;;
>         *)
>                 # none of the above, might need a message here.
>                 ;;
> esac
> 
> 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
> don't know.
> 
> 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@shannon>cat xstartup
> > #!/bin/sh
> > 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@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:

> Success
> 
> CBee
> _______________________________________________
> VNC-List mailing list
> [EMAIL PROTECTED]
> http://www.realvnc.com/mailman/listinfo/vnc-list

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