Subject: Starting VNC
To: NetBSD/cobalt <port-cobalt@NetBSD.org>
From: Andreas Yankopolus <andreas@yank.to>
List: port-cobalt
Date: 02/11/2004 23:44:06
Brian,

Install the /usr/pkgsrc/net/vnc package then type "vncserver" to start 
a server. You can connect using a VNC viewer. The first VNC session 
appears on port 5901, the second on port 5902, etcetera.

Running vncserver will create a ~/.vnc directory. You can put an 
xstartup program in that directory. I use:

***
#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -sl 1000 -title "$VNCDESKTOP Desktop" &
fvwm2 &
***

Note that this starts the fvwm2 window manager, which you may or may 
not like. It's located in /usr/pkgsrc/wm/fvwm2 and configured via a 
~/.fvwm2rc file. Mine's fairly long, but I'll happily send it to you in 
an offline email.

You can run VNC over SSH as follows. From the client, type:

ssh user@ipaddr -L 5901:localhost:5901

where "user" is your username on the Qube, and "ipaddr" is its IP 
address.

You then point your VNC viewer to localhost to connect.

Cheers,

Andreas