Getting USB Drive Redirection to work with LTSP, xFreeRDP, and Windows Server 2012 R2

Problem

You’re using LTSP (Linux Terminal Server Project) and xFreeRDP to allow computers to boot from the network and connect to a server running Windows Server 2012 R2.  You add the parameters in LTS.CONF to allow USB redirection, but you still cannot get the USB drives to show up.

Solution

In my experience, these are the two steps that are often missed:

Step #1: Enable sound redirection

When using LTSP to connect to a server running Windows Server 2012 or later, you MUST enable sound redirection first, or USB direction will not work. This step isn’t necessary in Windows server 2008.

For example, instead of using the following line in LTS.CONF:

           SCREEN_07 = "xfreerdp -f --no-nla --ignore-certificate --plugin rdpdr --data disk:usbdisk:/media/root --
           192.168.11.22

Use this one:

           SCREEN_07 = "xfreerdp -f --no-nla --ignore-certificate --plugin rdpsnd --data alsa -- --plugin rdpdr
           --data disk:usbdisk:/media/root -- 291.168.11.22

Obviously, you’ll want replace the IP at the end of the lines above with the IP of your own terminal server. Keep in mind that if you’re using a newer version of xFreeRDP, the format of the options may be different. There have been changes made in the later versions. More information can be found here

Step #2: Set the policy on the server

You also need to be sure you have the ‘Do not allow drive redirection’ policy disabled on the Windows terminal server. This setting is found in the group policy editor at:

Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection

Once you take care of these two items, you’re typically good to go!

From TWAIN Device to Web Application

ScreenshotAt my place of employment we recently purchased a piece of software to design and print identification cards.  We were planning to use the software to make employee badges.  I did not have an opportunity to try out the software in advance because no trial version was offered.  However, the vendor made a good sales pitch, so I shelled out roughly a thousand dollars to purchase the software.

It turned out to be one of the most difficult-to-learn software packages I have ever attempted to use.  After laboring for  five hours, I still had not figured out how to print a single ID card.  I’m not the sharpest knife in the drawer, but I’m not the dullest, either.  There had to be a better solution.  Not wanting to spend more money, I decided to build the software myself.

Continue reading

10 special-purpose Linux distributions

One of the strengths of Linux and open-source in general is that it is infinitely customizable, allowing it to be used to power anything from a phone to a mainframe.  In addition, there are a wide variety of distributions available, some of which are targeted at specific tasks.  Ken Hess has compiled a valuable list of 10 special-purpose Linux distributions. You can find his list at:

http://www.daniweb.com/news/story239006.html