# How-To : Install and Run VelServ - a Velbus TCP Gateway

**URL:** <https://forum.velbus.eu/t/how-to-install-and-run-velserv-a-velbus-tcp-gateway/15422>\
**Category:** For developers\
**Created:** [September 20, 2018, 7:54am UTC](https://forum.velbus.eu/t/how-to-install-and-run-velserv-a-velbus-tcp-gateway/15422 "2018-09-20T07:54:50Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![MDAR](https://forum.velbus.eu/user_avatar/forum.velbus.eu/mdar/32/4215_2.png) [@MDAR](https://forum.velbus.eu/u/MDAR)\
**Post date:** [March 24, 2019, 7:27pm UTC](https://forum.velbus.eu/t/how-to-install-and-run-velserv-a-velbus-tcp-gateway/15422/21 "2019-03-24T19:27:13Z")

</div>

Hi

To make life even easier to setup Velserv, I’ve created a script to download and setup.

[http://www.mdar.co.uk/dl/velserv-setup.sh](http://www.mdar.co.uk/dl/velserv-setup.sh)

Use a terminal and try these commands…

```
wget http://www.mdar.co.uk/dl/velserv-setup.sh

cat velserv-setup.sh

sudo sh velserv-setup.sh

```

When the script has completed it’s final step, you should see something like this :

```
user@Linux_MiniServer:/# systemctl status velserv
● velserv.service - Velserv
   Loaded: loaded (/opt/velserv/velserv.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-03-24 17:55:34 GMT; 47s ago
  Process: 2345 ExecStartPost=/bin/bash -c /bin/pidof velserv >> /var/log/velserv.log (code=exited, status=0/SUCCESS)
  Process: 2338 ExecStartPost=/bin/bash -c /bin/echo Velserv Started $(date) >> /var/log/velserv.log (code=exited, status=0/
  Process: 2334 ExecStartPost=/bin/bash -c /bin/touch /var/log/velserv.log (code=exited, status=0/SUCCESS)
  Process: 2327 ExecStart=/opt/velserv/velserv -d /dev/serial/by-id/usb-Velleman_Projects_VMB1USB_Velbus_USB_interface-if00
 Main PID: 2332 (velserv)
    Tasks: 4
   Memory: 104.0K
      CPU: 86ms
   CGroup: /system.slice/velserv.service
           └─2332 /opt/velserv/velserv -d /dev/serial/by-id/usb-Velleman_Projects_VMB1USB_Velbus_USB_interface-if00 -p 6000

Mar 24 17:55:34 Ubuntu-Home systemd[1]: Starting Velserv...
Mar 24 17:55:34 Ubuntu-Home systemd[1]: Started Velserv.

```

It will stay in that state until you press `q`

Good luck

If you want to keep an eye on the amount of times Velserv is started at boot up, take a look at the log file it appends

`cat /var/log/velserv.log`

I can’t remember what inspired me to write this script, ahem… @CobleS @RossJe

---

_[View the full topic](https://forum.velbus.eu/t/how-to-install-and-run-velserv-a-velbus-tcp-gateway/15422)._
