How it works (complex way)

Special tool from VirtualHere company for USB redirection. One device for each thin client for free
Post Reply
akatik
SUPPORT
SUPPORT
Posts: 334
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

How it works (complex way)

Post by akatik » Wed Jan 16, 2019 11:57 am

VirtualHere allows to redirect one USB device from each thin client for free.

VirtualHere license doesn't allow to add their server into WTware distributive. So you'll have to download it and prepare.

1. On the page "Linux USB Server" download "Generic VirtualHere USB Server Builds" for needed architecture. WTware works on three architectures: i386, AMD64, ARM.

All Raspberry Pi versions are ARM architecture. So for Raspberry you are to download VirtualHere USB Server for Linux (ARM), file vhusbdarm.

Common x86-compatible computer may be i386 or AMD64. Boot WTware on needed computer, place mouse in the right bottom corner and look at popup window. If near WTware version you see UEFI word, it's 64-bit WTware, and you are to download VirtualHere USB Server for Linux (AMD64), file vhusbdx86_64.

If there's no UEFI word near WTware version and logo, then WTware for i386 architecture works on this computer. You are to download VirtualHere USB Server for Linux (i386), file vhusbdi386.


2. Write script for running. Text file must be named runme without extension. File contents for different architectures:

i386:

Code: Select all

#!/bin/sh
chmod +x vhusbdi386
/vhusbdi386 -b
AMD64:

Code: Select all

#!/bin/sh
chmod +x vhusbdx86_64
/vhusbdx86_64 -b
ARM:

Code: Select all

#!/bin/sh
chmod +x vhusbdarm
/vhusbdarm -b

3. File with VirtualHere server and running script runme (both files without extensions!) pack to zip archive.

4. Copy zip archive to C:\ProgramData\WTware\Everyone directory for terminals that download configs by network. Or to configs/ directory on boot disk for terminal, that store configs on local disk, this could be done by network using terminal web-interface.

5. In terminal configuration file specify:

Code: Select all

extra=name_of_archive_from_3_item.zip
That's all. Reboot terminal, find in log messages from vhusbi386 (or vhusbdx86_64, or vhusbdarm). If all is correct, in log you should see such line:

Code: Select all

[SYSLOG] <14>Jul 31 07:02:57 vhusbdi386[827]: >>> Starting VirtualHere USB Server v3.8.1 (Built: Dec 14 2018, 14:36:02)<<<
On Windows computer run VirtualHere USB Client from the page https://www.virtualhere.com/usb_client_software and configure as in manufacturer manual.

We managed to redirect USB-COM bridge, but failed to redirect USB camera. I.e. nothing special, RDP USB redirection gives almost the same results.

If you'll manage to redirect devices, that you failed to redirect using RDP - write in this topic!

Here are ready zip-archives with servers of 3.8.1 version for different architectures: http://wtware.com/files/virtualhere/
It's better not to use them, but pack your own with fresh server's version, as described above.

Frankieg60
Posts: 3
Joined: Sun Feb 24, 2019 9:53 pm

Re: How it works

Post by Frankieg60 » Sun Feb 24, 2019 9:56 pm

When i try this on a rpi3 i can't get it to work. I get permission denied in terminal log. See below.

Code: Select all

| Archive:  /tmp/extra-usb.zip
|   inflating: runme
|   inflating: vhusbdarm
[            gm] [   12.540563] +------------------------
[            gm] [   12.540821] Run '/bin/sh /runme', log '/tmp/extra.out', env '', pid ''.
[          pfac] [   12.540950] Run /bin/sh /runme.
[          pfac] [   12.541186] Ok, PID 657.
[            gm] [   12.546023] Unpack /bootmedia/packages/pi2-alsa.
[         EXTRA] [   12.547308] chmod: vhusbdarm
: No such file or directory
[         EXTRA] [   12.549007] /runme: line 3: /vhusbdarm: Permission denied
[         EXTRA] [   12.549739] /runme: line 4: 
: not found

akatik
SUPPORT
SUPPORT
Posts: 334
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: How it works

Post by akatik » Mon Feb 25, 2019 6:18 am

Send me your extra-usb.zip to support@wtware.com

Frankieg60
Posts: 3
Joined: Sun Feb 24, 2019 9:53 pm

Re: How it works

Post by Frankieg60 » Mon Feb 25, 2019 5:22 pm

Got it working!! I was on version 5.6.24 because it was free. Now upgrade to 5.8.46 ans it works.

Thanks anyway.

Code: Select all

| Archive:  /tmp/extra-usb.zip
|   inflating: runme
|   inflating: vhusbdarm
[            gm] [   13.241974] +------------------------
[            gm] [   13.242353] Run '/bin/sh /runme2unix', log '/tmp/extra.out', env '', pid ''.
[          pfac] [   13.242448] Run /bin/sh /runme2unix.
[          pfac] [   13.242631] Ok, PID 679.
[            gm] [   13.244065] Unpack /bootmedia/packages/pi2-alsa.
[            gm] [   13.244299] Remount /bootmedia for writing.
[SYSLOG] <14>Jan 11 00:00:10 vhusbdarm[681]: >>> Starting VirtualHere USB Server v3.8.2 (Built: Feb  7 2019, 16:07:25)<<<

Frankieg60
Posts: 3
Joined: Sun Feb 24, 2019 9:53 pm

Re: How it works

Post by Frankieg60 » Tue Feb 26, 2019 10:59 am

I managed to redirect a Tacx ANT+ usb stick with VirtualHere. Didn't work with RDP.

Post Reply