forked from jeroends/velserv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|