~/.vnc/xstart (example at: https://archive.realvnc.com/pipermail/vnc-list/2006-March/054336.html)
#!/bin/sh
## makes copy/paste work for realvnc
vncconfig -nowin&
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec /etc/X11/xinit/xinitrc
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
------------------ examples
#!/bin/tcsh
# copy/past sync-up between different X-window buffers
if (-x /cadtools/contrib/bin/autocutsel) then
/cadtools/contrib/bin/autocutsel -fork
endif
# using realvnc?
if ($VNCHOME =~ /cadtools/apps/vnc/real*) then
# makes copy/paste work for realvnc
vncconfig -nowin &
else
# keyboard mapping for tightvnc
if (-r $HOME/xmodmap/vnc.txt) then
xmodmap $HOME/xmodmap/vnc.txt
endif
endif
# .Xdefaults loadings
if (-r $HOME/.Xdefaults) then
xrdb $HOME/.Xdefaults
endif
# Window manager startup
if (`/bin/uname -s` == "Linux") then
### gnome Linux RHELv3 or RH8 ###
unset SESSION_MANAGER
unsetenv SESSION_MANAGER
unsetenv LD_LIBRARY_PATH
exec gnome-session
else
### olvwm legacy Solaris env ###
exec olvwm
endif
No comments:
Post a Comment