📜 ⬆️ ⬇️

Ltsp. We connect Flash-carriers for clients


Good day to all. Quite a lot of time I struggled over how to configure LTSP and thin client so that the client can mount a flash drive that could be accessed from rdp.

So to solve this problem, you need to make sure that the ltpfs package is installed on the server, and that the ltspfsd client is installed on the server.

ltpfs :
dpkg -l ltspfs|grep ^ii


ltspfsd :
sudo chroot /opt/ltsp/i386 dpkg -l ltspfsd|grep ^ii

')
Now on the server you need to enable local device support for terminals. Need to change /opt/ltsp/i386/etc/lts.conf
I would like to add that editing this file requires administrative rights from you. The simplest is to run from the terminal.
sudo gedit


Then select our file and bring it to the next view, if you have any settings in this file, just add the entry to the [default] section.
/opt/ltsp/i386/etc/lts.conf
[default]
LOCALDEV = True



Now go to "System / Administration / Users and Groups" select the desired user (the one that logs in on the terminal) and open its properties, on the "User Privileges" tab activate "Use fuse-based file systems ..."

This small video shows how to do it, if suddenly someone does not understand.



Now, on the client, we need to configure the launch of rdp so that all connected usb-carriers are displayed in rdp as folders on a network drive. Those. Suppose we connect the flash drive, which will display URBANRIDER in the system and insert 2yu - RUNA, in rdp both flash drives will lie on the network USB drive, and each flash drive will be displayed as a folder, i.e. there will be 2 folders - URBANRIDER and RUNA.

To do this, you need to run rdp as follows:

rdp_once
rdesctop -d -f -r disk:usb=/media/ $USER -k ru-RU


All now, after rebooting the clients, everything will be as it should.

PS: In addition, I wanted to give you the rdp startup script, which, when shutting down, starts again, so that the user does not have access to linux itself.
#!bin/bash
var0=0
var1=1
while [ "var0" != "var1" ]
do
rdesctop -d -f -r disk:usb=/media/ $USER -k ru-R
wait
done
echo
exit 0


PS: The request of those who knew how to do it, not minus, karma and so little. And given the development of the theme " LTSP, Ubuntu. Problems with setting up a thin client, " we can say that some of this information will be useful ...

Source: https://habr.com/ru/post/45192/


All Articles