Typo
[linux_from_scratch_hints.git] / OLD / tightvnc.txt
blobffbb32324279c084f87a92f8acbfa51f3fcd4c4b
1 TITLE:          Setting up tightvnc with KDM or GDM
2 LFS VERSION:    any
3 AUTHOR:         Jim Gifford <giffordj@linkline.com>
5 SYNOPSIS:
6         How to setup tightvnc with KDM or GDM.
8 HINT:
9 $Revision: 1.1 $
11 PREREQUISITES
13         xinetd installed
14         kdm installled or gdm installed
16 Introduction to tightvnc
18 Download location       http://osdn.dl.sourceforge.net/sourceforge/vnc-tight
19 Version used            1.2.6
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. 
26 ---
27 Installation of tightvnc
29 Install tightvnc by running the following commands:
31                 xmkmf
32                 make World
33                 cd Xvnc 
34                 /configure
35                 make -s
36                 ./vncinstall /usr/vnc/bin /usr/vnc/man
37                 mkdir /usr/vnc/classes
38                 cp classes/* /usr/vnc/classes
40 ----
41 Configuring kdm
43 Important NOTE:: Files may be in a different location. It depends on your 
44 installation.
46 Config files
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.
57 /etc/X11/xdm/Xaccess
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".
62 ----
63 Configuring gdm
65 Important NOTE:: Files may be in a different location. It depends on your
66 installation.
68 Config files
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".
75 Run gdm-config
77 Start gdmconfig. Select Expert Mode. Ensure that Enable XDMCP is 
78 checked
80 Locate the line XDMCP and change it from false to true.
82 /etc/X11/xdm/Xaccess
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".
87 ----
88 Configuring xinetd
90 /etc/services 
92 Edit the services file and add the following entries.
94 # VNC Ports
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
116 /etc/xinetd.conf
118 Edit the xinetd.conf file and add the following entries.
120 service vnc-640x480x8
122         disable = no
123         flags = REUSE
124         protocol = tcp
125         socket_type = stream
126         wait = no
127         user = nobody
128         server = /usr/vnc/bin/Xvnc
129         server_args = -inetd -query localhost -once -geometry 640x480 -depth 8
132 service vnc-800x600x8
134         disable = no
135         flags = REUSE
136         protocol = tcp
137         socket_type = stream
138         wait = no
139         user = nobody
140         server = /usr/vnc/bin/Xvnc
141         server_args = -inetd -query localhost -once -geometry 800x600 -depth 8
144 service vnc-1024x768x8
146         disable = no
147         flags = REUSE
148         protocol = tcp
149         socket_type = stream
150         wait = no
151         user = nobody
152         server = /usr/vnc/bin/Xvnc
153         server_args = -inetd -query localhost -once -geometry 1024x768 -depth 8
156 service vnc-1280x1024x8
158         disable = no
159         flags = REUSE
160         protocol = tcp
161         socket_type = stream
162         wait = no
163         user = nobody
164         server = /usr/vnc/bin/Xvnc
165         server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 8
168 service vnc-1600x1200x8
170         disable = no
171         flags = REUSE
172         protocol = tcp
173         socket_type = stream
174         wait = no
175         user = nobody
176         server = /usr/vnc/bin/Xvnc
177         server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 8
180 service vnc-640x480x16
182         disable = no
183         flags = REUSE
184         protocol = tcp
185         socket_type = stream
186         wait = no
187         user = nobody
188         server = /usr/vnc/bin/Xvnc
189         server_args = -inetd -query localhost -once -geometry 640x480 -depth 16
192 service vnc-800x600x16
194         disable = no
195         flags = REUSE
196         protocol = tcp
197         socket_type = stream
198         wait = no
199         user = nobody
200         server = /usr/vnc/bin/Xvnc
201         server_args = -inetd -query localhost -once -geometry 800x600 -depth 16
204 service vnc-1024x768x16
206         disable = no
207         flags = REUSE
208         protocol = tcp
209         socket_type = stream
210         wait = no
211         user = nobody
212         server = /usr/vnc/bin/Xvnc
213         server_args = -inetd -query localhost -once -geometry 1024x768 -depth 16
216 service vnc-1280x1024x16
218         disable = no
219         flags = REUSE
220         protocol = tcp
221         socket_type = stream
222         wait = no
223         user = nobody
224         server = /usr/vnc/bin/Xvnc
225         server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 16
228 service vnc-1600x1200x16
230         disable = no
231         flags = REUSE
232         protocol = tcp
233         socket_type = stream
234         wait = no
235         user = nobody
236         server = /usr/vnc/bin/Xvnc
237         server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 16
240 service vnc-640x480x24
242         disable = no
243         flags = REUSE
244         protocol = tcp
245         socket_type = stream
246         wait = no
247         user = nobody
248         server = /usr/vnc/bin/Xvnc
249         server_args = -inetd -query localhost -once -geometry 640x480 -depth 24
252 service vnc-800x600x24
254         disable = no
255         flags = REUSE
256         protocol = tcp
257         socket_type = stream
258         wait = no
259         user = nobody
260         server = /usr/vnc/bin/Xvnc
261         server_args = -inetd -query localhost -once -geometry 800x600 -depth 24
264 service vnc-1024x768x24
266         disable = no
267         flags = REUSE
268         protocol = tcp
269         socket_type = stream
270         wait = no
271         user = nobody
272         server = /usr/vnc/bin/Xvnc
273         server_args = -inetd -query localhost -once -geometry 1024x768 -depth 24
276 service vnc-1280x1024x24
278         disable = no
279         flags = REUSE
280         protocol = tcp
281         socket_type = stream
282         wait = no
283         user = nobody
284         server = /usr/vnc/bin/Xvnc
285         server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 24
288 service vnc-1600x1200x24
290         disable = no
291         flags = REUSE
292         protocol = tcp
293         socket_type = stream
294         wait = no
295         user = nobody
296         server = /usr/vnc/bin/Xvnc
297         server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 24
300 service vnc-640x480x32
302         disable = no
303         flags = REUSE
304         protocol = tcp
305         socket_type = stream
306         wait = no
307         user = nobody
308         server = /usr/vnc/bin/Xvnc
309         server_args = -inetd -query localhost -once -geometry 640x480 -depth 32
312 service vnc-800x600x32
314         disable = no
315         flags = REUSE
316         protocol = tcp
317         socket_type = stream
318         wait = no
319         user = nobody
320         server = /usr/vnc/bin/Xvnc
321         server_args = -inetd -query localhost -once -geometry 800x600 -depth 32
324 service vnc-1024x768x32
326         disable = no
327         flags = REUSE
328         protocol = tcp
329         socket_type = stream
330         wait = no
331         user = nobody
332         server = /usr/vnc/bin/Xvnc
333         server_args = -inetd -query localhost -once -geometry 1024x768 -depth 32
336 service vnc-1280x1024x32
338         disable = no
339         flags = REUSE
340         protocol = tcp
341         socket_type = stream
342         wait = no
343         user = nobody
344         server = /usr/vnc/bin/Xvnc
345         server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 32
348 service vnc-1600x1200x32
350         disable = no
351         flags = REUSE
352         protocol = tcp
353         socket_type = stream
354         wait = no
355         user = nobody
356         server = /usr/vnc/bin/Xvnc
357         server_args = -inetd -query localhost -once -geometry 1600x1200 -depth 32
360 ----
361 Final Step
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
370 configurations.
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
376 640x480x8       5950    50
377 800x600x8       5951    51
378 1024x768x8      5952    52
379 1280x1024x8     5953    53
380 1600x1200x8     5954    54
381 640x480x16      5960    60
382 800x600x16      5961    61
383 124x768x16      5962    62
384 1280x1024x16    5963    63
385 1600x1200x16    5964    64
386 640x480x24      5970    70
387 800x600x24      5971    71
388 1024x768x24     5972    72
389 1280x1024x24    5973    73
390 1600x1200x24    5974    74
391 640x480x32      5980    80
392 800x600x32      5981    81
393 1024x768x32     5982    82
394 1280x1024x32    5983    83
395 1600x1200x32    5984    84
398 Mail suggestions to giffordj@linkline.com
400 New Version of this document can be viewed from
401 http://www.jg555.com/cvs