forked from sinamics/uavcast-community
-
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
Bernt Christian Egeland
committed
Jan 25, 2022
1 parent
c56de3f
commit 05d9acf
Showing
8 changed files
with
88 additions
and
157 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
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
# ---------------------------------------------------------------- | ||
# uavcast dev-installation file. | ||
# Author Bernt Christian Egeland | ||
# | ||
# !Dev specific addons | ||
# ---------------------------------------------------------------- | ||
|
||
APPROOT="/app/uavcast" | ||
|
||
# install global dependencies | ||
npm i concurrently ts-node-dev typescript -g | ||
|
||
sudo apt-get install -y libsqlite3-dev \ | ||
libv4l-dev \ | ||
libcap2-bin | ||
|
||
sudo ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h | ||
sudo setcap cap_net_bind_service=+ep `readlink -f \`which node\`` | ||
|
||
# fetch translations | ||
# https://github.com/UAVmatrix/uavcast-pro-translations | ||
git submodule update --init --recursive | ||
|
||
ARCH=`uname -m` | ||
if [ "$ARCH" == "x86_64" ]; then | ||
cp ${APPROOT}/bin/mavlink/mavlink-routerd-amd64 ${APPROOT}/bin/mavlink/mavlink-routerd | ||
elif [ "$ARCH" == "armv7l" ]; then | ||
cp ${APPROOT}/bin/mavlink/mavlink-routerd-arm ${APPROOT}/bin/mavlink/mavlink-routerd | ||
else | ||
cp ${APPROOT}/bin/mavlink/mavlink-routerd-arm64 ${APPROOT}/bin/mavlink/mavlink-routerd | ||
fi | ||
|
||
# Build binaries | ||
cd /app/uavcast/bin && make |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# ---------------------------------------------------------------- | ||
# UAVcast installation file. | ||
# Author Bernt Christian Egeland | ||
# | ||
# !Production specific addons | ||
# ---------------------------------------------------------------- | ||
|
||
# Set folders | ||
APPROOT="/app/uavcast" | ||
|
||
#start webserver | ||
systemctl enable uavcast-web | ||
systemctl start uavcast-web | ||
|
||
#start mavlink | ||
systemctl enable mavlink-router | ||
systemctl start mavlink-router | ||
|
||
|
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