1 TITLE: Setting up tightvnc with KDM or GDM
3 AUTHOR: Jim Gifford <giffordj@linkline.com>
6 How to setup tightvnc with KDM or GDM.
14 kdm installled or gdm installed
16 Introduction to tightvnc
18 Download location http://osdn.dl.sourceforge.net/sourceforge/vnc-tight
21 VNC (an abbreviation for Virtual Network Computing) is a great client/server
22 software package allowing remote network access to graphical desktops. With
23 VNC, you can access your machine from everywhere provided that your machine
24 is connected to the Internet.
27 Installation of tightvnc
29 Install tightvnc by running the following commands:
36 ./vncinstall /usr/vnc/bin /usr/vnc/man
37 mkdir /usr/vnc/classes
38 cp classes/* /usr/vnc/classes
43 Important NOTE:: Files may be in a different location. It depends on your
48 /etc/X11/xdm/xdm-config
50 Comment out the entry "DisplayManager.requestPort: 0" by adding a !.
51 The line should look like this "! DisplayManager.requestPort: 0".
53 /opt/kde3/share/config/kdm
55 Locate the line XDMCP and change it from false to true.
59 Uncomment out the entry "# * #any host can get a login window" by remove the
60 first #. The line should look like this " * #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 the
85 first #. The line should look like this " * #any host can get a login window".
92 Edit the services file and add the following entries.
95 vnc-640x480x8 5950/tcp
96 vnc-800x600x8 5951/tcp
97 vnc-1024x768x8 5952/tcp
98 vnc-1280x1024x8 5953/tcp
99 vnc-1600x1200x8 5954/tcp
100 vnc-640x480x16 5960/tcp
101 vnc-800x600x16 5961/tcp
102 vnc-1024x768x16 5962/tcp
103 vnc-1280x1024x16 5963/tcp
104 vnc-1600x1200x16 5964/tcp
105 vnc-640x480x24 5970/tcp
106 vnc-800x600x24 5971/tcp
107 vnc-1024x768x24 5972/tcp
108 vnc-1280x1024x24 5973/tcp
109 vnc-1600x1200x24 5974/tcp
110 vnc-640x480x32 5980/tcp
111 vnc-800x600x32 5981/tcp
112 vnc-1024x768x32 5982/tcp
113 vnc-1280x1024x32 5983/tcp
114 vnc-1600x1200x32 5984/tcp
118 Edit the xinetd.conf file and add the following entries.
120 service vnc-640x480x8
128 server = /usr/vnc/bin/Xvnc
129 server_args = -inetd -query localhost -once -geometry 640x480 -depth 8
132 service vnc-800x600x8
140 server = /usr/vnc/bin/Xvnc
141 server_args = -inetd -query localhost -once -geometry 800x600 -depth 8
144 service vnc-1024x768x8
152 server = /usr/vnc/bin/Xvnc
153 server_args = -inetd -query localhost -once -geometry 1024x768 -depth 8
156 service vnc-1280x1024x8
164 server = /usr/vnc/bin/Xvnc
165 server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 8
168 service vnc-1600x1200x8
176 server = /usr/vnc/bin/Xvnc
177 server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 8
180 service vnc-640x480x16
188 server = /usr/vnc/bin/Xvnc
189 server_args = -inetd -query localhost -once -geometry 640x480 -depth 16
192 service vnc-800x600x16
200 server = /usr/vnc/bin/Xvnc
201 server_args = -inetd -query localhost -once -geometry 800x600 -depth 16
204 service vnc-1024x768x16
212 server = /usr/vnc/bin/Xvnc
213 server_args = -inetd -query localhost -once -geometry 1024x768 -depth 16
216 service vnc-1280x1024x16
224 server = /usr/vnc/bin/Xvnc
225 server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 16
228 service vnc-1600x1200x16
236 server = /usr/vnc/bin/Xvnc
237 server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 16
240 service vnc-640x480x24
248 server = /usr/vnc/bin/Xvnc
249 server_args = -inetd -query localhost -once -geometry 640x480 -depth 24
252 service vnc-800x600x24
260 server = /usr/vnc/bin/Xvnc
261 server_args = -inetd -query localhost -once -geometry 800x600 -depth 24
264 service vnc-1024x768x24
272 server = /usr/vnc/bin/Xvnc
273 server_args = -inetd -query localhost -once -geometry 1024x768 -depth 24
276 service vnc-1280x1024x24
284 server = /usr/vnc/bin/Xvnc
285 server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 24
288 service vnc-1600x1200x24
296 server = /usr/vnc/bin/Xvnc
297 server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 24
300 service vnc-640x480x32
308 server = /usr/vnc/bin/Xvnc
309 server_args = -inetd -query localhost -once -geometry 640x480 -depth 32
312 service vnc-800x600x32
320 server = /usr/vnc/bin/Xvnc
321 server_args = -inetd -query localhost -once -geometry 800x600 -depth 32
324 service vnc-1024x768x32
332 server = /usr/vnc/bin/Xvnc
333 server_args = -inetd -query localhost -once -geometry 1024x768 -depth 32
336 service vnc-1280x1024x32
344 server = /usr/vnc/bin/Xvnc
345 server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 32
348 service vnc-1600x1200x32
356 server = /usr/vnc/bin/Xvnc
357 server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 32
363 Reboot the machine. After reboot go to another computer and try the following.
364 You will need to load the vncviewer on another computer to test. There are clients
365 for Windows and Unix. The java viewer is not supported under this configuration.
367 To connect to your server you will need to start the vncviewer. Enter in the IP address
368 or the FQDN of the service with the last two numbers of the port you want to connect
369 to. In our suggested installation here is a list of the ports and associated desktop
372 Example: vnc.server.com:60
373 Would connect to vnc.server.com at 640x460 16 bit color
375 Screen Port # Last 2 of Port
398 Mail suggestions to giffordj@linkline.com
400 New Version of this document can be viewed from
401 http://www.jg555.com/cvs