Hi,
We are using VirtualHereServer to redirect USB redirection within a VM for development purpose. We've built a script to automate deployment on developers machines (Mac Intel & Apple Silicon).
I install VirtualHereServerUniversal.app that way:
wget https://www.virtualhere.com/sites/default/files/usbserver/VirtualHereSeā¦
hdiutil attach ./VirtualHereServerUniversal.dmg
sudo cp -R /Volumes/VirtualHere\ USB\ Server\ \(Universal\)/VirtualHereServerUniversal.app /Applications
sudo hdiutil unmount /Volumes/VirtualHere\ USB\ Server\ \(Universal\)/
Q1: I am not able to launch the daemon without launching the GUI. I got an error when I launch the command (pop-up + vhusbd_log).
sudo /Applications/VirtualHereServerUniversal.app/Contents/MacOS/vhusbdosx -b
I believe this is due because I am using sudo and vhusbdosx cannot find the config.ini at the right place (also, I cannot launch vhusbdosx without sudo). Any suggestion?
Q2: How can I automate licence registration? I've an URL. Is there any request I can send?
Thanks,
.
Q1. Running those commands in the terminal works correctly for me:
It writes to stdout, perhaps you need to redirect that somewhere in your script. What error does it say?
Q2. Licensing is done from the client. You can start any client and then you can use the client api to do LIST LICENSES
Thanks for the reply, ā¦
Thanks for the reply,
Regarding 1)
When lauching:
$ sudo /Applications/VirtualHereServerUniversal.app/Contents/MacOS/vhusbdosx -b
I got the following:
Installing com.virtualhere.vhusbd launchd script...
Successfully installed the com.virtualhere.vhusbd launchd daemon
xattr: [Errno 1] Operation not permitted: '/Applications/VirtualHereServerUniversal.app/Contents/_CodeSignature/CodeResources'
xattr: [Errno 1] Operation not permitted: '/Applications/VirtualHereServerUniversal.app/Contents/_CodeSignature'
xattr: [Errno 1] Operation not permitted: '/Applications/VirtualHereServerUniversal.app/Contents/MacOS/vhusbdosx'
xattr: [Errno 1] Operation not permitted: '/Applications/VirtualHereServerUniversal.app/Contents/MacOS'
xattr: [Errno 1] Operation not permitted: '/Applications/VirtualHereServerUniversal.app/Contents/Resources/usb.icns'
xattr: [Errno 1] Operation not permitted: '/Applications/VirtualHereServerUniversal.app/Contents/Resources'
xattr: [Errno 1] Operation not permitted: '/Applications/VirtualHereServerUniversal.app/Contents/Info.plist'
xattr: [Errno 1] Operation not permitted: '/Applications/VirtualHereServerUniversal.app/Contents'
xattr: [Errno 1] Operation not permitted: '/Applications/VirtualHereServerUniversal.app'
Starting the com.virtualhere.vhusbd launchd daemon...
com.virtualhere.vhusbd service successfully started
Log file can be found at /var/log/vhusbd.log
Thanks
.
OK well you dont have permission do to that. I think you should ask your admins if you have permission to create launch daemons.