Tested on openSUSE, but should work also elsewhere, when vnc is not enabled from inetd (the way Matt uses it, which I really don't like). If you change the startup file, you need to shut down vncserver first. You can figure out what to shut down by listing the .vnc directory:
Code:
$ ls .vnc/
factory:1.log factory:1.pid passwd xstartup
so, int this case:
Code:
$ vncserver -kill :1
Original xstartup with tvm:
Code:
$ cat ~/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
If it is already running shut it down and edit for xfce:
Code:
$ cat ~/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
startxfce4 &
Start it again:
Code:
$ vncserver