[Suns-at-Home] VNC with CDE problems
mjm@wru.org
mjm@wru.org
Thu, 25 Oct 2001 22:04:05 -0500
sure enough!
you need to set Xvnc owner/group/perms to match those of Xsun.
ie chgrp root;chmod 2775
also, if you want to run dtwm, you need to rip out all the useless stuff it
puts in the default startup script and just use Xsession.
/usr/openwin/bin needs to be in the path so things can be found, such as
Xauth.
I've got a little script that runs vnc:
#!/bin/ksh
PATH=$PATH:/usr/dt/bin
cd ~
vncserver -depth 24 -geometry 1152x900 :1
and /etc/init.d/vnc
#!/bin/ksh
#start and stop vnc sessions.
case "$1" in
'start')
printf "Starting VNC servers for: "
for a in /export/home/*/bin/vnc
do
cd ${a%%/bin/vnc}
id=`pwd|sed -e 's-/export/home/--'`
printf "%s, " $id
su - $id bin/vnc&
done
printf "\n"
;;
'stop')
echo Stopping vnc sessions
ps -ef|grep -v awk|awk '/Xvnc :/ {print $9}'|while read session
do
/usr/local/bin/vncserver -kill $session
done
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit 0
and /etc/rc2.d/S99vnc:
#!/bin/ksh
#start and stop vnc sessions.
printf "Starting VNC servers for: "
case "$1" in
'start')
/etc/init.d/vnc $1
;;
'stop')
echo Stopping vnc sessions
ps -ef|grep -v awk|awk '/Xvnc :/ {print $9}'|while read session
do
/usr/local/bin/vncserver -kill $session
done
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit 0
(that little fiddly bit needed to get the init.d script to run under ksh)
all this so that vnc is up and running for everybody on the box right after
boot.
On Tue, Oct 23, 2001 at 11:54:37PM -0400, Mike wrote:
> Hello,
>
> I've got a headless sparcstation 20 which I have installed the VNC server on.
> I have it working but I'm running into a small problem. When I set dtwm as
> the window manager it drops core almost immediatly after it starts up,
> unless I start the vnc server as root, which isn't what I really want to do.
> When I have twm as the wm (which is what VNC defaults to) It works fine when
> started as me or root.
>
> Does anyone have any experience with dtwm and VNC who could offer some advice?
>
> Thanks,
>
> Mike
> _______________________________________________
> Suns-at-Home mailing list
> Suns-at-Home@net-kitchen.com
> http://www.net-kitchen.com/mailman/listinfo/suns-at-home
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -- Benjamin Franklin, 1759
***** Join the anti-spam movement! details at http://www.cauce.org