On a windows box it doesn't really have the concept of different desktops (1,2,3...). On a Linux disktop you by default are using desktop 0. Vnc is unable to connect to that desktop (0) as it's already used... The next best things is desktop1. If you have three users who are all running vnc desktop settings (on the server) then they would have the desktop in the order in which they ran vncserver:
user1 runs vncserver at 11.51am - gets desktop1
user2 runs vncserver at 11.52am - gets desktop2
user3 runs vncserver at 11.53am - gets desktop3
When you run vncviwer each user has to take care to connect to his correct desktop, e.g:
vncviewer hostame_you_want_to_get_to:5901 (for user1)
vncviewer hostame_you_want_to_get_to:5902 (for user3)
vncviewer hostame_you_want_to_get_to:5903 (for user3)
You can substitute 58 for 59 and run with a web browser (using the java version of vncserver):
http://hostame_you_want_to_get_to:5801 (needs to be enabled)
Take alook at the web pages on
http://www.realvnc.com
vnc communication is NOT encrypted, for this reason I use ssh to connect to the sever and then use port forwarding to send the vnc packets through ssh. There is plenty of material on the web, use google to get started. As a quick tip, use something like:
ssh -L 5901:localhost:5901 hostame_you_want_to_get_to
syntax:
ssh -L xx:localhost:yy hostame_you_want_to_get_to
-L - used to set up the tunnel
xx - listen on this port on the local machine
yy - redirect packets on XX to this port on the remote machine (which happens to be where vncserver should be listening).
This is really great stuff when it all works, like I say, dig around on the web.
Good luck.
Hube