TightVNC 

Info 

TightVNC is a VNC distribution with many new features, improvements, and bugfixes over VNC. It is optimized for faster operation on slow network links such as modem connections, provides more configuration options in the server, features automatic SSH tunneling in the Unix vncviewer, and more. The modified servers and viewers are fully compatible with the original VNC software.

Rated 9.10/10.00 (128 votes)

Source 

http://www.tightvnc.com/ http://freshmeat.net/projects/tightvnc/

cmd:vnc 

Usage 

$ vncserver -geometry 800x600 :7
New 'X' desktop is sunny:7
Starting applications specified in /home/tong/.vnc/xstartup
Log file is /home/tong/.vnc/sunny:7.log
vncviewer &
$ vncserver -kill :7
Killing Xvnc process ID 4219

Source 

http://www.uk.research.att.com/vnc/

ftp://ftp.uk.research.att.com/pub/vnc/dist/vnc-3.3.3r9_x86_win32.tgz http://www.uk.research.att.com/vnc/dist/vnc-3.3.3r9_winsrc.tgz http://www.uk.research.att.com/vnc/dist/vnc-latest_doc.tgz http://www.uk.research.att.com/vnc/dist/vnc-3.3.3r2_x86_linux_2.0.tgz http://www.uk.research.att.com/vnc/dist/vnc-3.3.3r2_javasrc.tgz http://www.uk.research.att.com/vnc/dist/vnc-3.3.3r2_unixsrc.tgz

http://www.zdnet.com/products/stories/reviews/0,4161,406544,00.html http://www.linux-mag.com/cgi-bin/printer.pl?issue=2000-11&article=desktop http://www.help2go.com/BestoftheNet/VNC.cfm http://www.utilitygeek.com/software/virtual/vnc.html http://security-archive.merton.ox.ac.uk/nt-security-199904/0011.html http://security-archive.merton.ox.ac.uk/nt-security-199904/0001.html http://www.tecmag.com/remote.htm

Build, Test run & Installation 

Help 

You should copy these programs to some directory which is in your PATH environment variable, such as /usr/local/bin:

% cp vncviewer vncserver vncpasswd vncconnect Xvnc /usr/local/bin

If you want to use the Java VNC viewer, you should copy the class files from the classes directory to some suitable installation directory such as /usr/local/vnc/classes:

