Skip to content

Commit

Permalink
added link to github
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroends authored Mar 26, 2019
1 parent f981836 commit a8581cd
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions velserv-setup.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
echo Make a new directory for velserv "/opt/velserv"
mkdir /opt/velserv
cd /opt/velserv
echo Download the zip file
wget http://www.mdar.co.uk/dl/velserv1.5.zip
echo check that gcc and unzip are installed
apt install gcc unzip
echo unzip the files
unzip velserv1.5.zip
ln -s /opt/velserv/velserv.service /etc/systemd/system/velserv.service

echo Copy the service file
cp /opt/velserv/velserv.service /etc/systemd/system/velserv.service
echo get new version of velser.c
wget https://raw.githubusercontent.com/jeroends/velserv/master/velserv.c -O /opt/velserv/velserv.c
echo Create Velserv application
gcc -o velserv velserv.c -lpthread

echo reload Systemctl files
systemctl daemon-reload
systemctl enable velsev.service
echo enable Velserv at boot up
systemctl enable velserv.service
echo Start Velserv now on port 6000
systemctl start velserv.service
echo what is Velserv doing right now?
echo press q to exit
systemctl status velserv

exit 0

0 comments on commit a8581cd

Please sign in to comment.