VNC Session Screen Script for LTSP thin clients running under Ubuntu

LTSP does not come with a built in VNC viewer (client) script. So, I created one.
This is useful if you want your thinclients to be able to remote into MacOS or Android OS’s.

I use the xtightvncviewer package. Run the following on your Ubuntu LTSP server:

ltsp-chroot
apt-get install xtightvncviwer
update-alternatives –config vncviewer #You may need to run this if there is another vncviewer installed in the chroot
exit

NOTE: You can also add this to the build client config file so that any time you upgrade or build your client image it automatically installs it.

The lts.conf options are:

VNC_SERVER = 192.168.1.1
VNC_OPTIONS = “-fullscreen -autopass”
VNC_PASSWORD = “password”

Put the below screen script goes into /opt/ltsp/amd64/usr/share/ltsp/screen.d/
IMPORTANT: Be sure to name it “vncviewer”

vncviewer <– Right click and “Save link as”

The last step is to run

ltsp-update-image

LTSP comes with these screen scripts by default:

kiosk ldm menu rdesktop shell ssh startx telnet xdmcp xfreerdp xterm

(ldm is enabled on VT_07 by default)

I use the menu screen script on VT_07 so that it gives me the option of what desktop to log into. My lts.conf looks like this: (lts.conf default location is: /var/lib/tftpboot/ltsp/i386/ or /amd64/ you may have to create it)

[default]
SCREEN_07 = menu

RDP_SERVER = 192.168.56.25
RDP_OPTIONS = “-a 16 -f -r disk:Drives=/media/root -r sound:local”
VNC_SERVER = 192.168.56.5
VNC_OPTIONS = “-fullscreen -autopass”
VNC_PASSWORD = “password”

MENU_ITEM_01=”Ubuntu 15.10″
MENU_COMMAND_01=”ldm”
MENU_ITEM_02=”Windows 7″
MENU_COMMAND_02=”xfreerdp”
MENU_ITEM_03=”MacOS 10.5.5″
MENU_COMMAND_03=”vncviewer”
MENU_ITEM_04=”Android 5.5″
MENU_COMMAND_04=”vncviewer 192.168.56.6″
MENU_TITLE=”Please choose a desktop: ”

LDM_DIRECTX = True

As you can see this gives the thinclient to terminal into Ubuntu Linux, Windows 7, MacOS, or Android. o_o

You can view how to enable remote desktop in MacOS here: help.ubuntu.com/communit…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.