VirtualHere USB server & systemd autostart on x86_64 in 25 seconds
The following script will download the VirtualHere USB server for the x86_64 called vhusbd.service
.
#!/bin/bash
# This script installs and enables/starts the VirtualHere USB server
wget -O /usr/bin/vhusbd https://www.virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
chmod a+x /usr/bin/vhusbd
cat >/etc/systemd/system/vhusbd.service <<EOF
[Unit]
Description=vhusbd
After=network-online.target
[Service]
Restart=always
User=root
Group=root
ExecStart=/usr/bin/vhusbd
[Install]
WantedBy=multi-user.target
EOF
# Enable and start service
systemctl enable --now vhusbd.service