Skip to content

Commit

Permalink
AryaOS 1.1.0-beta checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Apr 28, 2024
1 parent a0c7b08 commit 3ae22f0
Show file tree
Hide file tree
Showing 45 changed files with 3,860 additions and 1,151 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/flows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build AryaOS Flows package

on:
push:
tags:
- 'v*.*.*'

jobs:
build-deb:
runs-on: ubuntu-latest
needs: linux-arm64
steps:
- name: Create package structure
run: |
mkdir -p .debpkg/home/node-red/.node-red
cp stage5-common/00-install/files/AryaOS_flows.json .debpkg/home/node-red/.node-red/flows.json
# create DEBIAN directory if you want to add other pre/post scripts
mkdir -p .debpkg/DEBIAN
echo -e "chown node-red:node-red /home/node-red/.node-red/flows.json" > .debpkg/DEBIAN/postinst
chmod +x .debpkg/DEBIAN/postinst
- name: Run build-deb-action from jiro4989
uses: jiro4989/build-deb-action@v3
with:
package: AryaOS_Flows
package_root: .debpkg
maintainer: gba@snstac.com
version: ${{ github.ref }}
arch: 'arm64'
desc: 'Node-RED flows for AryaOS.'

- uses: actions/upload-artifact@v4
with:
name: artifact-deb
path: |
*.deb
- name: Create Release
id: create_release
uses: actions/create-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: |
*.deb
tag: ${{ github.ref }}
overwrite: true
file_glob: true
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
Rename of AirTAK OS to AryaOS.

Includes:
* ADS-B & AIS Gateways
* Remote ID?
* ADS-B Gateway
* AIS Gateway
* Remote ID Gateway

## AirTAK OS R03

Expand Down
4 changes: 2 additions & 2 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

AOS_FLAVOR="AryaOS"

IMG_NAME="aryaos-1.0.0"
IMG_NAME="aryaos-1.1.0-beta5"

PI_GEN_RELEASE="AryaOS: An Operating System for Modern Situational Awareness."
TARGET_HOSTNAME="aryaos"
Expand All @@ -38,4 +38,4 @@ APT_PROXY="http://172.17.2.88:3142"
DUMP1090_RECEIVER_SERIAL="stx:1090:0"
DUMP978_RECEIVER_SERIAL="stx:978:0"
COMITUP_WEB_PORT="9080"
AOS_SERVICES="AISCOT ADSBCOT LINCOT DroneCOT nodered"
AOS_SERVICES="AISCOT ADSBCOT LINCOT DroneCOT nodered readsb"
28 changes: 28 additions & 0 deletions docs/airtak_cuas_getting_started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# AirTAK C-UAS Getting Started

AirTAK C-UAS should operate plug & play out of the box with nothing more than a TAK EUD (ATAK, WinTAK, iTAK) connected to AirTAK C-UAS's WiFi hotspot.

## Initial setup
### Using WiFi

This method uses AirTAK C-UAS' built-in WiFi hotspot to reconfigure the device to connect to an existing WiFi network, disabling the on-board WiFi hotspot.

1. Connect the USB power supply to the device. Ensure color-coded direction of connector (yellow to yellow, black to black).
2. After a 2 minutes, a new WiFi network should appear with a name like `AryaOS-XXXX`. Connect to this network.
3. From a web browser (Chrome, Safari), browse to: http://aryaos.local . If that doesn't resolve, try: http://10.41.0.1
4. Click WiFi Configuration, and select the WiFi network you'd like AirTAK C-UAS to connect to.


### Using Ethernet

This method uses the built-in Ethernet port to connect to an existing network.

1. Connect the USB power supply to the device. Ensure color-coded direction of connector (yellow to yellow, black to black).
2. Connect an ethernet cable to the external ethernet port of the AirTAK.
3. From a web browser (Chrome, Safari), browse to: http://aryaos.local . If that doesn't resolve, try: http://10.41.0.1

## Connecting an EUD

AirTAK C-UAS has been tested with all TAK Products, including iTAK, WinTAK & ATAK. Out-of-the-box, the device will transmit Cursor on Target CoT to the multicast Mesh SA group of 239.2.3.1:6969. The destination for CoT can be changed by accessing the AirTAK C-UAS dashboard at http://aryaos.local or http://10.41.0.1


