Install the VirtualHere Client on a Linux Cloud Instance (e.g Amazon EC2, Azure etc)

The VirtualHere Client can be installed inside a Cloud VM instance. For example an EC2 instance running Ubuntu 16.04 as shown below e.g EC2 Ubuntu 16.04 (free tier)

ubuntu@cloudvm:~$ sudo apt-get install linux-source bc build-essential libncurses-dev libssl-dev -y
ubuntu@cloudvm:~$ cd /usr/src/linux-source-4.4.0
ubuntu@cloudvm:~$ sudo tar xvf  linux-source-4.4.0.tar.bz2
ubuntu@cloudvm:~$ cd linux-source-4.4.0
ubuntu@cloudvm:~$ sudo cp /boot/config-$(uname -r) .config
ubuntu@cloudvm:~$ sudo cp /usr/src/linux-headers-$(uname -r)/Module.symvers .
ubuntu@cloudvm:~$ sudo make menuconfig

and turn on M in Devices Drivers -> USB Support -> USB/IP Support (*if not already)

ubuntu@cloudvm:~$ sudo make modules_prepare && sudo make M=drivers/usb/usbip
ubuntu@cloudvm:~$ sudo insmod drivers/usb/usbip/usbip-core.ko && sudo insmod drivers/usb/usbip/vhci-hcd.ko
ubuntu@cloudvm:~$ cd ~
ubuntu@cloudvm:~$ wget https://www.virtualhere.com/sites/default/files/usbclient/vhclientx86_64
ubuntu@cloudvm:~$ chmod +x ./vhclientx86_64
ubuntu@cloudvm:~$ sudo ./vhclientx86_64 -n
ubuntu@cloudvm:~$./vhclientx86_64 -t "MANUAL HUB ADD,1.2.3.4"

(Replace 1.2.3.4 with the external IP address of your virtualhere server)

ubuntu@cloudvm:~$ ./vhclientx86_64 -t list
VirtualHere Client IPC, below are the available devices:
(Value in brackets = address, * = Auto-Use)

QNAP Hub (QNAP:7575)
   --> Token JC (QNAP.11)

Auto-Find currently on
Auto-Use All currently off
Reverse Lookup currently off
VirtualHere Client is running as a service
ubuntu@ip-172-31-31-75:~$ ./vhclientx86_64 -t "use,qnap.11"
OK
ubuntu@ip-172-31-31-75:~$ lsusb
Bus 001 Device 002: ID 0529:0620 Aladdin Knowledge Systems Token JC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

(You can now see the Aladdin Token JC is virtually attached to the cloud instance)