1 AUTHOR: Jim Gifford <lfs-hints at jg555.com>
5 LICENSE: GNU Free Documentation License Version 1.2
7 SYNOPSIS: Setup Tightvnc for LFS
9 DESCRIPTION: This hint will show you how to setup tightvnc
10 to access a desktop over the internet.
12 PREREQUISITES: Xinetd Xfree86 kdm or gdm
15 Introduction to tightvnc
17 Download location http://osdn.dl.sourceforge.net/sourceforge/vnc-tight
20 VNC (an abbreviation for Virtual Network Computing) is a great client/server
21 software package allowing remote network access to graphical desktops. With
22 VNC, you can access your machine from everywhere provided that your machine
23 is connected to the Internet.
26 Installation of tightvnc
28 Install tightvnc by running the following commands:
35 ./vncinstall /usr/vnc/bin /usr/vnc/man
36 mkdir /usr/vnc/classes
37 cp classes/* /usr/vnc/classes
42 Important NOTE:: Files may be in a different location. It depends on your
47 /etc/X11/xdm/xdm-config
49 Comment out the entry "DisplayManager.requestPort: 0" by adding a !.
50 The line should look like this "! DisplayManager.requestPort: 0".
52 /opt/kde3/share/config/kdm/kdmrc
54 Locate the line XDMCP and change it from false to true.
58 Uncomment out the entry "# * #any host can get a login window" by remove
59 the first #. The line should look like this
60 " * #any host can get a login window".
65 Important NOTE:: Files may be in a different location. It depends on your
70 /etc/X11/xdm/xdm-config
72 Comment out the entry "DisplayManager.requestPort: 0" by adding a !.
73 The line should look like this "! DisplayManager.requestPort: 0".
77 Start gdmconfig. Select Expert Mode. Ensure that Enable XDMCP is
80 Locate the line XDMCP and change it from false to true.
84 Uncomment out the entry "# * #any host can get a login window" by remove
85 the first #. The line should look like this
86 " * #any host can get a login window".
93 Edit the services file and add the following entries.
96 vnc-640x480x8 5950/tcp
97 vnc-800x600x8 5951/tcp
98 vnc-1024x768x8 5952/tcp
99 vnc-1280x1024x8 5953/tcp
100 vnc-1600x1200x8 5954/tcp
101 vnc-640x480x16 5960/tcp
102 vnc-800x600x16 5961/tcp
103 vnc-1024x768x16 5962/tcp
104 vnc-1280x1024x16 5963/tcp
105 vnc-1600x1200x16 5964/tcp
106 vnc-640x480x24 5970/tcp
107 vnc-800x600x24 5971/tcp
108 vnc-1024x768x24 5972/tcp
109 vnc-1280x1024x24 5973/tcp
110 vnc-1600x1200x24 5974/tcp
111 vnc-640x480x32 5980/tcp
112 vnc-800x600x32 5981/tcp
113 vnc-1024x768x32 5982/tcp
114 vnc-1280x1024x32 5983/tcp
115 vnc-1600x1200x32 5984/tcp
119 Edit the xinetd.conf file and add the following entries.
121 service vnc-640x480x8
129 server = /usr/vnc/bin/Xvnc
130 server_args = -inetd -query localhost -once -geometry 640x480 -depth 8
133 service vnc-800x600x8
141 server = /usr/vnc/bin/Xvnc
142 server_args = -inetd -query localhost -once -geometry 800x600 -depth 8
145 service vnc-1024x768x8
153 server = /usr/vnc/bin/Xvnc
154 server_args = -inetd -query localhost -once -geometry 1024x768 -depth 8
157 service vnc-1280x1024x8
165 server = /usr/vnc/bin/Xvnc
166 server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 8
169 service vnc-1600x1200x8
177 server = /usr/vnc/bin/Xvnc
178 server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 8
181 service vnc-640x480x16
189 server = /usr/vnc/bin/Xvnc
190 server_args = -inetd -query localhost -once -geometry 640x480 -depth 16
193 service vnc-800x600x16
201 server = /usr/vnc/bin/Xvnc
202 server_args = -inetd -query localhost -once -geometry 800x600 -depth 16
205 service vnc-1024x768x16
213 server = /usr/vnc/bin/Xvnc
214 server_args = -inetd -query localhost -once -geometry 1024x768 -depth 16
217 service vnc-1280x1024x16
225 server = /usr/vnc/bin/Xvnc
226 server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 16
229 service vnc-1600x1200x16
237 server = /usr/vnc/bin/Xvnc
238 server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 16
241 service vnc-640x480x24
249 server = /usr/vnc/bin/Xvnc
250 server_args = -inetd -query localhost -once -geometry 640x480 -depth 24
253 service vnc-800x600x24
261 server = /usr/vnc/bin/Xvnc
262 server_args = -inetd -query localhost -once -geometry 800x600 -depth 24
265 service vnc-1024x768x24
273 server = /usr/vnc/bin/Xvnc
274 server_args = -inetd -query localhost -once -geometry 1024x768 -depth 24
277 service vnc-1280x1024x24
285 server = /usr/vnc/bin/Xvnc
286 server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 24
289 service vnc-1600x1200x24
297 server = /usr/vnc/bin/Xvnc
298 server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 24
301 service vnc-640x480x32
309 server = /usr/vnc/bin/Xvnc
310 server_args = -inetd -query localhost -once -geometry 640x480 -depth 32
313 service vnc-800x600x32
321 server = /usr/vnc/bin/Xvnc
322 server_args = -inetd -query localhost -once -geometry 800x600 -depth 32
325 service vnc-1024x768x32
333 server = /usr/vnc/bin/Xvnc
334 server_args = -inetd -query localhost -once -geometry 1024x768 -depth 32
337 service vnc-1280x1024x32
345 server = /usr/vnc/bin/Xvnc
346 server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 32
349 service vnc-1600x1200x32
357 server = /usr/vnc/bin/Xvnc
358 server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 32
364 Reboot the machine. After reboot go to another computer and try the following.
365 You will need to load the vncviewer on another computer to test. There are
366 clients for Windows and Unix. The java viewer is not supported under this
369 To connect to your server you will need to start the vncviewer. Enter in the
370 IP address or the FQDN of the service with the last two numbers of the port
371 you want to connect to. In our suggested installation here is a list of the
372 ports and associated desktop configurations.
374 Example: vnc.server.com:60
375 Would connect to vnc.server.com at 640x460 16 bit color
377 Screen Port # Last 2 of Port
401 CHANGELOG: 1.6 Update CVS Location
402 1.5 Updated to New Hint Format
404 1.3 Fixed Download Link
406 1.1 Added Pre-requisites
409 New Version of this document can be viewed from http://cvs.jg555.com/viewcvs.cgi/lfs-hints