[K12OSN] Remote control of ltsp-clients with VNC

Odin Nøsen odin at visdom.org
Tue Jan 10 08:48:38 UTC 2006

This is how we enable remote control of the ltsp-clients...

Login at the terminalserver as root. Edit /opt/ltsp/i386/etc/lts.conf and add:

X4_MODULE_02 = vnc

Then edit the file /opt/ltsp/i386/etc/build_x4_cfg
 and add the following under 'Secton "Screen"' (but over 'EndSubSection'), so it looks
like this:

 Section "Screen"
       Identifier "Screen0"
       Device "My Video Card"
       Monitor "My Monitor"
       DefaultDepth  ${X_COLOR_DEPTH:-16}
       Subsection "Display"
               Depth ${X_COLOR_DEPTH:-16}
               Modes ${MODE[*]}
               Option "httpdir" "/usr/share/vnc/classes"
               Option "PasswordFile" "/root/.vnc/passwd"
               Option "rfbport" "5900"
               Option "usevnc"

Now you'll have to make a password for the vnc-session. Run this command:

 [root at ts01 ~]$ /usr/bin/vncpassword

Choose a password and copy the password file into the ltsp-tree

 [root at ts01 ~]$ cp -R -p /root/.vnc /opt/ltsp/i386/root/

Now you must copy the vnc-module and some libraries into the ltsp-tree:

 [root at ts01 ~]$ cp /usr/X11R6/lib/modules/extensions/vnc.so
 [root at ts01 ~]$ cp /usr/lib/libstdc  .so.6 /opt/ltsp/i386/usr/lib/
 [root at ts01 ~]$ cp /lib/libgcc_s.so.1 /opt/ltsp/i386/lib/

I am told that you should make this link also, I am not sure if its necessary, but we'll
do it:

 [root at ts01 ~]$ ln -s /lib/libgcc_s.so.1_backup /opt/ltsp/i386/lib/libgcc_s.so -f

Reboot the ltsp-client and use 'vncviewer' with ip og hostname to shadow the client.

Good luck... works like a charm. It may not be most secure way of doing it. But it's
fast and it works.

"!" from Odin

More information about the K12OSN mailing list