VirtualHere USB-Server & systemd-Autostart auf Raspberry Pi in 15 Sekunden

English Deutsch

Das folgende Skript lädt den VirtualHere USB-Server für den Raspberry Pi (generische Version für ARM) herunter und erstellt einen systemd-Dienst namens vhusbd.service.

Falls Sie nicht den Raspberry Pi verwenden, siehe die VirtualHere-Server-Download-Seite zum Herunterladen.

install_vhusbd.sh
#!/bin/bash
# This script installs and enables and starts the VirtualHere USB server
wget -O /usr/bin/vhusbd https://www.virtualhere.com/sites/default/files/usbserver/vhusbdarm
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

Check out similar posts by category: Embedded, Raspberry Pi