1. ssh to your CentOS 7 with root privilege
2. cd /usr/sbin
3. mkdir VirtualHere
4. cd VirtualHere/
5. wget https://www.virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
6. chmod +x ./vhusbdx86_64
7. vim /usr/lib/systemd/system/VirtualHere.service
and put the following contents:
[Unit]
Description=VirtualHere
.
https://unix.stackexchange.com/questions/368368/how-to-make-a-service-t…
Thank you Michael, here is
Thank you Michael, here is what i have done:
1. ssh to your CentOS 7 with root privilege
2. cd /usr/sbin
3. mkdir VirtualHere
4. cd VirtualHere/
5. wget https://www.virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
6. chmod +x ./vhusbdx86_64
7. vim /usr/lib/systemd/system/VirtualHere.service
and put the following contents:
[Unit]
Description=VirtualHere
[Service]
ExecStart=/usr/sbin/VirtualHere/vhusbdx86_64
[Install]
WantedBy=multi-user.target
8. systemctl enable VirtualHere.service
9. firewall-cmd --zone=public --add-port=7575/tcp --permanent
10. systemctl start VirtualHere
It works like a charm ;-)
.
Ok great, thanks for letting everyone know the script details