UbuntuHelp:UbuntuLTSP/RdesktopLocaldev
来自Ubuntu中文
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
Rdesktop + Local devices
This howto is for LTSP5.
Background
In order for local devices to work in an rdesktop session in LTSP, the devices need to be automounted to the client and then redirected to the server using rdesktop. The redirection is trivial, as it is a feature of rdesktop. The challenge is to choose a good automounter. The automounter chosen here is none other than "ltspfs", the same automounter that the LDM session uses to automount the device over the network. Why ltspfs? Well, for one thing, it is code we control and maintain. That makes it easier to solve problems and get them applied. Also, ltspfs keeps the device unmounted when it is not accessed. This is very attractive, because it means the device can be safely removed from the machine when not in use without causing corruption or kernel confusion. A default LTSP installation in jaunty will install the ltspfs daemon ("ltspfsd") into the chroot. This approach calls for installing the client ("ltspfs") into the chroot, as well. NOTE: The best working code for this is ltspfs version 0.5.13 or newer. You can try with an older version, but it may be a bit flakier.
Installation
1. Install "ltspfs" into the chroot:
- sudo chroot /opt/ltsp/i386 apt-get update
- sudo chroot /opt/ltsp/i386 apt-get install ltspfs
- sudo ltsp-update-image
2. Modify your call to rdesktop in lts.conf to include the flag: "-r disk:Drives=/media/root" For example:
SCREEN_07 = "rdesktop -r disk:Drives=/media/root 192.168.0.253"
What to expect
When you reboot the client and log into Windows, you should see a mapped share to your thin client under My Computer. Inside that share, folders should appear for each device plugged into the client. When you plug a device in, you may have to refresh the window to see the new folder.