Spice Session Screen Script for LTSP thin clients running under Ubuntu

does not come with a built in Spice (client) script. So, I created one.
This is useful if you want your thinclients to be able to remote into a KVM VDI.

I use the virt-viewer package. Run the following on your LTSP server:

ltsp-chroot --arch <base> -m
apt-get install virt-viewer
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. –> /etc/ltsp/ltsp-build-client.conf

The /var/lib/tftpboot/ltsp/<base>/lts.conf options are:

#Spice KVM Remote Desktop to 
SPICE_SERVER = "192.168.11.5"
SPICE_OPTIONS = "--kiosk-quit=on-disconnect --kiosk"
SCREEN_07 = remote-viewer

Put the below screen script goes into
/opt/ltsp/<base>/usr/share/ltsp/screen.d/
IMPORTANT: Be sure to name it “remote-viewer

remote-viewer <– Right click and “Save link as”

The last step is to run

ltsp-update-image <base>

LTSP comes with these screen scripts by default:

kiosk ldm menu rdesktop shell ssh startx telnet xdmcp xfreerdp xterm

I created a vnc session script here

(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  Remote Desktop
RDP_SERVER = "/v:192.168.56.25"
RDP_OPTIONS = "/u:client /p:password /sound /microphone /multimedia /rfx /cert-ignore /drives /f"	
VNC_SERVER = 192.168.56.5
VNC_OPTIONS = "-fullscreen -autopass"
VNC_PASSWORD = "password"
SPICE_SERVER = "192.168.56.1"
SPICE_OPTIONS = "--kiosk-quit=on-disconnect --kiosk"

MENU_ITEM_01="Ubuntu 16.04 LTSP"
MENU_COMMAND_01="ldm"
MENU_ITEM_02=" 10 Professional"
MENU_COMMAND_02="xfreerdp"
MENU_ITEM_03=" 10.11"
MENU_COMMAND_03="vncviewer"
MENU_ITEM_04=" 5.5"
MENU_COMMAND_04="vncviewer 192.168.56.6"
MENU_ITEM_05="KVM Virtual Machine (,MacOS,Windows)"
MENU_COMMAND_05="remote-viewer"
MENU_TITLE="Please choose a desktop: "

LDM_DIRECTX = True

As you can see this gives the to terminal into Linux, Windows, MacOS, or Android. Either shared, or personal virtual machines. o_o

You can view enable remote desktop in MacOS here:

help.ubuntu.com/communit…

2 thoughts on “Spice Session Screen Script for LTSP thin clients running under Ubuntu

  • Before reading your post (/spice-session-screen-script-for-ltsp-thin-clients-running-under-ubuntu/) I was offering ldm as default screen for 184 thin clients. Now our users can choose the desired desktop without having to know switch between terminals using Ctrl+Alt+F[1234567]. Thank you for sharing your knowledge.

Leave a Reply

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