1 change: 1 addition & 0 deletions stage3-base/00-install/01-run-chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ systemctl set-default multi-user

python3 -m pip install pytak --break-system-packages
python3 -m pip install takproto --break-system-packages
python3 -m pip install aprscot --break-system-packages

echo "wireshark-common wireshark-common/install-setuid boolean true" | debconf-set-selections
echo "tshark-common tshark-common/install-setuid boolean true" | debconf-set-selections
Expand Down
2 changes: 1 addition & 1 deletion stage3-base/00-install/files/AryaOS-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ COT_URL=udp+wo://239.2.3.1:6969
PYTAK_MULTICAST_LOCAL_ADDR=10.41.0.1
WIFI_AP_IP=10.41.0.1
NODE_ID=""
AOS_SERVICES="ADSBCOT LINCOT AISCOT nodered"
AOS_SERVICES="ADSBCOT LINCOT AISCOT DroneCOT nodered readsb"
2 changes: 1 addition & 1 deletion stage3-wifi/00-install/02-run-chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# limitations under the License.
#

systemctl enable NetworkManager
systemctl enable NetworkManager
1 change: 1 addition & 0 deletions stage3-wifi/00-install/03-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ install -v -m 644 files/comitup.conf "${ROOTFS_DIR}/etc/"
install -v -m 755 files/run_comitup.sh "${ROOTFS_DIR}/usr/local/sbin/"
install -v -m 755 files/comitup-callback.sh "${ROOTFS_DIR}/usr/local/sbin/"
install -v -m 644 files/comitup.service "${ROOTFS_DIR}/lib/systemd/system/"
install -v -m 644 files/comitup.json "${ROOTFS_DIR}/var/lib/comitup/"
1 change: 1 addition & 0 deletions stage3-wifi/00-install/files/comitup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions stage4-node-red/00-install/01-run-chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ npm install node-red-contrib-tfr2cot
npm install node-red-contrib-web-worldmap
npm install node-red-dashboard
npm install node-red-node-ui-table
npm install node-red-node-ui-upload
npm install node-red-contrib-qrcode-generator
npm install axios

Expand Down
2 changes: 1 addition & 1 deletion stage5-common/00-install/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ install -v -m 644 files/AryaOS_flows.json "${ROOTFS_DIR}/home/node-red/.node-red
cat "${ROOTFS_DIR}/home/node-red/.node-red/AryaOS_flows.json" > "${ROOTFS_DIR}/home/node-red/.node-red/flows.json"

install -v -m 640 files/node-red.sudoers "${ROOTFS_DIR}/etc/sudoers.d/node-red"
SUDO_SERVICES="dump1090-fa dump978-fa gpsd comitup aiscatcher AISCOT LINCOT ADSBCOT DroneCOT ${AOS_SERVICES} AryaSea AryaAir AryaUAS"
SUDO_SERVICES="dump1090-fa dump978-fa gpsd comitup aiscatcher AISCOT LINCOT ADSBCOT DroneCOT ${AOS_SERVICES} AryaSea AryaAir AryaUAS readsb"
gen_aos_service_sudoers "${SUDO_SERVICES}" >> "${ROOTFS_DIR}/etc/sudoers.d/node-red"

# FIXME: Disabled to work-around https://github.com/snstac/aryaos/issues/56
Expand Down
5 changes: 4 additions & 1 deletion stage5-common/00-install/01-run-chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ sed --follow-symlinks -i -E -e "s/blank.org/aryaos.local/" /usr/share/comitup/we

# sed --follow-symlinks -i -E -e "s/flows.json/AryaOS_flows.json/" /home/node-red/.node-red/settings.js

#sed --follow-symlinks -i -E -e "s/flowFile:.*,/flowFile: 'AryaOS_flows.json',/" /home/node-red/.node-red/settings.js
#sed --follow-symlinks -i -E -e "s/flowFile:.*,/flowFile: 'AryaOS_flows.json',/" /home/node-red/.node-red/settings.js

mkdir -p /var/www/html/logs
chown node-red /var/www/html/logs
Loading

0 comments on commit 3ae22f0

Please sign in to comment.