% mkdir -p /usr/local/vnc/classes
% cp classes/* /usr/local/vnc/classes

We recommend that you use the vncserver script to run Xvnc for you. You can edit the script as appropriate for your site. Things you may need to change include:

Test Run 

server 
vncserver -h
root@sunny# vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'X' desktop is sunny:1

Creating default startup script /home/tong/.vnc/xstartup Starting applications specified in /home/tong/.vnc/xstartup Log file is /home/tong/.vnc/sunny:1.log

client 
vncviewer -h
tong@sunny:~/$ vncviewer &

— connect to sunny:1, AOK

— connected as root!!!

Stop 
root@sunny# vncserver -kill sunny:7
Killing Xvnc process ID 24694
Use another resolution & connection number 
root@sunny# vncserver -geometry 800x600 :7
New 'X' desktop is sunny:7
Starting applications specified in ...
Use 24b color depth to capture Tk apps. 
vncserver -depth 24 -geometry 800x600 :8

Further Info 

Multiple connections 

When you make a connection to a VNC server, all other existing connections are normally closed. This is for security reasons, and because we normally think of VNC as a tool for mobility: your desktop follows you from place to place.

Command line options: -shared can fix it.

Security Comments 

From "Making VNC more secure using SSH" http://www.uk.research.att.com/vnc/sshvnc.html

VNC uses a random challenge-response system to provide the basic authentication that allows you to connect to a VNC server. This is reasonably secure; the password is not sent over the network. Once you are connected, however, traffic between the viewer and the server is unencrypted, and could be snooped by someone with access to the intervening network.

So, make it simple, run vncserver as myself and avoid any further login requests.

How to 'tunnel' the VNC protocol through SSH is discussed in the article.

H has another advantage. It can compress the data as well. This is particularly useful if the link between you and the server is a slow one. It might be a better way to connect form my home to office using cable modem. And it might be the only way for vnc to go through the univ. firewall.

Client is not authorized to connect to Server 

08/06/01 18:42:00 Xvnc version 3.3.3r2
08/06/01 18:42:00 Copyright (C) AT&T Laboratories Cambridge.
08/06/01 18:42:00 All Rights Reserved.
08/06/01 18:42:00 See http://www.uk.research.att.com/vnc for information on VNC
08/06/01 18:42:00 Desktop name 'X' (sunny:7)
08/06/01 18:42:00 Protocol version supported 3.3
08/06/01 18:42:00 Listening for VNC connections on TCP port 5907
08/06/01 18:42:00 Listening for HTTP connections on TCP port 5807
08/06/01 18:42:00   URL http://sunny:5807
Font directory '/usr/X11R6/lib/X11/fonts/100dpi/' not found - ignoring
AUDIT: Fri Jun  8 18:42:03 2001: 8084 Xvnc: client 1 rejected from local host
Xlib: connection to ":7.0" refused by server
Xlib: Client is not authorized to connect to Server
xrdb: Can't open display ':7'
AUDIT: Fri Jun  8 18:42:03 2001: 8084 Xvnc: client 1 rejected from local host
Xlib: connection to ":7.0" refused by server
Xlib: Client is not authorized to connect to Server
xsetroot:  unable to open display ':7'
AUDIT: Fri Jun  8 18:42:03 2001: 8084 Xvnc: client 1 rejected from local host
[...]

If you get a 'Client is not authorized to connect to Server' or similar message, there's something wrong with the X authority setup - perhaps xauth is not on your path? You could try using xhost to bypass this temporarily, but we wouldn't recomend this as a long-term solution. There should be some indication in the log file if xauth has failed.

Client is not authorized to connect to Server 

From http://www.uk.research.att.com/vnc/archives/2000-06/0199.html

> add "xhost +" to your .vnc/xstartup file and hopefully that'll work.

No!

I found out that there is nothing wrong with my server environment. I can start my vnc server locally, within / without a X server.

The problem is that I can't remotely start it, either from xterm or remote tty connection.

Besides, locally I can specify the -display parameter to lanuch my xterm from my X-window into my vnc-client. But remotely I can't:

Xlib: connection to "sunny:7.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: sunny:7

How to use VNC? 

Newsgroups: comp.os.linux.misc
>     I have installed VNC in my Linux and Windows partitions - easy! -
>but aren't sure how to RUN the damn thing.  I gather you have to use

If the remote machine is running Linux then,

$ telnet remotemachine
 << LOGIN >>
$ vncserver #might ask for a password if first run

Then using a viewer in Windows you can connect to remotemachine:1 and display it there. Or, you can browse to http://remotemachine:5801 with a Java capable web browser.

one keyboard, two computers 

Newsgroups: comp.os.linux.x
Date: Tue, 07 Jan 2003 21:42:12 GMT
:: I have a desktop and a laptop and would like to use my laptop as a
:: secondary screen.  Also, I would like to be able to use the same
:: keyboard/mouse for both, at the same time.  beeing able to move a
:: window from one screen to another like if it was only one.
> http://dmx.sourceforge.net/[]  might be what you're looking for

I would also refer you to

http://ftp.digital.com/pub/Digital/SRC/x2x/

and

The venerable x2x tool allows a single keyboard and mouse to control multiple X sessions, and moving from screen to screen can be set to occur when the mouse cursor "moves off an edge" of one display, whence it will appear on the adjoining edge of another display. Selection and cut buffers are synchronized.

VNC can be used in much the same way as dmx; the added features of VNC (accessability from most any platform, even any java-enabled web browser, session restarts, etc) are also there. For example, if you have two screens, you can start an Xvnc session the size of both of them side-by-side. For example, if you have two 1024x768 physical displays, you can create a single Xvnc virtual desktop of size 2048x768. Then, you can run vncviewer on each of the physical displays, each vncviewer displaying half the virtual desktop. This works reasonably well if one of the screens is mostly used to park display processes. You could couple it with x2x, but note that simply dragging a window from one physical screen to the other would still require you to drag it to span the divide, then drag it the rest of the way after warping the mouse to the other display (hopefully the limitation I'm talking about is clear).

So. VNC and x2x have some advantages over dmx.

  1. x2x can be used to manipulate windows already started on the physical X servers being connected; with VNC or dmx, you have to know ahead of time to start your apps against the virtual server.

  2. VNC doesn't act as smoothly as a multi-screen-manager, but it's off-the-shelf while dmx is alpha testing, and more widely accessable (eg, one of the N computers hosting the virtual display could be a PC without X, or you could access your session via a web browser on an arbitrary desktop, etc).

Ultimately, dmx will be a better tool, and will have better support tools for dealing with window management to make the breaks between physical displays act more smoothly. But the other two are also worth looking at.

Wayne Throop