Client API
The VirtualHere USB Client can be controlled by another program or on the command line. This is useful when:
Support for VirtualHere hardware and software
The VirtualHere USB Client can be controlled by another program or on the command line. This is useful when:
The VirtualHere USB Client can run either as a normal application or as a background service. Running the client as a background service enables devices to be shared while requiring no user to be logged in. This makes it easy to remotely interact with USB devices, and once setup can be a background set-and-forget type system. Users can log in/out and the VirtualHere client will remain running in the background uninterrupted.
The VirtualHere server can synchronously execute server scripts on certain events. Sometimes USB devices need certain commands to be sent to them to workaround their in-built differences (or quirks). You can also use this event system for special logging e.g bind/unbind of devices for time based usage among other use-cases. Please make sure any scripts you run are quick as they are synchronous to the operation of the event.
VirtualHere Client - Frequently Asked Questions
Can two clients connect to the same USB device simultaneously?
No
Can the client be run as a service?
How can i disconnect a user from a device?
Right click on the In-Use device and select Disconnect from User
Can i use the client inside a Docker container?
https://www.howtogeek.com/raspberry-pi-projects-to-try-this-weekend-february-13-15/
https://herndlbauer.com/blog/wireless-embedded-programming/ (Remote firmware development via VirtualHere)
VirtualHere supports Secure Sockets Layer (SSL) for Client/Server communications. This is useful when sharing USB devices over the Internet to provide better protection against eavesdropping. Both Server Certificates and optionally Client SSL Certificates are supported.
Important:
This functionality is only available when the VirtualHere server has been purchased
Scripting is now also supported on the VirtualHere Windows Server using batch files instead of bash scripts, the return codes are identical to the linux/osx values as described below
The ClientAuthorization script
All the VirtualHere USB Server settings are stored in a single text file called config.ini, usually in the same directory as the virtualhere server binary.
When running as a daemon or service the config.ini file may be in /root for Linux or c:\windows\system32 on Windows.
When the server is initially started, or started without a config.ini file it will use sensible defaults and any non-default values are written to new config.ini.
When running virtualhere on your embedded device (e.g raspberry pi, beagle, ubuntu), it is important that you have the latest firmware. For example on the raspberry pi, run the sudo rpi-update utility.
What functionality does the VirtualHere software provide?
VirtualHere for Network Attached Storage Devices - Frequently Asked Questions.
How do I use VirtualHere?
1. Plug the device into a USB port on the NAS.
2. Run the Client for your Windows, Mac or Linux machine
3. You will see the device listed in the tree, right click on the device and select Use.
4. You can then use the device as if it was directly connected to your computer.
How does VirtualHere improve the functionality of my NAS?