From 93c08c346126b4a1fa37f5a066d31d1879815113 Mon Sep 17 00:00:00 2001 From: Pierantonio Merlino Date: Tue, 16 Jul 2024 15:09:33 +0200 Subject: [PATCH] refactor(distrib)!: Remove Intel UP2 and Nvidia Jetson Nano profiles (#5315) * Removed Up2 and Nano profiles Signed-off-by: pierantoniomerlino * Removed Up2 and Nano profiles from pom Signed-off-by: pierantoniomerlino * Removed network.provider property; removed nano references from ant script Signed-off-by: pierantoniomerlino * Deleted files for old networking Signed-off-by: pierantoniomerlino --------- Signed-off-by: pierantoniomerlino --- kura/distrib/pom.xml | 377 ------------ .../src/main/ant/build_equinox_distrib.xml | 69 +-- .../common/customize-installation.sh | 15 - .../src/main/resources/common/ifdown-local | 5 - .../src/main/resources/common/ifup-local | 43 -- .../main/resources/common/ifup-local.debian | 97 ---- .../main/resources/common/ifup-local.raspbian | 97 ---- .../common/iptables/iptables-intelup2 | 95 ---- .../common/iptables/iptables-jetson-nano | 83 --- .../jdk.dio.properties-intelup2 | 54 -- .../jdk.dio.properties-jetson-nano | 41 -- .../main/resources/common/network.interfaces | 33 -- .../src/main/resources/common/patch_sysctl.sh | 40 -- .../common/snapshots/snapshot_0.xml-intelup2 | 536 ------------------ .../snapshots/snapshot_0.xml-jetson-nano | 500 ---------------- .../main/resources/common/sysctl.kura.conf | 22 - .../deb/control/control | 16 - .../deb/control/postinst | 89 --- .../deb/control/preinst | 102 ---- .../intel-up2-ubuntu-20-nn/deb/control/prerm | 124 ---- .../intel-up2-ubuntu-20-nn/jdk.dio.properties | 54 -- .../intel-up2-ubuntu-20-nn/kura.logrotate | 21 - .../intel-up2-ubuntu-20-nn/kura.properties | 101 ---- .../intel-up2-ubuntu-20-nn/kura_install.sh | 109 ---- .../intel-up2-ubuntu-20-nn/kura_upgrade.sh | 22 - .../intel-up2-ubuntu-20-nn/log4j.xml | 62 -- .../intel-up2-ubuntu-20-nn/snapshot_0.xml | 417 -------------- .../intel-up2-ubuntu-20/deb/control/control | 19 - .../intel-up2-ubuntu-20/deb/control/postinst | 89 --- .../intel-up2-ubuntu-20/deb/control/preinst | 102 ---- .../intel-up2-ubuntu-20/deb/control/prerm | 124 ---- .../intel-up2-ubuntu-20/dhcpd-enp2s0.conf | 15 - .../intel-up2-ubuntu-20/dhcpd-wlp4s0.conf | 15 - .../intel-up2-ubuntu-20/firewall.init | 111 ---- .../intel-up2-ubuntu-20/firewall.service | 11 - .../intel-up2-ubuntu-20/hostapd.conf | 62 -- .../intel-up2-ubuntu-20/iptables.init | 95 ---- .../intel-up2-ubuntu-20/jdk.dio.properties | 54 -- .../intel-up2-ubuntu-20/kura.logrotate | 21 - .../intel-up2-ubuntu-20/kura.properties | 101 ---- .../intel-up2-ubuntu-20/kura_install.sh | 235 -------- .../intel-up2-ubuntu-20/kura_upgrade.sh | 28 - .../resources/intel-up2-ubuntu-20/log4j.xml | 62 -- .../intel-up2-ubuntu-20/network.interfaces | 22 - .../intel-up2-ubuntu-20/snapshot_0.xml | 524 ----------------- .../nvidia-jetson-nano-nn/deb/control/control | 15 - .../deb/control/postinst | 89 --- .../nvidia-jetson-nano-nn/deb/control/preinst | 93 --- .../nvidia-jetson-nano-nn/deb/control/prerm | 116 ---- .../nvidia-jetson-nano-nn/jdk.dio.properties | 41 -- .../nvidia-jetson-nano-nn/kura.logrotate | 21 - .../nvidia-jetson-nano-nn/kura.properties | 102 ---- .../nvidia-jetson-nano-nn/kura_install.sh | 75 --- .../resources/nvidia-jetson-nano-nn/log4j.xml | 62 -- .../nvidia-jetson-nano-nn/snapshot_0.xml | 417 -------------- .../nvidia-jetson-nano/deb/control/control | 18 - .../nvidia-jetson-nano/deb/control/postinst | 89 --- .../nvidia-jetson-nano/deb/control/preinst | 102 ---- .../nvidia-jetson-nano/deb/control/prerm | 124 ---- .../nvidia-jetson-nano/dhcpd-eth0.conf | 15 - .../nvidia-jetson-nano/firewall.init | 72 --- .../nvidia-jetson-nano/firewall.service | 11 - .../nvidia-jetson-nano/iptables.init | 83 --- .../nvidia-jetson-nano/jdk.dio.properties | 41 -- .../nvidia-jetson-nano/kura.logrotate | 21 - .../nvidia-jetson-nano/kura.properties | 101 ---- .../nvidia-jetson-nano/kura_install.sh | 233 -------- .../resources/nvidia-jetson-nano/log4j.xml | 58 -- .../nvidia-jetson-nano/network.interfaces | 10 - .../nvidia-jetson-nano/snapshot_0.xml | 491 ---------------- 70 files changed, 2 insertions(+), 7412 deletions(-) delete mode 100644 kura/distrib/src/main/resources/common/ifdown-local delete mode 100644 kura/distrib/src/main/resources/common/ifup-local delete mode 100644 kura/distrib/src/main/resources/common/ifup-local.debian delete mode 100644 kura/distrib/src/main/resources/common/ifup-local.raspbian delete mode 100644 kura/distrib/src/main/resources/common/iptables/iptables-intelup2 delete mode 100644 kura/distrib/src/main/resources/common/iptables/iptables-jetson-nano delete mode 100644 kura/distrib/src/main/resources/common/jdk-dio-properties/jdk.dio.properties-intelup2 delete mode 100644 kura/distrib/src/main/resources/common/jdk-dio-properties/jdk.dio.properties-jetson-nano delete mode 100644 kura/distrib/src/main/resources/common/network.interfaces delete mode 100755 kura/distrib/src/main/resources/common/patch_sysctl.sh delete mode 100644 kura/distrib/src/main/resources/common/snapshots/snapshot_0.xml-intelup2 delete mode 100644 kura/distrib/src/main/resources/common/snapshots/snapshot_0.xml-jetson-nano delete mode 100755 kura/distrib/src/main/resources/common/sysctl.kura.conf delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/control delete mode 100755 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/postinst delete mode 100755 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/preinst delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/prerm delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/jdk.dio.properties delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura.logrotate delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura.properties delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura_install.sh delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura_upgrade.sh delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/log4j.xml delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/snapshot_0.xml delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/control delete mode 100755 kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/postinst delete mode 100755 kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/preinst delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/prerm delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/dhcpd-enp2s0.conf delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/dhcpd-wlp4s0.conf delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/firewall.init delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/firewall.service delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/hostapd.conf delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/iptables.init delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/jdk.dio.properties delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura.logrotate delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura.properties delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura_install.sh delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura_upgrade.sh delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/log4j.xml delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/network.interfaces delete mode 100644 kura/distrib/src/main/resources/intel-up2-ubuntu-20/snapshot_0.xml delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/control delete mode 100755 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/postinst delete mode 100755 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/preinst delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/prerm delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/jdk.dio.properties delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura.logrotate delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura.properties delete mode 100755 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura_install.sh delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/log4j.xml delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano-nn/snapshot_0.xml delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/control delete mode 100755 kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/postinst delete mode 100755 kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/preinst delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/prerm delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/dhcpd-eth0.conf delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/firewall.init delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/firewall.service delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/iptables.init delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/jdk.dio.properties delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/kura.logrotate delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/kura.properties delete mode 100755 kura/distrib/src/main/resources/nvidia-jetson-nano/kura_install.sh delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/log4j.xml delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/network.interfaces delete mode 100644 kura/distrib/src/main/resources/nvidia-jetson-nano/snapshot_0.xml diff --git a/kura/distrib/pom.xml b/kura/distrib/pom.xml index 36d7417affb..624698cbe6a 100644 --- a/kura/distrib/pom.xml +++ b/kura/distrib/pom.xml @@ -42,8 +42,6 @@ true false true - kura-networking - /opt/eclipse/kura @@ -1220,7 +1218,6 @@ - @@ -1412,7 +1409,6 @@ - @@ -1604,7 +1600,6 @@ - @@ -1742,192 +1737,6 @@ - - intel-up2-ubuntu-20 - - - buildAll - - - - - - src/main/resources - true - - - - - org.codehaus.mojo - buildnumber-maven-plugin - 1.0 - - - validate - - create-timestamp - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.7 - - - intel-up2-ubuntu-jars - prepare-package - - run - - - - - - - - - - - - - - - - - - - - - - - - - org.vafer - jdeb - 1.0 - - - intel-up2-ubuntu-deb - package - - jdeb - - - true - ${basedir}/target/kura_${project.version}_intel-up2-ubuntu-20_installer.deb - ${basedir}/src/main/resources/intel-up2-ubuntu-20/deb/control - - - ${basedir}/target/kura_${project.version}_intel-up2-ubuntu-20.zip - file - - perm - /tmp - - - - - - - - - - - - - intel-up2-ubuntu-20-nn - - - buildAll - - - - - - src/main/resources - true - - - - - org.codehaus.mojo - buildnumber-maven-plugin - 1.0 - - - validate - - create-timestamp - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.7 - - - intel-up2-ubuntu-nn-jars - prepare-package - - run - - - - - - - - - - - - - - - - - - - - - - - - org.vafer - jdeb - 1.0 - - - intel-up2-ubuntu-nn-deb - package - - jdeb - - - true - ${basedir}/target/kura_${project.version}_intel-up2-ubuntu-20-nn_installer.deb - ${basedir}/src/main/resources/intel-up2-ubuntu-20-nn/deb/control - - - ${basedir}/target/kura_${project.version}_intel-up2-ubuntu-20-nn.zip - file - - perm - /tmp - - - - - - - - - - docker-x86_64-nn @@ -2139,192 +1948,6 @@ - - nvidia-jetson-nano - - - buildAll - - - - - - src/main/resources - true - - - - - org.codehaus.mojo - buildnumber-maven-plugin - 1.0 - - - validate - - create-timestamp - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.7 - - - nvidia-jetson-nano-jars - prepare-package - - run - - - - - - - - - - - - - - - - - - - - - - - - - org.vafer - jdeb - 1.0 - - - nvidia-jetson-nano-deb - package - - jdeb - - - true - ${basedir}/target/kura_${project.version}_nvidia-jetson-nano_installer.deb - ${basedir}/src/main/resources/nvidia-jetson-nano/deb/control - - - ${basedir}/target/kura_${project.version}_nvidia-jetson-nano.zip - file - - perm - /tmp - - - - - - - - - - - - - nvidia-jetson-nano-nn - - - buildAll - - - - - - src/main/resources - true - - - - - org.codehaus.mojo - buildnumber-maven-plugin - 1.0 - - - validate - - create-timestamp - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.7 - - - nvidia-jetson-nano-nn-jars - prepare-package - - run - - - - - - - - - - - - - - - - - - - - - - - - org.vafer - jdeb - 1.0 - - - nvidia-jetson-nano-nn-deb - package - - jdeb - - - true - ${basedir}/target/kura_${project.version}_nvidia-jetson-nano-nn_installer.deb - ${basedir}/src/main/resources/nvidia-jetson-nano-nn/deb/control - - - ${basedir}/target/kura_${project.version}_nvidia-jetson-nano-nn.zip - file - - perm - /tmp - - - - - - - - - - dev-env diff --git a/kura/distrib/src/main/ant/build_equinox_distrib.xml b/kura/distrib/src/main/ant/build_equinox_distrib.xml index 55ca07d4f54..c07a4d0b894 100644 --- a/kura/distrib/src/main/ant/build_equinox_distrib.xml +++ b/kura/distrib/src/main/ant/build_equinox_distrib.xml @@ -147,21 +147,6 @@ - - - - - - - - - - - - - - - @@ -270,9 +255,6 @@ - - - @@ -827,8 +809,6 @@ fi]]> - - @@ -1769,15 +1749,7 @@ fi]]> - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - - - - - - diff --git a/kura/distrib/src/main/resources/common/customize-installation.sh b/kura/distrib/src/main/resources/common/customize-installation.sh index 6b7168b6a99..ff96a890a8d 100644 --- a/kura/distrib/src/main/resources/common/customize-installation.sh +++ b/kura/distrib/src/main/resources/common/customize-installation.sh @@ -82,21 +82,6 @@ then echo "Customizing installation for Raspberry PI" fi -if uname -a | grep -q 'up' > /dev/null 2>&1 -then - if uname -n | grep 'intel' > /dev/null 2>&1 - then - BOARD="intelup2" - echo "Customizing installation for Intel UP2" - fi -fi - -if uname -a | grep -q 'nvidia' > /dev/null 2>&1 -then - BOARD="jetson-nano" - echo "Customizing installation for NVIDIA Jetson Nano" -fi - if [ ! -d "/opt/eclipse/kura/user/snapshots/" ]; then mkdir /opt/eclipse/kura/user/snapshots/ fi diff --git a/kura/distrib/src/main/resources/common/ifdown-local b/kura/distrib/src/main/resources/common/ifdown-local deleted file mode 100644 index e5d71217eb2..00000000000 --- a/kura/distrib/src/main/resources/common/ifdown-local +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -DEVICE=$1 -FILENAME="/tmp/.kura/coninfo-"$DEVICE -rm -f $FILENAME diff --git a/kura/distrib/src/main/resources/common/ifup-local b/kura/distrib/src/main/resources/common/ifup-local deleted file mode 100644 index 761f6415fd0..00000000000 --- a/kura/distrib/src/main/resources/common/ifup-local +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -if [ $1 == "lo" ] ; then - exit -fi - -DEVICE=$1 -FILENAME="/tmp/.kura/coninfo-"$DEVICE - -if [ ! -d "/tmp/.kura" ] ; then - mkdir /tmp/.kura -fi - -mkdir /tmp/.kura >> /dev/null 2>> /dev/null -echo "IFACE="$DEVICE > $FILENAME - - -ipaddr=`ip address show dev $DEVICE | grep 'inet '` - -if [[ -n "$ipaddr" ]] ; then - find=`expr index "$ipaddr" "inet"` - ipaddr=${ipaddr:$find} - find=`expr index "$ipaddr" ' '` - lind=`expr index "$ipaddr" '/'` - echo "IPADDR="${ipaddr:$find:`expr $lind-$find-1`} >> $FILENAME - ipgw=(`ip route show dev $DEVICE | grep default`) - echo "GATEWAY="${ipgw[2]} >> $FILENAME - #ip route del $ipgw - - # Only add DNS if this is a gateway - this also implies /etc/resolv.conf was overwritten - if [ "x${ipgw:12}" != "x" ] ; then - DnsInd=0 - while read line - do - ind=`expr index "$line" ' '` - if [[ $line == nameserver* ]]; then - #echo ${line:$ind} - DnsInd=`expr $DnsInd + 1` - echo "DNS"$DnsInd"="${line:$ind} >> $FILENAME - fi - done < "/etc/resolv.conf" - fi -fi diff --git a/kura/distrib/src/main/resources/common/ifup-local.debian b/kura/distrib/src/main/resources/common/ifup-local.debian deleted file mode 100644 index 41b7e1bf3dc..00000000000 --- a/kura/distrib/src/main/resources/common/ifup-local.debian +++ /dev/null @@ -1,97 +0,0 @@ -#!/bin/sh - -if [ $IFACE == "lo" ] ; then - exit -fi - -write_dns() { - if [ -z "$1" ]; then - return - fi - - ARG=$(echo "${1}" | xargs) - - WRITE_DNS=1 - - if [ -e /etc/resolv.conf ]; then - while read -r line - do - if [[ "$line" == nameserver* ]]; then - DNS=$(echo "${line#*\ }" | xargs) - if [ "${DNS}" == "${ARG}" ]; then - WRITE_DNS=0 - break - fi - fi - done < /etc/resolv.conf - fi - - if [ "${WRITE_DNS}" == 1 ]; then - echo "nameserver ${ARG}" >> /etc/resolv.conf - fi -} - -DEVICE=$IFACE -FILENAME="/tmp/.kura/coninfo-"$DEVICE -FLAG=0 -HASDNS=0 -DnsInd=0 - -if [ ! -d "/tmp/.kura" ] ; then - mkdir /tmp/.kura -fi - -while read line -do - ind=`expr index "$line" ' '` - if [[ $line == nameserver* ]]; then - DnsInd=`expr $DnsInd + 1` - echo "DNS"$DnsInd"="${line:$ind} > $FILENAME - fi -done < "/etc/resolv.conf" - -# Write DNS entries to resolv.conf -while read line -do - ind=`expr index "$line" ' '` - # No DNS entries for loopback interface - if [[ $DEVICE == lo ]]; then - break - fi - # Flag when the desired interface is found - if [[ $line == iface\ $DEVICE* ]]; then - FLAG=1 - fi - if [[ $line == dns-nameservers* && $FLAG == 1 ]]; then - HASDNS=1 - DnsInd=`expr $DnsInd + 1` - IFS=' ' read -ra Dns <<< "${line:$ind}" - for i in "${Dns[@]}"; do - write_dns "$i" - done - break - fi -done < "/etc/network/interfaces" - -# Create config file for each interface -mkdir /tmp/.kura >> /dev/null 2>> /dev/null -echo "IFACE="$DEVICE >> $FILENAME - -ipaddr=`ip address show dev $DEVICE | grep 'inet '` - -if [[ -n "$ipaddr" ]] ; then - find=`expr index "$ipaddr" "inet"` - ipaddr=${ipaddr:$find} - find=`expr index "$ipaddr" ' '` - lind=`expr index "$ipaddr" '/'` - echo "IPADDR="${ipaddr:$find:`expr $lind-$find-1`} >> $FILENAME - ipgw=(`ip route show dev $DEVICE | grep default`) - echo "GATEWAY="${ipgw[2]} >> $FILENAME - #ip route del $ipgw - if [[ $HASDNS == 1 ]]; then - for j in "${Dns[@]}"; do - DnsInd=`expr $DnsInd + 1` - echo "DNS$DnsInd=$j" >> $FILENAME - done - fi -fi diff --git a/kura/distrib/src/main/resources/common/ifup-local.raspbian b/kura/distrib/src/main/resources/common/ifup-local.raspbian deleted file mode 100644 index fd571f5311f..00000000000 --- a/kura/distrib/src/main/resources/common/ifup-local.raspbian +++ /dev/null @@ -1,97 +0,0 @@ -#!/bin/bash - -if [ $IFACE == "lo" ] ; then - exit -fi - -write_dns() { - if [ -z "$1" ]; then - return - fi - - ARG=$(echo "${1}" | xargs) - - WRITE_DNS=1 - - if [ -e /etc/resolv.conf ]; then - while read -r line - do - if [[ "$line" == nameserver* ]]; then - DNS=$(echo "${line#*\ }" | xargs) - if [ "${DNS}" == "${ARG}" ]; then - WRITE_DNS=0 - break - fi - fi - done < /etc/resolv.conf - fi - - if [ "${WRITE_DNS}" == 1 ]; then - echo "nameserver ${ARG}" >> /etc/resolv.conf - fi -} - -DEVICE=$IFACE -FILENAME="/tmp/.kura/coninfo-"$DEVICE -FLAG=0 -HASDNS=0 -DnsInd=0 - -if [ ! -d "/tmp/.kura" ] ; then - mkdir /tmp/.kura -fi - -while read line -do - ind=`expr index "$line" ' '` - if [[ $line == nameserver* ]]; then - DnsInd=`expr $DnsInd + 1` - echo "DNS"$DnsInd"="${line:$ind} > $FILENAME - fi -done < "/etc/resolv.conf" - -# Write DNS entries to resolv.conf -while read line -do - ind=`expr index "$line" ' '` - # No DNS entries for loopback interface - if [[ $DEVICE == lo ]]; then - break - fi - # Flag when the desired interface is found - if [[ $line == iface\ $DEVICE* ]]; then - FLAG=1 - fi - if [[ $line == dns-nameservers* && $FLAG == 1 ]]; then - HASDNS=1 - DnsInd=`expr $DnsInd + 1` - IFS=' ' read -ra Dns <<< "${line:$ind}" - for i in "${Dns[@]}"; do - write_dns "$i" - done - break - fi -done < "/etc/network/interfaces" - -# Create config file for each interface -mkdir /tmp/.kura >> /dev/null 2>> /dev/null -echo "IFACE="$DEVICE >> $FILENAME - -ipaddr=`ip address show dev $DEVICE | grep 'inet '` - -if [[ -n "$ipaddr" ]] ; then - find=`expr index "$ipaddr" "inet"` - ipaddr=${ipaddr:$find} - find=`expr index "$ipaddr" ' '` - lind=`expr index "$ipaddr" '/'` - echo "IPADDR="${ipaddr:$find:`expr $lind-$find-1`} >> $FILENAME - ipgw=(`ip route show dev $DEVICE | grep default`) - echo "GATEWAY="${ipgw[2]} >> $FILENAME - #ip route del $ipgw - if [[ $HASDNS == 1 ]]; then - for j in "${Dns[@]}"; do - DnsInd=`expr $DnsInd + 1` - echo "DNS$DnsInd=$j" >> $FILENAME - done - fi -fi diff --git a/kura/distrib/src/main/resources/common/iptables/iptables-intelup2 b/kura/distrib/src/main/resources/common/iptables/iptables-intelup2 deleted file mode 100644 index 838750bbccc..00000000000 --- a/kura/distrib/src/main/resources/common/iptables/iptables-intelup2 +++ /dev/null @@ -1,95 +0,0 @@ -*nat -:PREROUTING ACCEPT [0:0] -:INPUT ACCEPT [0:0] -:OUTPUT ACCEPT [0:0] -:POSTROUTING ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:postrouting-kura - [0:0] -:postrouting-kura-pf - [0:0] -:postrouting-kura-ipf - [0:0] -:prerouting-kura - [0:0] -:prerouting-kura-pf - [0:0] --I PREROUTING -j prerouting-kura --I prerouting-kura -j prerouting-kura-pf --I INPUT -j input-kura --I OUTPUT -j output-kura --I POSTROUTING -j postrouting-kura --I postrouting-kura -j postrouting-kura-pf --I postrouting-kura -j postrouting-kura-ipf --A prerouting-kura -j RETURN --A input-kura -j RETURN --A output-kura -j RETURN --A postrouting-kura -o enp3s0 -j MASQUERADE --A postrouting-kura -j RETURN --A postrouting-kura-pf -j RETURN --A postrouting-kura-ipf -j RETURN --A prerouting-kura-pf -j RETURN -COMMIT -*filter -:INPUT DROP [0:0] -:FORWARD DROP [0:0] -:OUTPUT ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:forward-kura - [0:0] -:forward-kura-pf - [0:0] -:forward-kura-ipf - [0:0] --I INPUT -j input-kura --I FORWARD -j forward-kura --I OUTPUT -j output-kura --I forward-kura -j forward-kura-pf --I forward-kura -j forward-kura-ipf --A input-kura -i enp3s0 -p tcp -m tcp --dport 8000 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 8000 -j ACCEPT --A input-kura -i enp3s0 -p udp -m udp --dport 67 -j ACCEPT --A input-kura -i enp2s0 -p udp -m udp --dport 67 -j ACCEPT --A input-kura -i wlp4s0 -p udp -m udp --dport 67 -j ACCEPT --A input-kura -i enp3s0 -p udp -m udp --dport 53 -j ACCEPT --A input-kura -i enp2s0 -p udp -m udp --dport 53 -j ACCEPT --A input-kura -i wlp4s0 -p udp -m udp --dport 53 -j ACCEPT --A input-kura -s 127.0.0.1/32 -p tcp -m tcp --dport 5002 -j ACCEPT --A input-kura -i enp3s0 -p tcp -m tcp --dport 1450 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 1450 -j ACCEPT --A input-kura -i enp3s0 -p tcp -m tcp --dport 443 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 443 -j ACCEPT --A input-kura -i enp3s0 -p tcp -m tcp --dport 4443 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 4443 -j ACCEPT --A input-kura -i enp3s0 -p tcp -m tcp --dport 22 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 22 -j ACCEPT --A input-kura -i enp3s0 -p udp -m udp --dport 5353 -j ACCEPT --A input-kura -i enp2s0 -p udp -m udp --dport 5353 -j ACCEPT --A input-kura -i lo -j ACCEPT --A input-kura -m state --state RELATED,ESTABLISHED -j ACCEPT --A input-kura -p icmp -m icmp --icmp-type 8 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT --A input-kura -j RETURN --A forward-kura -i enp3s0 -o enp2s0 -m state --state RELATED,ESTABLISHED -j ACCEPT --A forward-kura -i enp2s0 -o enp3s0 -j ACCEPT --A forward-kura -j RETURN --A output-kura -p icmp -m icmp --icmp-type 0 -m state --state RELATED,ESTABLISHED -j ACCEPT --A output-kura -j RETURN --A forward-kura-pf -j RETURN --A forward-kura-ipf -j RETURN -COMMIT -*mangle -:PREROUTING ACCEPT [0:0] -:INPUT ACCEPT [0:0] -:OUTPUT ACCEPT [0:0] -:FORWARD ACCEPT [0:0] -:POSTROUTING ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:forward-kura - [0:0] -:postrouting-kura - [0:0] -:prerouting-kura - [0:0] --I PREROUTING -j prerouting-kura --I INPUT -j input-kura --I OUTPUT -j output-kura --I FORWARD -j forward-kura --I POSTROUTING -j postrouting-kura --A prerouting-kura -j RETURN --A input-kura -j RETURN --A output-kura -j RETURN --A forward-kura -j RETURN --A postrouting-kura -j RETURN -COMMIT \ No newline at end of file diff --git a/kura/distrib/src/main/resources/common/iptables/iptables-jetson-nano b/kura/distrib/src/main/resources/common/iptables/iptables-jetson-nano deleted file mode 100644 index 5f33b8fd340..00000000000 --- a/kura/distrib/src/main/resources/common/iptables/iptables-jetson-nano +++ /dev/null @@ -1,83 +0,0 @@ -*nat -:PREROUTING ACCEPT [0:0] -:INPUT ACCEPT [0:0] -:OUTPUT ACCEPT [0:0] -:POSTROUTING ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:postrouting-kura - [0:0] -:postrouting-kura-pf - [0:0] -:postrouting-kura-ipf - [0:0] -:prerouting-kura - [0:0] -:prerouting-kura-pf - [0:0] --I PREROUTING -j prerouting-kura --I prerouting-kura -j prerouting-kura-pf --I INPUT -j input-kura --I OUTPUT -j output-kura --I POSTROUTING -j postrouting-kura --I postrouting-kura -j postrouting-kura-pf --I postrouting-kura -j postrouting-kura-ipf --A prerouting-kura -j RETURN --A input-kura -j RETURN --A output-kura -j RETURN --A postrouting-kura -o eth0 -j MASQUERADE --A postrouting-kura -j RETURN --A postrouting-kura-pf -j RETURN --A postrouting-kura-ipf -j RETURN --A prerouting-kura-pf -j RETURN -COMMIT -*filter -:INPUT DROP [0:0] -:FORWARD DROP [0:0] -:OUTPUT ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:forward-kura - [0:0] -:forward-kura-pf - [0:0] -:forward-kura-ipf - [0:0] --I INPUT -j input-kura --I FORWARD -j forward-kura --I OUTPUT -j output-kura --I forward-kura -j forward-kura-pf --I forward-kura -j forward-kura-ipf --A input-kura -i eth0 -p tcp -m tcp --dport 8000 -j ACCEPT --A input-kura -i eth0 -p udp -m udp --dport 67 -j ACCEPT --A input-kura -i eth0 -p udp -m udp --dport 53 -j ACCEPT --A input-kura -s 127.0.0.1/32 -p tcp -m tcp --dport 5002 -j ACCEPT --A input-kura -i eth0 -p tcp -m tcp --dport 1450 -j ACCEPT --A input-kura -i eth0 -p tcp -m tcp --dport 443 -j ACCEPT --A input-kura -i eth0 -p tcp -m tcp --dport 4443 -j ACCEPT --A input-kura -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT --A input-kura -i lo -p tcp -m tcp --dport 2947 -j ACCEPT --A input-kura -i lo -j ACCEPT --A input-kura -m state --state RELATED,ESTABLISHED -j ACCEPT --A input-kura -p icmp -m icmp --icmp-type 8 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT --A input-kura -j RETURN --A forward-kura -j RETURN --A output-kura -p icmp -m icmp --icmp-type 0 -m state --state RELATED,ESTABLISHED -j ACCEPT --A output-kura -j RETURN --A forward-kura-pf -j RETURN --A forward-kura-ipf -j RETURN -COMMIT -*mangle -:PREROUTING ACCEPT [0:0] -:INPUT ACCEPT [0:0] -:OUTPUT ACCEPT [0:0] -:FORWARD ACCEPT [0:0] -:POSTROUTING ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:forward-kura - [0:0] -:postrouting-kura - [0:0] -:prerouting-kura - [0:0] --I PREROUTING -j prerouting-kura --I INPUT -j input-kura --I OUTPUT -j output-kura --I FORWARD -j forward-kura --I POSTROUTING -j postrouting-kura --A prerouting-kura -j RETURN --A input-kura -j RETURN --A output-kura -j RETURN --A forward-kura -j RETURN --A postrouting-kura -j RETURN -COMMIT diff --git a/kura/distrib/src/main/resources/common/jdk-dio-properties/jdk.dio.properties-intelup2 b/kura/distrib/src/main/resources/common/jdk-dio-properties/jdk.dio.properties-intelup2 deleted file mode 100644 index 280761c7695..00000000000 --- a/kura/distrib/src/main/resources/common/jdk-dio-properties/jdk.dio.properties-intelup2 +++ /dev/null @@ -1,54 +0,0 @@ -# -# Copyright (c) 2023 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -#The following setup is valid for the factory default device-tree overlay of the BBB -# -#When overriding the default device-tree overlay, this file should be updated accordingly -# -#GPIO numbers are expressed as indicated in the specs: -#GPIO name and number = GPIO controller # x GPIO # -#i.e: GPIO_0_31 --> GPIO_31 -# GPIO_2_2 --> GPIO_66 - -gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3 -uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0 - -#https://wiki.up-community.org/Pinout_UP2 -326 = deviceType: gpio.GPIOPin, pinNumber:326, name:GPIO326 -327 = deviceType: gpio.GPIOPin, pinNumber:327, name:GPIO327 -328 = deviceType: gpio.GPIOPin, pinNumber:328, name:GPIO328 -329 = deviceType: gpio.GPIOPin, pinNumber:329, name:GPIO329 -402 = deviceType: gpio.GPIOPin, pinNumber:402, name:GPIO402 -403 = deviceType: gpio.GPIOPin, pinNumber:403, name:GPIO403 -404 = deviceType: gpio.GPIOPin, pinNumber:404, name:GPIO404 -405 = deviceType: gpio.GPIOPin, pinNumber:405, name:GPIO405 -418 = deviceType: gpio.GPIOPin, pinNumber:418, name:GPIO418 -419 = deviceType: gpio.GPIOPin, pinNumber:419, name:GPIO419 -420 = deviceType: gpio.GPIOPin, pinNumber:420, name:GPIO420 -421 = deviceType: gpio.GPIOPin, pinNumber:421, name:GPIO421 -422 = deviceType: gpio.GPIOPin, pinNumber:422, name:GPIO422 -430 = deviceType: gpio.GPIOPin, pinNumber:430, name:GPIO430 -431 = deviceType: gpio.GPIOPin, pinNumber:431, name:GPIO431 -432 = deviceType: gpio.GPIOPin, pinNumber:432, name:GPIO432 -433 = deviceType: gpio.GPIOPin, pinNumber:433, name:GPIO433 -462 = deviceType: gpio.GPIOPin, pinNumber:462, name:GPIO462 -463 = deviceType: gpio.GPIOPin, pinNumber:463, name:GPIO463 -464 = deviceType: gpio.GPIOPin, pinNumber:464, name:GPIO464 -465 = deviceType: gpio.GPIOPin, pinNumber:465, name:GPIO465 -468 = deviceType: gpio.GPIOPin, pinNumber:468, name:GPIO468 -469 = deviceType: gpio.GPIOPin, pinNumber:469, name:GPIO469 -471 = deviceType: gpio.GPIOPin, pinNumber:471, name:GPIO471 -476 = deviceType: gpio.GPIOPin, pinNumber:476, name:GPIO476 -477 = deviceType: gpio.GPIOPin, pinNumber:477, name:GPIO477 -478 = deviceType: gpio.GPIOPin, pinNumber:478, name:GPIO478 -479 = deviceType: gpio.GPIOPin, pinNumber:479, name:GPIO479 \ No newline at end of file diff --git a/kura/distrib/src/main/resources/common/jdk-dio-properties/jdk.dio.properties-jetson-nano b/kura/distrib/src/main/resources/common/jdk-dio-properties/jdk.dio.properties-jetson-nano deleted file mode 100644 index d729b53a455..00000000000 --- a/kura/distrib/src/main/resources/common/jdk-dio-properties/jdk.dio.properties-jetson-nano +++ /dev/null @@ -1,41 +0,0 @@ -# -# Copyright (c) 2023 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -# Please refer to https://www.jetsonhacks.com/nvidia-jetson-nano-j41-header-pinout/ -# as reference - -12 = deviceType: gpio.GPIOPin, pinNumber:12, name:GPIO12 -13 = deviceType: gpio.GPIOPin, pinNumber:13, name:GPIO13 -14 = deviceType: gpio.GPIOPin, pinNumber:14, name:GPIO14 -15 = deviceType: gpio.GPIOPin, pinNumber:15, name:GPIO15 -16 = deviceType: gpio.GPIOPin, pinNumber:16, name:GPIO16 -17 = deviceType: gpio.GPIOPin, pinNumber:17, name:GPIO17 -18 = deviceType: gpio.GPIOPin, pinNumber:18, name:GPIO18 -19 = deviceType: gpio.GPIOPin, pinNumber:19, name:GPIO18 -20 = deviceType: gpio.GPIOPin, pinNumber:20, name:GPIO20 -38 = deviceType: gpio.GPIOPin, pinNumber:38, name:GPIO38 -50 = deviceType: gpio.GPIOPin, pinNumber:50, name:GPIO50 -51 = deviceType: gpio.GPIOPin, pinNumber:51, name:GPIO51 -76 = deviceType: gpio.GPIOPin, pinNumber:76, name:GPIO76 -77 = deviceType: gpio.GPIOPin, pinNumber:77, name:GPIO77 -78 = deviceType: gpio.GPIOPin, pinNumber:78, name:GPIO78 -79 = deviceType: gpio.GPIOPin, pinNumber:79, name:GPIO79 -149 = deviceType: gpio.GPIOPin, pinNumber:149, name:GPIO149 -168 = deviceType: gpio.GPIOPin, pinNumber:168, name:GPIO168 -194 = deviceType: gpio.GPIOPin, pinNumber:194, name:GPIO194 -200 = deviceType: gpio.GPIOPin, pinNumber:200, name:GPIO200 -216 = deviceType: gpio.GPIOPin, pinNumber:216, name:GPIO216 -232 = deviceType: gpio.GPIOPin, pinNumber:232, name:GPIO232 - -gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3 -uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0 diff --git a/kura/distrib/src/main/resources/common/network.interfaces b/kura/distrib/src/main/resources/common/network.interfaces deleted file mode 100644 index 2bf08570295..00000000000 --- a/kura/distrib/src/main/resources/common/network.interfaces +++ /dev/null @@ -1,33 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Wireless interfaces -auto wlan0 -iface wlan0 inet static - address 172.16.1.1 - netmask 255.255.255.0 - -iface atml0 inet dhcp - -# Wired or wireless interfaces -auto eth0 -iface eth0 inet static - address 172.16.0.1 - netmask 255.255.255.0 - -# Ethernet/RNDIS gadget (g_ether) -# ... or on host side, usbnet and random hwaddr -iface usb0 inet static - address 192.168.7.2 - netmask 255.255.255.0 - network 192.168.7.0 - gateway 192.168.7.1 - -# Bluetooth networking -iface bnep0 inet dhcp - -auto eth1 -iface eth1 inet dhcp diff --git a/kura/distrib/src/main/resources/common/patch_sysctl.sh b/kura/distrib/src/main/resources/common/patch_sysctl.sh deleted file mode 100755 index 37ac44e6136..00000000000 --- a/kura/distrib/src/main/resources/common/patch_sysctl.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -e -# -# Copyright (c) 2016, 2020 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# -# sysctl updater - -if ! [ x"$1" != "x" ] || ! [ x"$2" != "x" ] || ! [ -a $1 ] || ! [ -a $2 ]; then - echo "Usage $0 " - exit 1 -fi - -if [ -e /etc/fedora-release ]; then - touch /etc/modules-load.d/ipv6.conf - sed -i '/ipv6.*/d' /etc/modules-load.d/ipv6.conf - echo "ipv6 " >> /etc/modules-load.d/ipv6.conf -fi - -eval sed -i `grep -v "^#" $1 | sed "s|\(.*\)=.*|-e '\/\1\/d'|"` $2 -grep -v "^#" $1 >> $2 - -# This is a bash script that performs the following actions: -# -# 1) Checks if the first and second command line arguments are provided and if they exist in the file system. If any of these conditions are not met, the script prints a usage message and exits with an error code. -# -# 2) If the script is running on a system with the file "/etc/fedora-release", the script creates a file called "ipv6.conf" in the directory "/etc/modules-load.d/", removes any existing lines containing "ipv6" from the "ipv6.conf" file, and appends a new line with "ipv6". -# -# 3) The script removes any commented lines and extracts the non-commented lines containing kernel parameters from the first file, and uses them as patterns to delete matching lines in the second file. -# -# Finally, the script appends the non-commented lines from the first file to the second file. -# -# In summary, the script updates the second file with the kernel parameters specified in the first file and ensures that the "ipv6" kernel module is loaded if the script is running on a Fedora-based system. \ No newline at end of file diff --git a/kura/distrib/src/main/resources/common/snapshots/snapshot_0.xml-intelup2 b/kura/distrib/src/main/resources/common/snapshots/snapshot_0.xml-intelup2 deleted file mode 100644 index ef9b43d1f56..00000000000 --- a/kura/distrib/src/main/resources/common/snapshots/snapshot_0.xml-intelup2 +++ /dev/null @@ -1,536 +0,0 @@ - - - - - - - 22,tcp,,enp2s0,,,,#;22,tcp,,enp3s0,,,,#;443,tcp,,enp2s0,,,,#;443,tcp,,enp3s0,,,,#;4443,tcp,,enp2s0,,,,#;4443,tcp,,enp3s0,,,,#;1450,tcp,,enp2s0,,,,#;1450,tcp,,enp3s0,,,,#;5002,tcp,127.0.0.1/32,,,,,#;53,udp,,enp2s0,,,,#;53,udp,,enp3s0,,,,#;53,udp,,wlp4s0,,,,#;67,udp,,enp2s0,,,,#;67,udp,,enp3s0,,,,#;67,udp,,wlp4s0,,,,#;8000,tcp,,enp2s0,,,,#;8000,tcp,,enp3s0,,,,#;5353,udp,,enp2s0,,,,#;5353,udp,,enp3s0,,,,# - - - - - - - - - - - - - 7200 - - - enp3s0,lo,enp2s0 - - - netIPv4StatusUnmanaged - - - netIPv6StatusUnmanaged - - - 172.16.0.1 - - - - - - ETHERNET - - - netIPv4StatusEnabledLAN - - - netIPv6StatusDisabled - - - 172.16.0.1 - - - - - - - - - true - - - true - - - 127.0.0.1 - - - false - - - true - - - 7200 - - - -1 - - - true - - - 24 - - - false - - - - - - 172.16.0.110 - - - true - - - 24 - - - 172.16.0.100 - - - LOOPBACK - - - - - - - - - ETHERNET - - - netIPv4StatusEnabledWAN - - - netIPv6StatusDisabled - - - - - - - false - - - org.eclipse.kura.watchdog.WatchdogService - - - 10000 - - - - - - - true - - - 123 - - - 3600 - - - java-ntp - - - true - - - 10000 - - - 0.pool.ntp.org - - - org.eclipse.kura.clock.ClockService - - - - - - - SA - - - 10 - - - jdbc:h2:mem:kuradb - - - org.eclipse.kura.core.db.H2DbService - - - 900 - - - org.eclipse.kura.db.H2DbService - - - - - - - memory - - - true - - - false - - - 4 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - 20 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - mqtt://broker-url:1883/ - - - 30 - - - account-name - - - $EDC/#account-name/#client-id/MQTT/LWT - - - 0 - - - use-ssl-service-config - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - username - - - - - - - 60 - - - 0 - - - true - - - 9 - - - org.eclipse.kura.data.DataService - - - 10 - - - 10 - - - org.eclipse.kura.data.DataService - - - 900 - - - false - - - SECONDS - - - 1 - - - org.eclipse.kura.db.H2DbService - - - (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport) - - - 60 - - - false - - - 1 - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - true - - - 1000 - - - - - - - 1-3.2 - - - false - - - 0 - - - 1 - - - 115200 - - - org.eclipse.kura.position.PositionService - - - 8 - - - gpsd - - - - - - - $EDC - - - Intel UP² - - - device-name - - - kura-protobuf - - - false - - - org.eclipse.kura.cloud.CloudService - - - org.eclipse.kura.cloud.CloudService - - - true - - - false - - - true - - - (kura.service.pid=org.eclipse.kura.data.DataService) - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - - - - - TLSv1.2 - - - true - - - (kura.service.pid=SSLKeystore) - - - org.eclipse.kura.ssl.SslManagerService - - - 100 - - - - - - - 443 - - - 4443 - - - (kura.service.pid=HttpsKeystore) - - - org.eclipse.kura.http.server.manager.HttpService - - - org.eclipse.kura.http.server.manager.HttpService - - - - - - - /opt/eclipse/kura/user/security/httpskeystore.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - HttpsKeystore - - - - - - - /opt/eclipse/kura/user/security/cacerts.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - SSLKeystore - - - - - - - [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.netadmin","credentials":{"kura.password":"3PgDKAMCxgRWBHiT1dEBS97bPqt7xckgdwrADJiDoWg="},"properties":{"kura.need.password.change":"true"}}] - - - [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin","kura.user.netadmin"]},{"name":"kura.permission.kura.device","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.network.admin","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.network.configuration"},{"name":"kura.permission.rest.network.status"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}] - - - - - - - 60 - - - - - - false - - - true - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - - - - - - - - /var/log/kura.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7 - - - - - - - /var/log/kura-audit.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-audit-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8 - - - - - - - false - - - false - - - org.eclipse.kura.internal.rest.provider.RestService - - - org.eclipse.kura.internal.rest.provider.RestService - - - - diff --git a/kura/distrib/src/main/resources/common/snapshots/snapshot_0.xml-jetson-nano b/kura/distrib/src/main/resources/common/snapshots/snapshot_0.xml-jetson-nano deleted file mode 100644 index f2d170f49ea..00000000000 --- a/kura/distrib/src/main/resources/common/snapshots/snapshot_0.xml-jetson-nano +++ /dev/null @@ -1,500 +0,0 @@ - - - - - - - 22,tcp,,eth0,,,,#;443,tcp,,eth0,,,,#;4443,tcp,,eth0,,,,#;1450,tcp,,eth0,,,,#;5002,tcp,127.0.0.1/32,,,,,#;53,udp,,eth0,,,,#;67,udp,,eth0,,,,#;8000,tcp,,eth0,,,,#;2947,tcp,,lo,,,,# - - - - - - - - - - - - - - - - false - - - ETHERNET - - - LOOPBACK - - - 8 - - - netIPv4StatusEnabledWAN - - - netIPv6StatusDisabled - - - 24 - - - lo,eth0 - - - 7200 - - - 172.16.0.100 - - - false - - - 7200 - - - 127.0.0.1 - - - true - - - 172.16.0.110 - - - false - - - - - - netIPv4StatusUnmanaged - - - netIPv6StatusUnmanaged - - - - - - - - - - false - - - org.eclipse.kura.watchdog.WatchdogService - - - 10000 - - - - - - - true - - - 123 - - - 3600 - - - java-ntp - - - true - - - 10000 - - - 0.pool.ntp.org - - - org.eclipse.kura.clock.ClockService - - - - - - - SA - - - 10 - - - jdbc:h2:mem:kuradb - - - org.eclipse.kura.core.db.H2DbService - - - 900 - - - org.eclipse.kura.db.H2DbService - - - - - - - memory - - - true - - - false - - - 4 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - 20 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - mqtt://broker-url:1883/ - - - 30 - - - account-name - - - $EDC/#account-name/#client-id/MQTT/LWT - - - 0 - - - use-ssl-service-config - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - username - - - - - - - 60 - - - 0 - - - true - - - 9 - - - org.eclipse.kura.data.DataService - - - 10 - - - 10 - - - org.eclipse.kura.data.DataService - - - 900 - - - false - - - SECONDS - - - 1 - - - org.eclipse.kura.db.H2DbService - - - (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport) - - - 60 - - - false - - - 1 - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - true - - - 1000 - - - - - - - 1-3.2 - - - false - - - 0 - - - 1 - - - 115200 - - - org.eclipse.kura.position.PositionService - - - 8 - - - gpsd - - - - - - - $EDC - - - Nvidia Jetson Nano - - - device-name - - - kura-protobuf - - - false - - - org.eclipse.kura.cloud.CloudService - - - org.eclipse.kura.cloud.CloudService - - - true - - - false - - - true - - - (kura.service.pid=org.eclipse.kura.data.DataService) - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - - - - - TLSv1.2 - - - true - - - (kura.service.pid=SSLKeystore) - - - org.eclipse.kura.ssl.SslManagerService - - - 100 - - - - - - - 443 - - - 4443 - - - (kura.service.pid=HttpsKeystore) - - - org.eclipse.kura.http.server.manager.HttpService - - - org.eclipse.kura.http.server.manager.HttpService - - - - - - - [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.netadmin","credentials":{"kura.password":"3PgDKAMCxgRWBHiT1dEBS97bPqt7xckgdwrADJiDoWg="},"properties":{"kura.need.password.change":"true"}}] - - - [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin","kura.user.netadmin"]},{"name":"kura.permission.kura.device","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.network.admin","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.network.configuration"},{"name":"kura.permission.rest.network.status"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}] - - - - - - - /opt/eclipse/kura/user/security/httpskeystore.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - HttpsKeystore - - - - - - - /opt/eclipse/kura/user/security/cacerts.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - SSLKeystore - - - - - - - 60 - - - - - - false - - - true - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - - - - - - - - /var/log/kura.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7 - - - - - - - /var/log/kura-audit.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-audit-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8 - - - - - - - false - - - false - - - org.eclipse.kura.internal.rest.provider.RestService - - - org.eclipse.kura.internal.rest.provider.RestService - - - - diff --git a/kura/distrib/src/main/resources/common/sysctl.kura.conf b/kura/distrib/src/main/resources/common/sysctl.kura.conf deleted file mode 100755 index 6baede928e2..00000000000 --- a/kura/distrib/src/main/resources/common/sysctl.kura.conf +++ /dev/null @@ -1,22 +0,0 @@ -# -# Copyright (c) 2016, 2020 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -# Kura sysctl.conf changes -net.ipv6.conf.all.disable_ipv6 = 1 #ERRATA UPDATE (14-12-2016): SECURITY (IPV6) -net.ipv6.conf.default.disable_ipv6 = 1 -net.ipv6.conf.lo.disable_ipv6 = 1 -net.ipv6.conf.eth0.disable_ipv6 = 1 -net.ipv6.conf.eth1.disable_ipv6 = 1 -net.ipv6.conf.wlan0.disable_ipv6 = 1 -net.ipv6.conf.wlan1.disable_ipv6 = 1 -net.ipv6.conf.usb0.disable_ipv6 = 1 diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/control b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/control deleted file mode 100644 index 17ac6fcdafc..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/control +++ /dev/null @@ -1,16 +0,0 @@ -Package: kura -Version: [[project.version]] -Section: misc -Priority: low -Depends: dos2unix, unzip, - telnet, bluez-hcidump, - bluez, chrony, ntpdate, - openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk, - cron -Architecture: all -Maintainer: support@eurotech.com -Description: Kura is an inclusive software framework that puts a layer - between the operating system and the customer application, with industry - standard interfaces that shorten custom development time, simplified coding - and software that can be easily ported from one hardware platform - to another. diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/postinst b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/postinst deleted file mode 100755 index f5afce50484..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/postinst +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -TIMESTAMP=`date +%Y%m%d%H%M%S` -LOG=/tmp/kura_install_${TIMESTAMP}.log -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run postInstall function and start watchdog if needed -function runPostInstall { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - echo "Got watchdog ${WATCHDOG_DEVICE}" >> $LOG 2>&1 - postInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - postInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-install script -function postInstall { - mkdir -p ${INSTALL_DIR} >> ${LOG} 2>&1 - unzip /tmp/kura_*.zip -d ${INSTALL_DIR} >> ${LOG} 2>&1 - - #install KURA files - sh ${INSTALL_DIR}/kura_*/install/kura_install.sh >> ${LOG} 2>&1 - - #clean up - rm -rf ${INSTALL_DIR}/kura/install >> ${LOG} 2>&1 - rm /tmp/kura_*.zip >> ${LOG} 2>&1 - - #move the log file - mkdir -p ${INSTALL_DIR}/kura/log - mv ${LOG} ${INSTALL_DIR}/kura/log/ - - #flush all cached filesystem to disk - sync - - echo "" - echo "Finished. KURA has been installed to ${INSTALL_DIR}/kura and will start automatically after a reboot" -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# POST INSTALL SCRIPT -############################################## -runPostInstall -exit 0 -############################################# -# END POST INSTALL SCRIPT -############################################## - diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/preinst b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/preinst deleted file mode 100755 index b270398de86..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/preinst +++ /dev/null @@ -1,102 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run preInstall function and start watchdog if needed -function runPreInstall { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - preInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - preInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-install script -function preInstall { - #clean up old installation if present - rm -fr /opt/eclipse/kura* >> /tmp/kura_install.log 2>&1 - rm -fr ${INSTALL_DIR}/kura* >> /tmp/kura_install.log 2>&1 - rm -fr /tmp/.kura/ >> /tmp/kura_install.log 2>&1 - rm /etc/init.d/firewall >> /tmp/kura_install.log 2>&1 - rm /etc/dhcpd-*.conf >> /tmp/kura_install.log 2>&1 - rm /etc/wpa_supplicant.conf >> /tmp/kura_install.log 2>&1 - rm /etc/hostapd.conf >> /tmp/kura_install.log 2>&1 - rm /tmp/coninfo-* >> /tmp/kura_install.log 2>&1 - rm /var/log/kura.log >> /tmp/kura_install.log 2>&1 - rm -fr /etc/ppp/chat >> /tmp/kura_install.log 2>&1 - rm -fr /etc/ppp/peers >> /tmp/kura_install.log 2>&1 - rm -fr /etc/ppp/scripts >> /tmp/kura_install.log 2>&1 - rm /etc/ppp/*ap-secrets >> /tmp/kura_install.log 2>&1 - rm -f kura-*.zip >> /tmp/kura_install.log 2>&1 - rm -f kura_*.zip >> /tmp/kura_install.log 2>&1 - - echo "" -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# PRE-INSTALL SCRIPT -############################################## -PIDS=`pgrep java` - -echo "" -echo "Installing Kura..." -echo "Installing Kura..." > /tmp/kura_install.log 2>&1 - -#Kill JVM and monit for installation -if [ -f "/var/run/kura.pid" ] ; then - KURA_PID=`cat /var/run/kura.pid` - - for pid in "${PIDS[@]}" - do - if [ "$KURA_PID" == "$pid" ] ; then - `kill $pid` >> /tmp/kura_install.log 2>&1 - fi - done -fi - -runPreInstall -############################################## -# END PRE-INSTALL SCRIPT -############################################## - diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/prerm b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/prerm deleted file mode 100644 index 729de7ecf6c..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/deb/control/prerm +++ /dev/null @@ -1,124 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 -TIMESTAMP=$(date +%Y%m%d%H%M) -LOG=/tmp/kura_uninstall_${TIMESTAMP}.log - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run preRemove function and start watchdog if needed -function runPreRemove { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - preRemove & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - preRemove & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-remove script -function preRemove { - #Remove INIT scripts - if [ -f /etc/init.d/kura ] ; then - rm /etc/init.d/kura - update-rc.d kura remove - fi - if [ -f /lib/systemd/system/kura.service ] ; then - systemctl disable kura - rm /lib/systemd/system/kura.service - fi - if [ -f /etc/init.d/firewall ] ; then - rm /etc/init.d/firewall - update-rc.d firewall remove - fi - if [ -f /lib/systemd/system/firewall.service ] ; then - systemctl disable firewall - rm /lib/systemd/system/firewall.service - fi - - #Roll-back logrotate setup - rm -f /var/log/logrotate-kura.status - rm -f /etc/logrotate-kura.conf - rm -f /etc/cron.d/logrotate-kura - - rm -f /var/log/kura*.log - rm -f /var/log/kura*.gz - rm -rf /tmp/.kura - rm -rf /tmp/kura - - if [ -d "${INSTALL_DIR}/kura" ] ; then - ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -u - PARENT=`readlink -f ${INSTALL_DIR}/kura` - rm -rf ${INSTALL_DIR}/kura - rm -rf $PARENT - fi -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# PRE-REMOVE SCRIPT -############################################## -echo "" -echo "Uninstalling KURA..." - -PIDS=`pgrep java` - -#Kill JVM and monit for installation -if [ -f "/var/run/kura.pid" ] ; then - KURA_PID=`cat /var/run/kura.pid` - - for pid in "${PIDS[@]}" - do - if [ "$KURA_PID" == "$pid" ] ; then - `kill $pid` >> "$LOG" 2>&1 - fi - done -fi - -runPreRemove >> "$LOG" 2>&1 - -mkdir -p /opt/eclipse/kura/log/ -mv "$LOG" /opt/eclipse/kura/log/ - -echo "" -echo "Uninstalling KURA... Done!" -############################################## -# END PRE-REMOVE SCRIPT -############################################## diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/jdk.dio.properties b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/jdk.dio.properties deleted file mode 100644 index 7637938bc81..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/jdk.dio.properties +++ /dev/null @@ -1,54 +0,0 @@ -# -# Copyright (c) 2011, 2021 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -#The following setup is valid for the factory default device-tree overlay of the BBB -# -#When overriding the default device-tree overlay, this file should be updated accordingly -# -#GPIO numbers are expressed as indicated in the specs: -#GPIO name and number = GPIO controller # x GPIO # -#i.e: GPIO_0_31 --> GPIO_31 -# GPIO_2_2 --> GPIO_66 - -gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3 -uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0 - -#https://wiki.up-community.org/Pinout_UP2 -326 = deviceType: gpio.GPIOPin, pinNumber:326, name:GPIO326 -327 = deviceType: gpio.GPIOPin, pinNumber:327, name:GPIO327 -328 = deviceType: gpio.GPIOPin, pinNumber:328, name:GPIO328 -329 = deviceType: gpio.GPIOPin, pinNumber:329, name:GPIO329 -402 = deviceType: gpio.GPIOPin, pinNumber:402, name:GPIO402 -403 = deviceType: gpio.GPIOPin, pinNumber:403, name:GPIO403 -404 = deviceType: gpio.GPIOPin, pinNumber:404, name:GPIO404 -405 = deviceType: gpio.GPIOPin, pinNumber:405, name:GPIO405 -418 = deviceType: gpio.GPIOPin, pinNumber:418, name:GPIO418 -419 = deviceType: gpio.GPIOPin, pinNumber:419, name:GPIO419 -420 = deviceType: gpio.GPIOPin, pinNumber:420, name:GPIO420 -421 = deviceType: gpio.GPIOPin, pinNumber:421, name:GPIO421 -422 = deviceType: gpio.GPIOPin, pinNumber:422, name:GPIO422 -430 = deviceType: gpio.GPIOPin, pinNumber:430, name:GPIO430 -431 = deviceType: gpio.GPIOPin, pinNumber:431, name:GPIO431 -432 = deviceType: gpio.GPIOPin, pinNumber:432, name:GPIO432 -433 = deviceType: gpio.GPIOPin, pinNumber:433, name:GPIO433 -462 = deviceType: gpio.GPIOPin, pinNumber:462, name:GPIO462 -463 = deviceType: gpio.GPIOPin, pinNumber:463, name:GPIO463 -464 = deviceType: gpio.GPIOPin, pinNumber:464, name:GPIO464 -465 = deviceType: gpio.GPIOPin, pinNumber:465, name:GPIO465 -468 = deviceType: gpio.GPIOPin, pinNumber:468, name:GPIO468 -469 = deviceType: gpio.GPIOPin, pinNumber:469, name:GPIO469 -471 = deviceType: gpio.GPIOPin, pinNumber:471, name:GPIO471 -476 = deviceType: gpio.GPIOPin, pinNumber:476, name:GPIO476 -477 = deviceType: gpio.GPIOPin, pinNumber:477, name:GPIO477 -478 = deviceType: gpio.GPIOPin, pinNumber:478, name:GPIO478 -479 = deviceType: gpio.GPIOPin, pinNumber:479, name:GPIO479 \ No newline at end of file diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura.logrotate b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura.logrotate deleted file mode 100644 index 7290356a767..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura.logrotate +++ /dev/null @@ -1,21 +0,0 @@ -# Logrotate file for Kura. -# Kura generated file. Do not modify or overwrite. - -/var/log/kura*.log -{ - su root syslog - missingok - notifempty - copytruncate - compress - rotate 7 - maxsize 10M - daily - dateext - dateformat -%Y%m%d-%s - create 0600 root root - sharedscripts - postrotate - reload kura >/dev/null 2>&1 || true - endscript -} diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura.properties b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura.properties deleted file mode 100644 index 99a58c643dd..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura.properties +++ /dev/null @@ -1,101 +0,0 @@ -# -# Copyright (c) 2011, 2022 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -## ----------------------------------------------------------------------------- -## Kura Properties -## ----------------------------------------------------------------------------- -kura.name=Eclipse Kura -kura.version= -kura.marketplace.compatibility.version= -kura.company=ECLIPSE -kura.project=intel-up2-ubuntu -kura.platform=intel-up2-ubuntu -kura.device.name=intel-up2 -kura.model.id=intel-up2 -kura.model.name=intel-up2 -kura.partNumber=intel-up2 -kura.serialNumber=intel-up2 -kura.bios.version=N/A -kura.firmware.version=N/A -kura.primary.network.interface=enp2s0 -# kura.mac.address= Fetch from Java -kura.home={kura.install.dir}/{kura.symlink} -kura.framework.config={kura.install.dir}/{kura.symlink}/framework -kura.user.config={kura.install.dir}/{kura.symlink}/user -kura.plugins={kura.install.dir}/{kura.symlink}/plugins -kura.packages={kura.install.dir}/{kura.symlink}/packages -kura.data={kura.install.dir}/{kura.symlink}/data -kura.tmp=/tmp/.kura -kura.snapshots={kura.install.dir}/{kura.symlink}/user/snapshots -kura.style.dir={kura.install.dir}/{kura.symlink}/console/skin -kura.have.net.admin=false -kura.net.virtual.devices.config=unmanaged -kura.log.download.sources=/var/log -kura.log.download.journal.fields=SYSLOG_IDENTIFIER,PRIORITY,MESSAGE,STACKTRACE -# os.arch= Fetch from Java -# os.name= Fetch from Java -# os.version= Fetch from Java -os.distribution=Ubuntu -os.distribution.version=20.04 -# java.version= Fetch from Java -# java.vendor= Fetch from Java -# java.vm.name= Fetch from Java -# java.vm.version= Fetch from Java -# java.home= Fetch from Java -# file.separator= Fetch from Java -kura.command.user=kura -kura.legacy.bluetooth.beacon.scan=false -kura.legacy.ppp.logging.enabled=true - - -## ----------------------------------------------------------------------------- -## Remote Configuration Properties -## ----------------------------------------------------------------------------- -console.device.management.service.ignore=org.eclipse.kura.net.admin.NetworkConfigurationService,org.eclipse.kura.net.admin.FirewallConfigurationService - - -## ----------------------------------------------------------------------------- -## File upload settings -## ----------------------------------------------------------------------------- -# default 10240 -file.upload.in.memory.size.threshold=10240 -# -1: unlimited (default) -file.upload.size.max=-1 -file.command.zip.max.size=100 -file.command.zip.max.number=1024 - - -## ----------------------------------------------------------------------------- -## Deployment Agent settings -## ----------------------------------------------------------------------------- -# see copyURLToFile() http://commons.apache.org/proper/commons-io/javadocs/api-2.4/index.html -dpa.connection.timeout = 60000 -dpa.read.timeout = 60000 - - -## ----------------------------------------------------------------------------- -## Cloud Connection Status settings -## ----------------------------------------------------------------------------- - -#1. Cloud Connection Status on system log -#The Cloud Connection Status will be indicated in the log files, and nowere else -ccs.status.notification.url=ccs:log - -#2. Cloud Connection Status on LED -#The Cloud Connection Status will be indicated by a blinking LED connected to the system GPIOs -#The URL should indicate the GPIO logic index of the GPIO Pin used for the LED -#ccs.status.notification.url=ccs:led:16 - -#3. Cloud Connection Status disabled -#Disables the Cloud Connection Status service -#ccs.status.notification.url=ccs:none diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura_install.sh b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura_install.sh deleted file mode 100644 index eaf5647cc1a..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura_install.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2011, 2024 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -setup_libudev() { - # create soft link for libudev.so.0 to make it retrocompatible - # https://unix.stackexchange.com/questions/156776/arch-ubuntu-so-whats-the-deal-with-libudev-so-0 - if [ ! -f /lib/libudev.so.0 ] && [ -f /lib/libudev.so.1 ]; then - ln -sf /lib/libudev.so.1 /lib/libudev.so.0 - fi - - if [ ! -f /usr/lib/x86_64-linux-gnu/libudev.so.0 ] && [ -f /usr/lib/x86_64-linux-gnu/libudev.so.1 ]; then - ln -sf /usr/lib/x86_64-linux-gnu/libudev.so.1 /usr/lib/x86_64-linux-gnu/libudev.so.0 - fi -} - -INSTALL_DIR=/opt/eclipse - -setup_libudev - -#create known kura install location -ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura - -#set up Kura init -sed "s|INSTALL_DIR|${INSTALL_DIR}|" ${INSTALL_DIR}/kura/install/kura.service > /lib/systemd/system/kura.service -systemctl daemon-reload -systemctl enable kura -chmod +x ${INSTALL_DIR}/kura/bin/*.sh - -# setup snapshot_0 recovery folder -if [ ! -d ${INSTALL_DIR}/kura/.data ]; then - mkdir ${INSTALL_DIR}/kura/.data -fi - -mkdir -p ${INSTALL_DIR}/kura/data - -# setup /etc/sysconfig folder for iptables configuration file -if [ ! -d /etc/sysconfig ]; then - mkdir /etc/sysconfig -fi - -#set up users and grant permissions to them -cp ${INSTALL_DIR}/kura/install/manage_kura_users.sh ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -chmod 700 ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -${INSTALL_DIR}/kura/.data/manage_kura_users.sh -i -nn - -systemctl stop apparmor -systemctl disable apparmor - -#copy snapshot_0.xml -cp ${INSTALL_DIR}/kura/user/snapshots/snapshot_0.xml ${INSTALL_DIR}/kura/.data/snapshot_0.xml - -#disable NTP service -if command -v timedatectl > /dev/null ; - then - timedatectl set-ntp false -fi - -# Prevent time sync services from starting -systemctl stop systemd-timesyncd -systemctl disable systemd-timesyncd -# Prevent time sync with chrony from starting. -systemctl stop chrony -systemctl disable chrony - -#set up logrotate - no need to restart as it is a cronjob -cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf - -if [ ! -f /etc/cron.d/logrotate-kura ]; then - test -d /etc/cron.d || mkdir -p /etc/cron.d - touch /etc/cron.d/logrotate-kura - echo "*/5 * * * * root /usr/sbin/logrotate --state /var/log/logrotate-kura.status /etc/logrotate-kura.conf" >> /etc/cron.d/logrotate-kura -fi - -#set up systemd-tmpfiles -cp ${INSTALL_DIR}/kura/install/kura-tmpfiles.conf /etc/tmpfiles.d/kura.conf - -# set up kura files permissions -chmod 700 ${INSTALL_DIR}/kura/bin/*.sh -chown -R kurad:kurad /opt/eclipse -chmod -R go-rwx /opt/eclipse -chmod a+rx /opt/eclipse -find /opt/eclipse/kura -type d -exec chmod u+x "{}" \; - -#enable kurad user to HALT functionality -for group in gpio leds spi i2c; do - if ! getent group $group >/dev/null; then - addgroup --system $group - fi -done - -usermod -a -G gpio kurad -usermod -a -G leds kurad -usermod -a -G spi kurad -usermod -a -G i2c kurad -# kurad is already added in dialout in manage_kura_users.sh -#usermod -a -G dialout kurad - -keytool -genkey -alias localhost -keyalg RSA -keysize 2048 -keystore /opt/eclipse/kura/user/security/httpskeystore.ks -deststoretype pkcs12 -dname "CN=Kura, OU=Kura, O=Eclipse Foundation, L=Ottawa, S=Ontario, C=CA" -ext ku=digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment,keyAgreement,keyCertSign -ext eku=serverAuth,clientAuth,codeSigning,timeStamping -validity 1000 -storepass changeit -keypass changeit diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura_upgrade.sh b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura_upgrade.sh deleted file mode 100644 index a78a71420c3..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/kura_upgrade.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2011, 2022 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -INSTALL_DIR=/opt/eclipse - -#create known kura install location -ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura - -#set up logrotate - no need to restart as it is a cronjob -cp ${INSTALL_DIR}/kura/install/logrotate.conf /etc/logrotate.conf -cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate.d/kura diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/log4j.xml b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/log4j.xml deleted file mode 100644 index 65cbedda8b5..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/log4j.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - /var/log - kura - - - - - - - %d{ISO8601} [%t] %-5p %c{1.} - %m%n%throwable{full} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/snapshot_0.xml b/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/snapshot_0.xml deleted file mode 100644 index 8026ff6e91a..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20-nn/snapshot_0.xml +++ /dev/null @@ -1,417 +0,0 @@ - - - - - - - false - - - org.eclipse.kura.watchdog.WatchdogService - - - 10000 - - - - - - - true - - - 123 - - - 3600 - - - java-ntp - - - true - - - 10000 - - - 0.pool.ntp.org - - - org.eclipse.kura.clock.ClockService - - - - - - - SA - - - 10 - - - jdbc:h2:mem:kuradb - - - org.eclipse.kura.core.db.H2DbService - - - 900 - - - org.eclipse.kura.db.H2DbService - - - - - - - memory - - - true - - - false - - - 4 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - 20 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - mqtt://broker-url:1883/ - - - 30 - - - account-name - - - $EDC/#account-name/#client-id/MQTT/LWT - - - 0 - - - use-ssl-service-config - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - username - - - - - - - 60 - - - 0 - - - true - - - 9 - - - org.eclipse.kura.data.DataService - - - 10 - - - 10 - - - org.eclipse.kura.data.DataService - - - 900 - - - false - - - SECONDS - - - 1 - - - org.eclipse.kura.db.H2DbService - - - (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport) - - - 60 - - - false - - - 1 - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - true - - - 1000 - - - - - - - 1-3.2 - - - false - - - 0 - - - 1 - - - 115200 - - - org.eclipse.kura.position.PositionService - - - 8 - - - - - - - $EDC - - - Intel UP² - - - device-name - - - kura-protobuf - - - false - - - org.eclipse.kura.cloud.CloudService - - - org.eclipse.kura.cloud.CloudService - - - true - - - false - - - true - - - (kura.service.pid=org.eclipse.kura.data.DataService) - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - - - - - TLSv1.2 - - - true - - - (kura.service.pid=SSLKeystore) - - - org.eclipse.kura.ssl.SslManagerService - - - 100 - - - - - - - 443 - - - 4443 - - - (kura.service.pid=HttpsKeystore) - - - org.eclipse.kura.http.server.manager.HttpService - - - org.eclipse.kura.http.server.manager.HttpService - - - - - - - /opt/eclipse/kura/user/security/httpskeystore.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - HttpsKeystore - - - - - - - /opt/eclipse/kura/user/security/cacerts.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - SSLKeystore - - - - - - - [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}}] - - - [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.device"},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}] - - - - - - - 60 - - - - - - false - - - true - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - - - - - - - - /var/log/kura.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7 - - - - - - - /var/log/kura-audit.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-audit-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8 - - - - - - - false - - - false - - - org.eclipse.kura.internal.rest.provider.RestService - - - org.eclipse.kura.internal.rest.provider.RestService - - - - diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/control b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/control deleted file mode 100644 index b07445d7dc8..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/control +++ /dev/null @@ -1,19 +0,0 @@ -Package: kura -Version: [[project.version]] -Section: misc -Priority: low -Depends: hostapd, isc-dhcp-server, iw, - dos2unix, bind9, unzip, - ethtool, telnet, bluez-hcidump, - bluez, wireless-tools, net-tools, - iptables, chrony, ntpdate, - ifupdown, - openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk, - dmidecode, cron -Architecture: all -Maintainer: support@eurotech.com -Description: Kura is an inclusive software framework that puts a layer - between the operating system and the customer application, with industry - standard interfaces that shorten custom development time, simplified coding - and software that can be easily ported from one hardware platform - to another. diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/postinst b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/postinst deleted file mode 100755 index f5afce50484..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/postinst +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -TIMESTAMP=`date +%Y%m%d%H%M%S` -LOG=/tmp/kura_install_${TIMESTAMP}.log -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run postInstall function and start watchdog if needed -function runPostInstall { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - echo "Got watchdog ${WATCHDOG_DEVICE}" >> $LOG 2>&1 - postInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - postInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-install script -function postInstall { - mkdir -p ${INSTALL_DIR} >> ${LOG} 2>&1 - unzip /tmp/kura_*.zip -d ${INSTALL_DIR} >> ${LOG} 2>&1 - - #install KURA files - sh ${INSTALL_DIR}/kura_*/install/kura_install.sh >> ${LOG} 2>&1 - - #clean up - rm -rf ${INSTALL_DIR}/kura/install >> ${LOG} 2>&1 - rm /tmp/kura_*.zip >> ${LOG} 2>&1 - - #move the log file - mkdir -p ${INSTALL_DIR}/kura/log - mv ${LOG} ${INSTALL_DIR}/kura/log/ - - #flush all cached filesystem to disk - sync - - echo "" - echo "Finished. KURA has been installed to ${INSTALL_DIR}/kura and will start automatically after a reboot" -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# POST INSTALL SCRIPT -############################################## -runPostInstall -exit 0 -############################################# -# END POST INSTALL SCRIPT -############################################## - diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/preinst b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/preinst deleted file mode 100755 index b270398de86..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/preinst +++ /dev/null @@ -1,102 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run preInstall function and start watchdog if needed -function runPreInstall { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - preInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - preInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-install script -function preInstall { - #clean up old installation if present - rm -fr /opt/eclipse/kura* >> /tmp/kura_install.log 2>&1 - rm -fr ${INSTALL_DIR}/kura* >> /tmp/kura_install.log 2>&1 - rm -fr /tmp/.kura/ >> /tmp/kura_install.log 2>&1 - rm /etc/init.d/firewall >> /tmp/kura_install.log 2>&1 - rm /etc/dhcpd-*.conf >> /tmp/kura_install.log 2>&1 - rm /etc/wpa_supplicant.conf >> /tmp/kura_install.log 2>&1 - rm /etc/hostapd.conf >> /tmp/kura_install.log 2>&1 - rm /tmp/coninfo-* >> /tmp/kura_install.log 2>&1 - rm /var/log/kura.log >> /tmp/kura_install.log 2>&1 - rm -fr /etc/ppp/chat >> /tmp/kura_install.log 2>&1 - rm -fr /etc/ppp/peers >> /tmp/kura_install.log 2>&1 - rm -fr /etc/ppp/scripts >> /tmp/kura_install.log 2>&1 - rm /etc/ppp/*ap-secrets >> /tmp/kura_install.log 2>&1 - rm -f kura-*.zip >> /tmp/kura_install.log 2>&1 - rm -f kura_*.zip >> /tmp/kura_install.log 2>&1 - - echo "" -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# PRE-INSTALL SCRIPT -############################################## -PIDS=`pgrep java` - -echo "" -echo "Installing Kura..." -echo "Installing Kura..." > /tmp/kura_install.log 2>&1 - -#Kill JVM and monit for installation -if [ -f "/var/run/kura.pid" ] ; then - KURA_PID=`cat /var/run/kura.pid` - - for pid in "${PIDS[@]}" - do - if [ "$KURA_PID" == "$pid" ] ; then - `kill $pid` >> /tmp/kura_install.log 2>&1 - fi - done -fi - -runPreInstall -############################################## -# END PRE-INSTALL SCRIPT -############################################## - diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/prerm b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/prerm deleted file mode 100644 index 729de7ecf6c..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/deb/control/prerm +++ /dev/null @@ -1,124 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 -TIMESTAMP=$(date +%Y%m%d%H%M) -LOG=/tmp/kura_uninstall_${TIMESTAMP}.log - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run preRemove function and start watchdog if needed -function runPreRemove { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - preRemove & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - preRemove & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-remove script -function preRemove { - #Remove INIT scripts - if [ -f /etc/init.d/kura ] ; then - rm /etc/init.d/kura - update-rc.d kura remove - fi - if [ -f /lib/systemd/system/kura.service ] ; then - systemctl disable kura - rm /lib/systemd/system/kura.service - fi - if [ -f /etc/init.d/firewall ] ; then - rm /etc/init.d/firewall - update-rc.d firewall remove - fi - if [ -f /lib/systemd/system/firewall.service ] ; then - systemctl disable firewall - rm /lib/systemd/system/firewall.service - fi - - #Roll-back logrotate setup - rm -f /var/log/logrotate-kura.status - rm -f /etc/logrotate-kura.conf - rm -f /etc/cron.d/logrotate-kura - - rm -f /var/log/kura*.log - rm -f /var/log/kura*.gz - rm -rf /tmp/.kura - rm -rf /tmp/kura - - if [ -d "${INSTALL_DIR}/kura" ] ; then - ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -u - PARENT=`readlink -f ${INSTALL_DIR}/kura` - rm -rf ${INSTALL_DIR}/kura - rm -rf $PARENT - fi -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# PRE-REMOVE SCRIPT -############################################## -echo "" -echo "Uninstalling KURA..." - -PIDS=`pgrep java` - -#Kill JVM and monit for installation -if [ -f "/var/run/kura.pid" ] ; then - KURA_PID=`cat /var/run/kura.pid` - - for pid in "${PIDS[@]}" - do - if [ "$KURA_PID" == "$pid" ] ; then - `kill $pid` >> "$LOG" 2>&1 - fi - done -fi - -runPreRemove >> "$LOG" 2>&1 - -mkdir -p /opt/eclipse/kura/log/ -mv "$LOG" /opt/eclipse/kura/log/ - -echo "" -echo "Uninstalling KURA... Done!" -############################################## -# END PRE-REMOVE SCRIPT -############################################## diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/dhcpd-enp2s0.conf b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/dhcpd-enp2s0.conf deleted file mode 100644 index f9a016eb502..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/dhcpd-enp2s0.conf +++ /dev/null @@ -1,15 +0,0 @@ -# enabled? true -# prefix: 24 -# pass DNS? true - -subnet 172.16.0.0 netmask 255.255.255.0 { - option domain-name-servers 172.16.0.1; - - interface enp2s0; - option routers 172.16.0.1; - default-lease-time 7200; - max-lease-time 7200; - pool { - range 172.16.0.100 172.16.0.110; - } -} diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/dhcpd-wlp4s0.conf b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/dhcpd-wlp4s0.conf deleted file mode 100644 index 6380d3120ac..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/dhcpd-wlp4s0.conf +++ /dev/null @@ -1,15 +0,0 @@ -# enabled? true -# prefix: 24 -# pass DNS? true - -subnet 172.16.1.0 netmask 255.255.255.0 { - option domain-name-servers 172.16.1.1; - - interface wlp4s0; - option routers 172.16.1.1; - default-lease-time 7200; - max-lease-time 7200; - pool { - range 172.16.1.100 172.16.1.110; - } -} diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/firewall.init b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/firewall.init deleted file mode 100644 index 6e181d7dc0d..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/firewall.init +++ /dev/null @@ -1,111 +0,0 @@ -#!/bin/bash -# iptables-restore script -iptables_config_file=/etc/sysconfig/iptables -ipforward_file=/proc/sys/net/ipv4/ip_forward -enable_ipforwarding=false; - -create_filter_chains() { - # create custom chains if needed - custom_filter_chains=(input-kura output-kura forward-kura) - for custom_chain in ${custom_filter_chains[@]}; do - chain=(${custom_chain//-/ }) - iptables -C ${chain[0]^^} -j $custom_chain -t filter > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - iptables -N $custom_chain -t filter > /dev/null 2>&1 - iptables -I ${chain[0]^^} -t filter -j $custom_chain > /dev/null 2>&1 - fi - done - custom_filter_chains=(forward-kura-pf forward-kura-ipf) - for custom_chain in ${custom_filter_chains[@]}; do - iptables -C forward-kura -j $custom_chain -t filter > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - iptables -N $custom_chain -t filter > /dev/null 2>&1 - iptables -I forward-kura -t filter -j $custom_chain > /dev/null 2>&1 - fi - done -} - -create_nat_chains() { - custom_nat_chains=(prerouting-kura postrouting-kura input-kura output-kura) - for custom_chain in ${custom_nat_chains[@]}; do - chain=(${custom_chain//-/ }[0]) - iptables -C ${chain[0]^^} -j $custom_chain -t nat > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - iptables -N $custom_chain -t nat > /dev/null 2>&1 - iptables -I ${chain[0]^^} -t nat -j $custom_chain > /dev/null 2>&1 - fi - done - iptables -C prerouting-kura -j prerouting-kura-pf -t nat > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - iptables -N prerouting-kura-pf -t nat > /dev/null 2>&1 - iptables -I prerouting-kura -t nat -j prerouting-kura-pf > /dev/null 2>&1 - fi - custom_nat_chains=(postrouting-kura-pf postrouting-kura-ipf) - for custom_chain in ${custom_nat_chains[@]}; do - iptables -C postrouting-kura -j $custom_chain -t nat > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - iptables -N $custom_chain -t nat > /dev/null 2>&1 - iptables -I postrouting-kura -t nat -j $custom_chain > /dev/null 2>&1 - fi - done -} - -create_mangle_chains() { - custom_mangle_chains=(prerouting-kura postrouting-kura input-kura output-kura forward-kura) - for custom_chain in ${custom_mangle_chains[@]}; do - chain=(${custom_chain//-/ }[0]) - iptables -C ${chain[0]^^} -j $custom_chain -t mangle > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - iptables -N $custom_chain -t mangle > /dev/null 2>&1 - iptables -I ${chain[0]^^} -t mangle -j $custom_chain > /dev/null 2>&1 - fi - done -} - -configure_policies() { - # configure policies for standard chains - policy=$(iptables -nL -t filter | grep policy | grep INPUT) - if [[ "$policy" == *ACCEPT* ]]; then - iptables -P INPUT DROP - fi - policy=$(iptables -nL -t filter | grep policy | grep OUTPUT) - if [[ "$policy" == *DROP* ]]; then - iptables -P OUTPUT ACCEPT - fi - policy=$(iptables -nL -t filter | grep policy | grep FORWARD) - if [[ "$policy" == *ACCEPT* ]]; then - iptables -P FORWARD DROP - fi -} - -configure_ip_forwarding() { - # enable ip forwarding if needed - if [ -f $iptables_config_file ]; then - while IFS='' read -r line || [[ -n "$line" ]]; do - if [[ $line =~ "-A forward-kura" ]]; then - enable_ipforwarding=true - break - fi - done < $iptables_config_file - fi - if [ $enable_ipforwarding = true ]; then - echo "1" > $ipforward_file - else - echo "0" > $ipforward_file - fi -} - -if [ -f $iptables_config_file ]; then - iptables-restore < $iptables_config_file -fi - -create_filter_chains -create_nat_chains -create_mangle_chains -configure_policies -configure_ip_forwarding - -# source a custom firewall script -if [ -f /etc/init.d/firewall_cust ]; then - source /etc/init.d/firewall_cust 2> /dev/null -fi \ No newline at end of file diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/firewall.service b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/firewall.service deleted file mode 100644 index d3dec2c4da1..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/firewall.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Firewall configuration -Before=network-pre.target docker.service -Wants=network-pre.target - -[Service] -Type=oneshot -ExecStart=/bin/sh KURA_DIR/bin/firewall - -[Install] -WantedBy=multi-user.target diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/hostapd.conf b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/hostapd.conf deleted file mode 100644 index 9fd7f221036..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/hostapd.conf +++ /dev/null @@ -1,62 +0,0 @@ -# /etc/hostapd/hostapd.conf - -#example: wlan0 -interface=wlp4s0 -#example: nl80211 -driver=nl80211 - -# SSID to use. This will be the "name" of the accesspoint -#example: catalyst -ssid=kura_gateway - -# basic operational settings -#example: g -hw_mode=g - -wme_enabled=0 -ieee80211n=0 - -#example: 1 -channel=1 - -# Logging and debugging settings: more of this in original config file -logger_syslog=-1 -logger_syslog_level=2 -logger_stdout=-1 -logger_stdout_level=2 -dump_file=/tmp/hostapd.dump - -# WPA settings. We'll use stronger WPA2 -# bit0 = WPA -# bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled) -wpa=2 - -# Preshared key of between 8-63 ASCII characters. -# If you define the key in here, make sure that the file is not readable -# by anyone but root. Alternatively you can use a separate file for the -# key; see original hostapd.conf for more information. -#example TheKeyMyCatalystUSES!1 -wpa_passphrase=testKEYS - -# Key management algorithm. In this case, a simple pre-shared key (PSK) -wpa_key_mgmt=WPA-PSK - -# The cipher suite to use. We want to use stronger CCMP cipher. -wpa_pairwise=CCMP - -# Change the broadcasted/multicasted keys after this many seconds. -wpa_group_rekey=600 - -# Change the master key after this many seconds. Master key is used as a basis -# (source) for the encryption keys. -wpa_gmk_rekey=86400 - -# Send empty SSID in beacons and ignore probe request frames that do not -# specify full SSID, i.e., require stations to know SSID. -# default: disabled (0) -# 1 = send empty (length=0) SSID in beacon and ignore probe request for -# broadcast SSID -# 2 = clear SSID (ASCII 0), but keep the original length (this may be required -# with some clients that do not support empty SSID) and ignore probe -# requests for broadcast SSID -ignore_broadcast_ssid=0 diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/iptables.init b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/iptables.init deleted file mode 100644 index 838750bbccc..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/iptables.init +++ /dev/null @@ -1,95 +0,0 @@ -*nat -:PREROUTING ACCEPT [0:0] -:INPUT ACCEPT [0:0] -:OUTPUT ACCEPT [0:0] -:POSTROUTING ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:postrouting-kura - [0:0] -:postrouting-kura-pf - [0:0] -:postrouting-kura-ipf - [0:0] -:prerouting-kura - [0:0] -:prerouting-kura-pf - [0:0] --I PREROUTING -j prerouting-kura --I prerouting-kura -j prerouting-kura-pf --I INPUT -j input-kura --I OUTPUT -j output-kura --I POSTROUTING -j postrouting-kura --I postrouting-kura -j postrouting-kura-pf --I postrouting-kura -j postrouting-kura-ipf --A prerouting-kura -j RETURN --A input-kura -j RETURN --A output-kura -j RETURN --A postrouting-kura -o enp3s0 -j MASQUERADE --A postrouting-kura -j RETURN --A postrouting-kura-pf -j RETURN --A postrouting-kura-ipf -j RETURN --A prerouting-kura-pf -j RETURN -COMMIT -*filter -:INPUT DROP [0:0] -:FORWARD DROP [0:0] -:OUTPUT ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:forward-kura - [0:0] -:forward-kura-pf - [0:0] -:forward-kura-ipf - [0:0] --I INPUT -j input-kura --I FORWARD -j forward-kura --I OUTPUT -j output-kura --I forward-kura -j forward-kura-pf --I forward-kura -j forward-kura-ipf --A input-kura -i enp3s0 -p tcp -m tcp --dport 8000 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 8000 -j ACCEPT --A input-kura -i enp3s0 -p udp -m udp --dport 67 -j ACCEPT --A input-kura -i enp2s0 -p udp -m udp --dport 67 -j ACCEPT --A input-kura -i wlp4s0 -p udp -m udp --dport 67 -j ACCEPT --A input-kura -i enp3s0 -p udp -m udp --dport 53 -j ACCEPT --A input-kura -i enp2s0 -p udp -m udp --dport 53 -j ACCEPT --A input-kura -i wlp4s0 -p udp -m udp --dport 53 -j ACCEPT --A input-kura -s 127.0.0.1/32 -p tcp -m tcp --dport 5002 -j ACCEPT --A input-kura -i enp3s0 -p tcp -m tcp --dport 1450 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 1450 -j ACCEPT --A input-kura -i enp3s0 -p tcp -m tcp --dport 443 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 443 -j ACCEPT --A input-kura -i enp3s0 -p tcp -m tcp --dport 4443 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 4443 -j ACCEPT --A input-kura -i enp3s0 -p tcp -m tcp --dport 22 -j ACCEPT --A input-kura -i enp2s0 -p tcp -m tcp --dport 22 -j ACCEPT --A input-kura -i enp3s0 -p udp -m udp --dport 5353 -j ACCEPT --A input-kura -i enp2s0 -p udp -m udp --dport 5353 -j ACCEPT --A input-kura -i lo -j ACCEPT --A input-kura -m state --state RELATED,ESTABLISHED -j ACCEPT --A input-kura -p icmp -m icmp --icmp-type 8 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT --A input-kura -j RETURN --A forward-kura -i enp3s0 -o enp2s0 -m state --state RELATED,ESTABLISHED -j ACCEPT --A forward-kura -i enp2s0 -o enp3s0 -j ACCEPT --A forward-kura -j RETURN --A output-kura -p icmp -m icmp --icmp-type 0 -m state --state RELATED,ESTABLISHED -j ACCEPT --A output-kura -j RETURN --A forward-kura-pf -j RETURN --A forward-kura-ipf -j RETURN -COMMIT -*mangle -:PREROUTING ACCEPT [0:0] -:INPUT ACCEPT [0:0] -:OUTPUT ACCEPT [0:0] -:FORWARD ACCEPT [0:0] -:POSTROUTING ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:forward-kura - [0:0] -:postrouting-kura - [0:0] -:prerouting-kura - [0:0] --I PREROUTING -j prerouting-kura --I INPUT -j input-kura --I OUTPUT -j output-kura --I FORWARD -j forward-kura --I POSTROUTING -j postrouting-kura --A prerouting-kura -j RETURN --A input-kura -j RETURN --A output-kura -j RETURN --A forward-kura -j RETURN --A postrouting-kura -j RETURN -COMMIT \ No newline at end of file diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/jdk.dio.properties b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/jdk.dio.properties deleted file mode 100644 index 7637938bc81..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/jdk.dio.properties +++ /dev/null @@ -1,54 +0,0 @@ -# -# Copyright (c) 2011, 2021 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -#The following setup is valid for the factory default device-tree overlay of the BBB -# -#When overriding the default device-tree overlay, this file should be updated accordingly -# -#GPIO numbers are expressed as indicated in the specs: -#GPIO name and number = GPIO controller # x GPIO # -#i.e: GPIO_0_31 --> GPIO_31 -# GPIO_2_2 --> GPIO_66 - -gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3 -uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0 - -#https://wiki.up-community.org/Pinout_UP2 -326 = deviceType: gpio.GPIOPin, pinNumber:326, name:GPIO326 -327 = deviceType: gpio.GPIOPin, pinNumber:327, name:GPIO327 -328 = deviceType: gpio.GPIOPin, pinNumber:328, name:GPIO328 -329 = deviceType: gpio.GPIOPin, pinNumber:329, name:GPIO329 -402 = deviceType: gpio.GPIOPin, pinNumber:402, name:GPIO402 -403 = deviceType: gpio.GPIOPin, pinNumber:403, name:GPIO403 -404 = deviceType: gpio.GPIOPin, pinNumber:404, name:GPIO404 -405 = deviceType: gpio.GPIOPin, pinNumber:405, name:GPIO405 -418 = deviceType: gpio.GPIOPin, pinNumber:418, name:GPIO418 -419 = deviceType: gpio.GPIOPin, pinNumber:419, name:GPIO419 -420 = deviceType: gpio.GPIOPin, pinNumber:420, name:GPIO420 -421 = deviceType: gpio.GPIOPin, pinNumber:421, name:GPIO421 -422 = deviceType: gpio.GPIOPin, pinNumber:422, name:GPIO422 -430 = deviceType: gpio.GPIOPin, pinNumber:430, name:GPIO430 -431 = deviceType: gpio.GPIOPin, pinNumber:431, name:GPIO431 -432 = deviceType: gpio.GPIOPin, pinNumber:432, name:GPIO432 -433 = deviceType: gpio.GPIOPin, pinNumber:433, name:GPIO433 -462 = deviceType: gpio.GPIOPin, pinNumber:462, name:GPIO462 -463 = deviceType: gpio.GPIOPin, pinNumber:463, name:GPIO463 -464 = deviceType: gpio.GPIOPin, pinNumber:464, name:GPIO464 -465 = deviceType: gpio.GPIOPin, pinNumber:465, name:GPIO465 -468 = deviceType: gpio.GPIOPin, pinNumber:468, name:GPIO468 -469 = deviceType: gpio.GPIOPin, pinNumber:469, name:GPIO469 -471 = deviceType: gpio.GPIOPin, pinNumber:471, name:GPIO471 -476 = deviceType: gpio.GPIOPin, pinNumber:476, name:GPIO476 -477 = deviceType: gpio.GPIOPin, pinNumber:477, name:GPIO477 -478 = deviceType: gpio.GPIOPin, pinNumber:478, name:GPIO478 -479 = deviceType: gpio.GPIOPin, pinNumber:479, name:GPIO479 \ No newline at end of file diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura.logrotate b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura.logrotate deleted file mode 100644 index 7290356a767..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura.logrotate +++ /dev/null @@ -1,21 +0,0 @@ -# Logrotate file for Kura. -# Kura generated file. Do not modify or overwrite. - -/var/log/kura*.log -{ - su root syslog - missingok - notifempty - copytruncate - compress - rotate 7 - maxsize 10M - daily - dateext - dateformat -%Y%m%d-%s - create 0600 root root - sharedscripts - postrotate - reload kura >/dev/null 2>&1 || true - endscript -} diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura.properties b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura.properties deleted file mode 100644 index c122ef01f7d..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura.properties +++ /dev/null @@ -1,101 +0,0 @@ -# -# Copyright (c) 2011, 2022 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -## ----------------------------------------------------------------------------- -## Kura Properties -## ----------------------------------------------------------------------------- -kura.name=Eclipse Kura -kura.version= -kura.marketplace.compatibility.version= -kura.company=ECLIPSE -kura.project=intel-up2-ubuntu -kura.platform=intel-up2-ubuntu -kura.device.name=intel-up2 -kura.model.id=intel-up2 -kura.model.name=intel-up2 -kura.partNumber=intel-up2 -kura.serialNumber=intel-up2 -kura.bios.version=N/A -kura.firmware.version=N/A -kura.primary.network.interface=enp2s0 -# kura.mac.address= Fetch from Java -kura.home={kura.install.dir}/{kura.symlink} -kura.framework.config={kura.install.dir}/{kura.symlink}/framework -kura.user.config={kura.install.dir}/{kura.symlink}/user -kura.plugins={kura.install.dir}/{kura.symlink}/plugins -kura.packages={kura.install.dir}/{kura.symlink}/packages -kura.data={kura.install.dir}/{kura.symlink}/data -kura.tmp=/tmp/.kura -kura.snapshots={kura.install.dir}/{kura.symlink}/user/snapshots -kura.style.dir={kura.install.dir}/{kura.symlink}/console/skin -kura.have.net.admin=true -kura.net.virtual.devices.config=unmanaged -kura.log.download.sources=/var/log -kura.log.download.journal.fields=SYSLOG_IDENTIFIER,PRIORITY,MESSAGE,STACKTRACE -# os.arch= Fetch from Java -# os.name= Fetch from Java -# os.version= Fetch from Java -os.distribution=Ubuntu -os.distribution.version=18.04 -# java.version= Fetch from Java -# java.vendor= Fetch from Java -# java.vm.name= Fetch from Java -# java.vm.version= Fetch from Java -# java.home= Fetch from Java -# file.separator= Fetch from Java -kura.command.user=kura -kura.legacy.bluetooth.beacon.scan=false -kura.legacy.ppp.logging.enabled=true - - -## ----------------------------------------------------------------------------- -## Remote Configuration Properties -## ----------------------------------------------------------------------------- -console.device.management.service.ignore=org.eclipse.kura.net.admin.NetworkConfigurationService,org.eclipse.kura.net.admin.FirewallConfigurationService - - -## ----------------------------------------------------------------------------- -## File upload settings -## ----------------------------------------------------------------------------- -# default 10240 -file.upload.in.memory.size.threshold=10240 -# -1: unlimited (default) -file.upload.size.max=-1 -file.command.zip.max.size=100 -file.command.zip.max.number=1024 - - -## ----------------------------------------------------------------------------- -## Deployment Agent settings -## ----------------------------------------------------------------------------- -# see copyURLToFile() http://commons.apache.org/proper/commons-io/javadocs/api-2.4/index.html -dpa.connection.timeout = 60000 -dpa.read.timeout = 60000 - - -## ----------------------------------------------------------------------------- -## Cloud Connection Status settings -## ----------------------------------------------------------------------------- - -#1. Cloud Connection Status on system log -#The Cloud Connection Status will be indicated in the log files, and nowere else -ccs.status.notification.url=ccs:log - -#2. Cloud Connection Status on LED -#The Cloud Connection Status will be indicated by a blinking LED connected to the system GPIOs -#The URL should indicate the GPIO logic index of the GPIO Pin used for the LED -#ccs.status.notification.url=ccs:led:16 - -#3. Cloud Connection Status disabled -#Disables the Cloud Connection Status service -#ccs.status.notification.url=ccs:none diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura_install.sh b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura_install.sh deleted file mode 100644 index 74a87d2e84f..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura_install.sh +++ /dev/null @@ -1,235 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2022, 2024 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -setup_libudev() { - # create soft link for libudev.so.0 to make it retrocompatible - # https://unix.stackexchange.com/questions/156776/arch-ubuntu-so-whats-the-deal-with-libudev-so-0 - if [ ! -f /lib/libudev.so.0 ] && [ -f /lib/libudev.so.1 ]; then - ln -sf /lib/libudev.so.1 /lib/libudev.so.0 - fi - - if [ ! -f /usr/lib/x86_64-linux-gnu/libudev.so.0 ] && [ -f /usr/lib/x86_64-linux-gnu/libudev.so.1 ]; then - ln -sf /usr/lib/x86_64-linux-gnu/libudev.so.1 /usr/lib/x86_64-linux-gnu/libudev.so.0 - fi -} - -INSTALL_DIR=/opt/eclipse - -setup_libudev - -#create known kura install location -ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura - -#set up Kura init -sed "s|INSTALL_DIR|${INSTALL_DIR}|" ${INSTALL_DIR}/kura/install/kura.service > /lib/systemd/system/kura.service -systemctl daemon-reload -systemctl enable kura -chmod +x ${INSTALL_DIR}/kura/bin/*.sh - -# setup snapshot_0 recovery folder -if [ ! -d ${INSTALL_DIR}/kura/.data ]; then - mkdir ${INSTALL_DIR}/kura/.data -fi - -mkdir -p ${INSTALL_DIR}/kura/data - -# setup /etc/sysconfig folder for iptables configuration file -if [ ! -d /etc/sysconfig ]; then - mkdir /etc/sysconfig -fi - -#set up users and grant permissions to them -cp ${INSTALL_DIR}/kura/install/manage_kura_users.sh ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -chmod 700 ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -${INSTALL_DIR}/kura/.data/manage_kura_users.sh -i - -systemctl stop apparmor -systemctl disable apparmor - -#set up default networking file -cp ${INSTALL_DIR}/kura/install/network.interfaces /etc/network/interfaces -cp ${INSTALL_DIR}/kura/install/network.interfaces ${INSTALL_DIR}/kura/.data/interfaces - -#set up network helper scripts -cp ${INSTALL_DIR}/kura/install/ifup-local.raspbian /etc/network/if-up.d/ifup-local -cp ${INSTALL_DIR}/kura/install/ifdown-local /etc/network/if-down.d/ifdown-local -chmod +x /etc/network/if-up.d/ifup-local -chmod +x /etc/network/if-down.d/ifdown-local - -#set up default firewall configuration -cp ${INSTALL_DIR}/kura/install/iptables.init ${INSTALL_DIR}/kura/.data/iptables -chmod 644 ${INSTALL_DIR}/kura/.data/iptables -cp ${INSTALL_DIR}/kura/.data/iptables /etc/sysconfig/iptables -cp ${INSTALL_DIR}/kura/install/firewall.init ${INSTALL_DIR}/kura/bin/firewall -chmod 755 ${INSTALL_DIR}/kura/bin/firewall -cp ${INSTALL_DIR}/kura/install/firewall.service /lib/systemd/system/firewall.service -chmod 644 /lib/systemd/system/firewall.service -sed -i "s|/bin/sh KURA_DIR|/bin/bash ${INSTALL_DIR}/kura|" /lib/systemd/system/firewall.service -systemctl daemon-reload -systemctl enable firewall - -#copy snapshot_0.xml -cp ${INSTALL_DIR}/kura/user/snapshots/snapshot_0.xml ${INSTALL_DIR}/kura/.data/snapshot_0.xml - -#disable NTP service -if command -v timedatectl > /dev/null ; - then - timedatectl set-ntp false -fi - -#disable asking NTP servers to the DHCP server -if [ -f /etc/dhcp/dhclient.conf ]; then - echo "Disabling ntp-servers in /etc/dhcp/dhclient.conf" - sed -i "s/\(, \?ntp-servers\)/; #\1/g" /etc/dhcp/dhclient.conf -fi - -if [ -f /etc/dhclient.conf ]; then - echo "Disabling ntp-servers in /etc/dhclient.conf" - sed -i "s/\(, \?ntp-servers\)/; #\1/g" /etc/dhclient.conf -fi - -# Prevent time sync services from starting -systemctl stop systemd-timesyncd -systemctl disable systemd-timesyncd -# Prevent time sync with chrony from starting. -systemctl stop chrony -systemctl disable chrony - -#set up networking configuration -mac_addr=$(head -1 /sys/class/net/enp2s0/address | tr '[:lower:]' '[:upper:]') - -cp ${INSTALL_DIR}/kura/install/dhcpd-enp2s0.conf /etc/dhcpd-enp2s0.conf -cp ${INSTALL_DIR}/kura/install/dhcpd-enp2s0.conf ${INSTALL_DIR}/kura/.data/dhcpd-enp2s0.conf - -#check if wlp4s0 exists -ethtool wlp4s0 1> /dev/null 2> /dev/null -if [ $? -eq 0 ] ; then - sed "s/^ssid=kura_gateway.*/ssid=kura_gateway_${mac_addr}/" < ${INSTALL_DIR}/kura/install/hostapd.conf > /etc/hostapd-wlp4s0.conf - cp /etc/hostapd-wlp4s0.conf ${INSTALL_DIR}/kura/.data/hostapd-wlp4s0.conf - - cp ${INSTALL_DIR}/kura/install/dhcpd-wlp4s0.conf /etc/dhcpd-wlp4s0.conf - cp ${INSTALL_DIR}/kura/install/dhcpd-wlp4s0.conf ${INSTALL_DIR}/kura/.data/dhcpd-wlp4s0.conf -fi - -#set up bind/named -mkdir -p /var/named -chown -R bind /var/named -cp ${INSTALL_DIR}/kura/install/named.ca /var/named/ -cp ${INSTALL_DIR}/kura/install/named.rfc1912.zones /etc/ -cp ${INSTALL_DIR}/kura/install/usr.sbin.named /etc/apparmor.d/ -if [ ! -f "/etc/bind/rndc.key" ] ; then - rndc-confgen -r /dev/urandom -a -fi -chown bind:bind /etc/bind/rndc.key -chmod 600 /etc/bind/rndc.key - -#set up dhclient hooks -cp ${INSTALL_DIR}/kura/install/kura-dhclient-enter-hook /etc/dhcp/dhclient-enter-hooks.d/zz-kura-dhclient-enter-hook -cp ${INSTALL_DIR}/kura/install/kura-dhclient-enter-route-hook /etc/dhcp/dhclient-enter-hooks.d/yy-kura-dhclient-enter-hook - -#set up logrotate - no need to restart as it is a cronjob -cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf - -if [ ! -f /etc/cron.d/logrotate-kura ]; then - test -d /etc/cron.d || mkdir -p /etc/cron.d - touch /etc/cron.d/logrotate-kura - echo "*/5 * * * * root /usr/sbin/logrotate --state /var/log/logrotate-kura.status /etc/logrotate-kura.conf" >> /etc/cron.d/logrotate-kura -fi - -#set up systemd-tmpfiles -cp ${INSTALL_DIR}/kura/install/kura-tmpfiles.conf /etc/tmpfiles.d/kura.conf - -# disable dhcpcd service - kura is the network manager -systemctl stop dhcpcd -systemctl disable dhcpcd - -# disable isc-dhcp-server service - kura is the network manager -systemctl stop isc-dhcp-server -systemctl disable isc-dhcp-server - -#disable isc-dhcp-server6.service -systemctl stop isc-dhcp-server6.service -systemctl disable isc-dhcp-server6.service - -# disable NetworkManager.service - kura is the network manager -systemctl stop NetworkManager.service -systemctl disable NetworkManager.service - -#disable netplan -systemctl disable systemd-networkd.socket -systemctl disable systemd-networkd -systemctl disable networkd-dispatcher -systemctl disable systemd-networkd-wait-online -systemctl mask systemd-networkd.socket -systemctl mask systemd-networkd -systemctl mask networkd-dispatcher -systemctl mask systemd-networkd-wait-online - -#disable DNS-related services - kura is the network manager -systemctl stop systemd-resolved.service -systemctl disable systemd-resolved.service -systemctl stop resolvconf.service -systemctl disable resolvconf.service - -#disable ModemManager -systemctl stop ModemManager -systemctl disable ModemManager - -#disable systemd-hostnamed -systemctl stop systemd-hostnamed -systemctl disable systemd-hostnamed - -#disable wpa_supplicant -systemctl stop wpa_supplicant -systemctl disable wpa_supplicant - -#assigning possible .conf files ownership to kurad -PATTERN="/etc/dhcpd*.conf* /etc/resolv.conf* /etc/wpa_supplicant*.conf* /etc/hostapd*.conf*" -for FILE in $(ls $PATTERN 2>/dev/null) -do - chown kurad:kurad $FILE -done - -# set up kura files permissions -chmod 700 ${INSTALL_DIR}/kura/bin/*.sh -chown -R kurad:kurad /opt/eclipse -chmod -R go-rwx /opt/eclipse -chmod a+rx /opt/eclipse -find /opt/eclipse/kura -type d -exec chmod u+x "{}" \; - -#enable kurad user to HALT functionality -usermod -a -G gpio kurad -usermod -a -G leds kurad -usermod -a -G spi kurad -usermod -a -G i2c kurad -# kurad is already added in dialout in manage_kura_users.sh -#usermod -a -G dialout kurad - -# execute patch_sysctl.sh from installer install folder -chmod 700 ${INSTALL_DIR}/kura/install/patch_sysctl.sh -${INSTALL_DIR}/kura/install/patch_sysctl.sh ${INSTALL_DIR}/kura/install/sysctl.kura.conf /etc/sysctl.conf - -if ! [ -d /sys/class/net ] -then - sysctl -p || true -else - sysctl -w net.ipv6.conf.all.disable_ipv6=1 - sysctl -w net.ipv6.conf.default.disable_ipv6=1 - for INTERFACE in $(ls /sys/class/net) - do - sysctl -w net.ipv6.conf.${INTERFACE}.disable_ipv6=1 - done -fi - -keytool -genkey -alias localhost -keyalg RSA -keysize 2048 -keystore /opt/eclipse/kura/user/security/httpskeystore.ks -deststoretype pkcs12 -dname "CN=Kura, OU=Kura, O=Eclipse Foundation, L=Ottawa, S=Ontario, C=CA" -ext ku=digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment,keyAgreement,keyCertSign -ext eku=serverAuth,clientAuth,codeSigning,timeStamping -validity 1000 -storepass changeit -keypass changeit diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura_upgrade.sh b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura_upgrade.sh deleted file mode 100644 index e9410c70fcc..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/kura_upgrade.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2011, 2020 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -INSTALL_DIR=/opt/eclipse - -#create known kura install location -ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura - -#set up network helper scripts -cp ${INSTALL_DIR}/kura/install/ifup-local.raspbian /etc/network/if-up.d/ifup-local -cp ${INSTALL_DIR}/kura/install/ifdown-local /etc/network/if-down.d/ifdown-local -chmod +x /etc/network/if-up.d/ifup-local -chmod +x /etc/network/if-down.d/ifdown-local - -#set up logrotate - no need to restart as it is a cronjob -cp ${INSTALL_DIR}/kura/install/logrotate.conf /etc/logrotate.conf -cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate.d/kura diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/log4j.xml b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/log4j.xml deleted file mode 100644 index 65cbedda8b5..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/log4j.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - /var/log - kura - - - - - - - %d{ISO8601} [%t] %-5p %c{1.} - %m%n%throwable{full} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/network.interfaces b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/network.interfaces deleted file mode 100644 index 60eb666b94d..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/network.interfaces +++ /dev/null @@ -1,22 +0,0 @@ -# This file describes the network interfaces available on your system -# and how to activate them. For more information, see interfaces(5). - -source /etc/network/interfaces.d/* - -# The loopback network interface -auto lo -iface lo inet loopback - -# The primary network interface -auto enp2s0 -iface enp2s0 inet static - address 172.16.0.1 - netmask 255.255.255.0 - -auto enp3s0 -iface enp3s0 inet dhcp - -auto wlp4s0 -iface wlp4s0 inet static - address 172.16.1.1 - netmask 255.255.255.0 \ No newline at end of file diff --git a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/snapshot_0.xml b/kura/distrib/src/main/resources/intel-up2-ubuntu-20/snapshot_0.xml deleted file mode 100644 index 87fb6c568f9..00000000000 --- a/kura/distrib/src/main/resources/intel-up2-ubuntu-20/snapshot_0.xml +++ /dev/null @@ -1,524 +0,0 @@ - - - - - - - 22,tcp,,enp2s0,,,,#;22,tcp,,enp3s0,,,,#;443,tcp,,enp2s0,,,,#;443,tcp,,enp3s0,,,,#;4443,tcp,,enp2s0,,,,#;4443,tcp,,enp3s0,,,,#;1450,tcp,,enp2s0,,,,#;1450,tcp,,enp3s0,,,,#;5002,tcp,127.0.0.1/32,,,,,#;53,udp,,enp2s0,,,,#;53,udp,,enp3s0,,,,#;53,udp,,wlp4s0,,,,#;67,udp,,enp2s0,,,,#;67,udp,,enp3s0,,,,#;67,udp,,wlp4s0,,,,#;8000,tcp,,enp2s0,,,,#;8000,tcp,,enp3s0,,,,#;5353,udp,,enp2s0,,,,#;5353,udp,,enp3s0,,,,# - - - - - - - - - - - - - 7200 - - - enp3s0,lo,enp2s0 - - - netIPv4StatusEnabledLAN - - - 172.16.0.1 - - - - - - ETHERNET - - - netIPv4StatusEnabledLAN - - - 172.16.0.1 - - - - - - - - - true - - - true - - - 127.0.0.1 - - - false - - - true - - - 7200 - - - -1 - - - true - - - 24 - - - false - - - - - - 172.16.0.110 - - - true - - - 24 - - - 172.16.0.100 - - - LOOPBACK - - - - - - - - - ETHERNET - - - netIPv4StatusEnabledWAN - - - - - - - false - - - org.eclipse.kura.watchdog.WatchdogService - - - 10000 - - - - - - - true - - - 123 - - - 3600 - - - java-ntp - - - true - - - 10000 - - - 0.pool.ntp.org - - - org.eclipse.kura.clock.ClockService - - - - - - - SA - - - 10 - - - jdbc:h2:mem:kuradb - - - org.eclipse.kura.core.db.H2DbService - - - 900 - - - org.eclipse.kura.db.H2DbService - - - - - - - memory - - - true - - - false - - - 4 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - 20 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - mqtt://broker-url:1883/ - - - 30 - - - account-name - - - $EDC/#account-name/#client-id/MQTT/LWT - - - 0 - - - use-ssl-service-config - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - username - - - - - - - 60 - - - 0 - - - true - - - 9 - - - org.eclipse.kura.data.DataService - - - 10 - - - 10 - - - org.eclipse.kura.data.DataService - - - 900 - - - false - - - SECONDS - - - 1 - - - org.eclipse.kura.db.H2DbService - - - (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport) - - - 60 - - - false - - - 1 - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - true - - - 1000 - - - - - - - 1-3.2 - - - false - - - 0 - - - 1 - - - 115200 - - - org.eclipse.kura.position.PositionService - - - 8 - - - - - - - $EDC - - - Intel UP² - - - device-name - - - kura-protobuf - - - false - - - org.eclipse.kura.cloud.CloudService - - - org.eclipse.kura.cloud.CloudService - - - true - - - false - - - true - - - (kura.service.pid=org.eclipse.kura.data.DataService) - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - - - - - TLSv1.2 - - - true - - - (kura.service.pid=SSLKeystore) - - - org.eclipse.kura.ssl.SslManagerService - - - 100 - - - - - - - 443 - - - 4443 - - - (kura.service.pid=HttpsKeystore) - - - org.eclipse.kura.http.server.manager.HttpService - - - org.eclipse.kura.http.server.manager.HttpService - - - - - - - /opt/eclipse/kura/user/security/httpskeystore.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - HttpsKeystore - - - - - - - /opt/eclipse/kura/user/security/cacerts.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - SSLKeystore - - - - - - - [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.netadmin","credentials":{"kura.password":"3PgDKAMCxgRWBHiT1dEBS97bPqt7xckgdwrADJiDoWg="},"properties":{"kura.need.password.change":"true"}}] - - - [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin","kura.user.netadmin"]},{"name":"kura.permission.kura.device","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.network.admin","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.network.configuration"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}] - - - - - - - 60 - - - - - - false - - - true - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - - - - - - - - /var/log/kura.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7 - - - - - - - /var/log/kura-audit.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-audit-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8 - - - - - - - false - - - false - - - org.eclipse.kura.internal.rest.provider.RestService - - - org.eclipse.kura.internal.rest.provider.RestService - - - - diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/control b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/control deleted file mode 100644 index daf1dd8de49..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/control +++ /dev/null @@ -1,15 +0,0 @@ -Package: kura -Version: [[project.version]] -Section: misc -Priority: low -Depends: dos2unix, unzip, telnet, - bluez-hcidump, chrony, ntpdate, - openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk, - cron -Architecture: all -Maintainer: support@eurotech.com -Description: Kura is an inclusive software framework that puts a layer - between the operating system and the customer application, with industry - standard interfaces that shorten custom development time, simplified coding - and software that can be easily ported from one hardware platform - to another. diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/postinst b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/postinst deleted file mode 100755 index f5afce50484..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/postinst +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -TIMESTAMP=`date +%Y%m%d%H%M%S` -LOG=/tmp/kura_install_${TIMESTAMP}.log -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run postInstall function and start watchdog if needed -function runPostInstall { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - echo "Got watchdog ${WATCHDOG_DEVICE}" >> $LOG 2>&1 - postInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - postInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-install script -function postInstall { - mkdir -p ${INSTALL_DIR} >> ${LOG} 2>&1 - unzip /tmp/kura_*.zip -d ${INSTALL_DIR} >> ${LOG} 2>&1 - - #install KURA files - sh ${INSTALL_DIR}/kura_*/install/kura_install.sh >> ${LOG} 2>&1 - - #clean up - rm -rf ${INSTALL_DIR}/kura/install >> ${LOG} 2>&1 - rm /tmp/kura_*.zip >> ${LOG} 2>&1 - - #move the log file - mkdir -p ${INSTALL_DIR}/kura/log - mv ${LOG} ${INSTALL_DIR}/kura/log/ - - #flush all cached filesystem to disk - sync - - echo "" - echo "Finished. KURA has been installed to ${INSTALL_DIR}/kura and will start automatically after a reboot" -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# POST INSTALL SCRIPT -############################################## -runPostInstall -exit 0 -############################################# -# END POST INSTALL SCRIPT -############################################## - diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/preinst b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/preinst deleted file mode 100755 index d571b95db82..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/preinst +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run preInstall function and start watchdog if needed -function runPreInstall { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - preInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - preInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-install script -function preInstall { - #clean up old installation if present - rm -fr /opt/eclipse/* >> /tmp/kura_install.log 2>&1 - rm -fr ${INSTALL_DIR}/kura* >> /tmp/kura_install.log 2>&1 - rm -fr /tmp/.kura/ >> /tmp/kura_install.log 2>&1 - rm /tmp/coninfo-* >> /tmp/kura_install.log 2>&1 - rm /var/log/kura.log >> /tmp/kura_install.log 2>&1 - rm kura-*.zip >> /tmp/kura_install.log 2>&1 - - echo "" -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# PRE-INSTALL SCRIPT -############################################## -PIDS=`pgrep java` - -echo "" -echo "Installing Kura..." -echo "Installing Kura..." > /tmp/kura_install.log 2>&1 - -#Kill JVM and monit for installation -if [ -f "/var/run/kura.pid" ] ; then - KURA_PID=`cat /var/run/kura.pid` - - for pid in "${PIDS[@]}" - do - if [ "$KURA_PID" == "$pid" ] ; then - `kill $pid` >> /tmp/kura_install.log 2>&1 - fi - done -fi - -runPreInstall -############################################## -# END PRE-INSTALL SCRIPT -############################################## - diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/prerm b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/prerm deleted file mode 100644 index bd4e0a853fd..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/deb/control/prerm +++ /dev/null @@ -1,116 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 -TIMESTAMP=$(date +%Y%m%d%H%M) -LOG=/tmp/kura_uninstall_${TIMESTAMP}.log - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run preRemove function and start watchdog if needed -function runPreRemove { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - preRemove & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - preRemove & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-remove script -function preRemove { - #Remove INIT scripts - if [ -f /etc/init.d/kura ] ; then - rm /etc/init.d/kura - update-rc.d kura remove - fi - if [ -f /lib/systemd/system/kura.service ] ; then - systemctl disable kura - rm /lib/systemd/system/kura.service - fi - - #Roll-back logrotate setup - rm -f /var/log/logrotate-kura.status - rm -f /etc/logrotate-kura.conf - rm -f /etc/cron.d/logrotate-kura - - rm -f /var/log/kura*.log - rm -f /var/log/kura*.gz - rm -rf /tmp/.kura - rm -rf /tmp/kura - - #Delete Eclipse directory if present - if [ -d "${INSTALL_DIR}/kura" ] ; then - PARENT=`readlink -f ${INSTALL_DIR}/kura` - rm -rf ${INSTALL_DIR}/kura - rm -rf $PARENT - fi -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# PRE-REMOVE SCRIPT -############################################## -echo "" -echo "Uninstalling KURA..." - -PIDS=`pgrep java` - -#Kill JVM and monit for installation -if [ -f "/var/run/kura.pid" ] ; then - KURA_PID=`cat /var/run/kura.pid` - - for pid in "${PIDS[@]}" - do - if [ "$KURA_PID" == "$pid" ] ; then - `kill $pid` >> "$LOG" 2>&1 - fi - done -fi - -runPreRemove >> "$LOG" 2>&1 - -mkdir -p /opt/eclipse/kura/log/ -mv "$LOG" /opt/eclipse/kura/log/ - -echo "" -echo "Uninstalling KURA... Done!" -############################################## -# END PRE-REMOVE SCRIPT -############################################## diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/jdk.dio.properties b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/jdk.dio.properties deleted file mode 100644 index e969fd9e3b0..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/jdk.dio.properties +++ /dev/null @@ -1,41 +0,0 @@ -# -# Copyright (c) 2011, 2020 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -# Please refer to https://www.jetsonhacks.com/nvidia-jetson-nano-j41-header-pinout/ -# as reference - -12 = deviceType: gpio.GPIOPin, pinNumber:12, name:GPIO12 -13 = deviceType: gpio.GPIOPin, pinNumber:13, name:GPIO13 -14 = deviceType: gpio.GPIOPin, pinNumber:14, name:GPIO14 -15 = deviceType: gpio.GPIOPin, pinNumber:15, name:GPIO15 -16 = deviceType: gpio.GPIOPin, pinNumber:16, name:GPIO16 -17 = deviceType: gpio.GPIOPin, pinNumber:17, name:GPIO17 -18 = deviceType: gpio.GPIOPin, pinNumber:18, name:GPIO18 -19 = deviceType: gpio.GPIOPin, pinNumber:19, name:GPIO18 -20 = deviceType: gpio.GPIOPin, pinNumber:20, name:GPIO20 -38 = deviceType: gpio.GPIOPin, pinNumber:38, name:GPIO38 -50 = deviceType: gpio.GPIOPin, pinNumber:50, name:GPIO50 -51 = deviceType: gpio.GPIOPin, pinNumber:51, name:GPIO51 -76 = deviceType: gpio.GPIOPin, pinNumber:76, name:GPIO76 -77 = deviceType: gpio.GPIOPin, pinNumber:77, name:GPIO77 -78 = deviceType: gpio.GPIOPin, pinNumber:78, name:GPIO78 -79 = deviceType: gpio.GPIOPin, pinNumber:79, name:GPIO79 -149 = deviceType: gpio.GPIOPin, pinNumber:149, name:GPIO149 -168 = deviceType: gpio.GPIOPin, pinNumber:168, name:GPIO168 -194 = deviceType: gpio.GPIOPin, pinNumber:194, name:GPIO194 -200 = deviceType: gpio.GPIOPin, pinNumber:200, name:GPIO200 -216 = deviceType: gpio.GPIOPin, pinNumber:216, name:GPIO216 -232 = deviceType: gpio.GPIOPin, pinNumber:232, name:GPIO232 - -gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3 -uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0 diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura.logrotate b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura.logrotate deleted file mode 100644 index 7290356a767..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura.logrotate +++ /dev/null @@ -1,21 +0,0 @@ -# Logrotate file for Kura. -# Kura generated file. Do not modify or overwrite. - -/var/log/kura*.log -{ - su root syslog - missingok - notifempty - copytruncate - compress - rotate 7 - maxsize 10M - daily - dateext - dateformat -%Y%m%d-%s - create 0600 root root - sharedscripts - postrotate - reload kura >/dev/null 2>&1 || true - endscript -} diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura.properties b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura.properties deleted file mode 100644 index 261eb64ed67..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura.properties +++ /dev/null @@ -1,102 +0,0 @@ -# -# Copyright (c) 2011, 2022 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# Cavium -# - -## ----------------------------------------------------------------------------- -## Kura Properties -## ----------------------------------------------------------------------------- -kura.name=Eclipse Kura -kura.version= -kura.company=ECLIPSE -kura.project=nvidia-jetson-nano -kura.platform=nvidia-jetson-nano -kura.device.name=nvidia-jetson-nano -kura.model.id=nvidia-jetson-nano -kura.model.name=nvidia-jetson-nano -kura.partNumber=nvidia-jetson-nano -kura.serialNumber=nvidia-jetson-nano -kura.bios.version=N/A -kura.firmware.version=N/A -kura.primary.network.interface=eth0 -# kura.mac.address= Fetch from Java -kura.home={kura.install.dir}/{kura.symlink} -kura.framework.config={kura.install.dir}/{kura.symlink}/framework -kura.user.config={kura.install.dir}/{kura.symlink}/user -kura.plugins={kura.install.dir}/{kura.symlink}/plugins -kura.packages={kura.install.dir}/{kura.symlink}/packages -kura.data={kura.install.dir}/{kura.symlink}/data -kura.tmp=/tmp/.kura -kura.snapshots={kura.install.dir}/{kura.symlink}/user/snapshots -kura.style.dir={kura.install.dir}/{kura.symlink}/console/skin -kura.have.net.admin=false -kura.wifi.top.channel=11 -kura.net.virtual.devices.config=unmanaged -kura.log.download.sources=/var/log -kura.log.download.journal.fields=SYSLOG_IDENTIFIER,PRIORITY,MESSAGE,STACKTRACE -# os.arch= Fetch from Java -# os.name= Fetch from Java -# os.version= Fetch from Java -os.distribution=Linux -os.distribution.version=N/A -# java.version= Fetch from Java -# java.vendor= Fetch from Java -# java.vm.name= Fetch from Java -# java.vm.version= Fetch from Java -# java.home= Fetch from Java -# file.separator= Fetch from Java -kura.command.user=kura -kura.legacy.bluetooth.beacon.scan=false -kura.legacy.ppp.logging.enabled=true - - -## ----------------------------------------------------------------------------- -## Remote Configuration Properties -## ----------------------------------------------------------------------------- -console.device.management.service.ignore=org.eclipse.kura.net.admin.NetworkConfigurationService,org.eclipse.kura.net.admin.FirewallConfigurationService - - -## ----------------------------------------------------------------------------- -## File upload settings -## ----------------------------------------------------------------------------- -# default 10240 -file.upload.in.memory.size.threshold=10240 -# -1: unlimited (default) -file.upload.size.max=-1 -file.command.zip.max.size=100 -file.command.zip.max.number=1024 - - -## ----------------------------------------------------------------------------- -## Deployment Agent settings -## ----------------------------------------------------------------------------- -# see copyURLToFile() http://commons.apache.org/proper/commons-io/javadocs/api-2.4/index.html -dpa.connection.timeout = 60000 -dpa.read.timeout = 60000 - - -## ----------------------------------------------------------------------------- -## Cloud Connection Status settings -## ----------------------------------------------------------------------------- - -#1. Cloud Connection Status on system log -#The Cloud Connection Status will be indicated in the log files, and nowere else -ccs.status.notification.url=ccs:log - -#2. Cloud Connection Status on LED -#The Cloud Connection Status will be indicated by a blinking LED connected to the system GPIOs -#The URL should indicate the GPIO logic index of the GPIO Pin used for the LED -#ccs.status.notification.url=ccs:led:16 - -#3. Cloud Connection Status disabled -#Disables the Cloud Connection Status service -#ccs.status.notification.url=ccs:none diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura_install.sh b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura_install.sh deleted file mode 100755 index 00cb7700bf9..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/kura_install.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2011, 2024 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# Cavium -# - -setup_libudev() { - # create soft link for libudev.so.0 to make it retrocompatible - # https://unix.stackexchange.com/questions/156776/arch-ubuntu-so-whats-the-deal-with-libudev-so-0 - if [ ! -f /lib/libudev.so.0 ] && [ -f /lib/libudev.so.1 ]; then - ln -sf /lib/libudev.so.1 /lib/libudev.so.0 - fi - - if [ ! -f /usr/lib/aarch64-linux-gnu/libudev.so.0 ] && [ -f /usr/lib/aarch64-linux-gnu/libudev.so.1 ]; then - ln -sf /usr/lib/aarch64-linux-gnu/libudev.so.1 /usr/lib/aarch64-linux-gnu/libudev.so.0 - fi -} - -INSTALL_DIR=/opt/eclipse - -setup_libudev - -#create known kura install location -ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura - -#set up Kura init -sed "s|INSTALL_DIR|${INSTALL_DIR}|" ${INSTALL_DIR}/kura/install/kura.service > /lib/systemd/system/kura.service -systemctl daemon-reload -systemctl enable kura -chmod +x ${INSTALL_DIR}/kura/bin/*.sh - -mkdir -p ${INSTALL_DIR}/kura/data - -#set up logrotate - no need to restart as it is a cronjob -cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf - -if [ ! -f /etc/cron.d/logrotate-kura ]; then - test -d /etc/cron.d || mkdir -p /etc/cron.d - touch /etc/cron.d/logrotate-kura - echo "*/5 * * * * root /usr/sbin/logrotate --state /var/log/logrotate-kura.status /etc/logrotate-kura.conf" >> /etc/cron.d/logrotate-kura -fi - -#set up systemd-tmpfiles -cp ${INSTALL_DIR}/kura/install/kura-tmpfiles.conf /etc/tmpfiles.d/kura.conf - -# setup snapshot_0 recovery folder -if [ ! -d ${INSTALL_DIR}/kura/.data ]; then - mkdir ${INSTALL_DIR}/kura/.data -fi - -#set up users and grant permissions to them -cp ${INSTALL_DIR}/kura/install/manage_kura_users.sh ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -chmod 700 ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -${INSTALL_DIR}/kura/.data/manage_kura_users.sh -i -nn - -#copy snapshot_0.xml -cp ${INSTALL_DIR}/kura/user/snapshots/snapshot_0.xml ${INSTALL_DIR}/kura/.data/snapshot_0.xml - -# set up kura files permissions -chmod 700 ${INSTALL_DIR}/kura/bin/*.sh -chown -R kurad:kurad /opt/eclipse -chmod -R go-rwx /opt/eclipse -chmod a+rx /opt/eclipse -find /opt/eclipse/kura -type d -exec chmod u+x "{}" \; - -keytool -genkey -alias localhost -keyalg RSA -keysize 2048 -keystore /opt/eclipse/kura/user/security/httpskeystore.ks -deststoretype pkcs12 -dname "CN=Kura, OU=Kura, O=Eclipse Foundation, L=Ottawa, S=Ontario, C=CA" -ext ku=digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment,keyAgreement,keyCertSign -ext eku=serverAuth,clientAuth,codeSigning,timeStamping -validity 1000 -storepass changeit -keypass changeit diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/log4j.xml b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/log4j.xml deleted file mode 100644 index 1065d805302..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/log4j.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - /var/log - kura - - - - - - - %d{ISO8601} [%t] %-5p %c{1.} - %m%n%throwable{full} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/snapshot_0.xml b/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/snapshot_0.xml deleted file mode 100644 index f407da43cf3..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano-nn/snapshot_0.xml +++ /dev/null @@ -1,417 +0,0 @@ - - - - - - - false - - - org.eclipse.kura.watchdog.WatchdogService - - - 10000 - - - - - - - SA - - - 10 - - - jdbc:h2:mem:kuradb - - - org.eclipse.kura.core.db.H2DbService - - - 900 - - - org.eclipse.kura.db.H2DbService - - - - - - - true - - - 123 - - - 3600 - - - java-ntp - - - true - - - 10000 - - - 0.pool.ntp.org - - - org.eclipse.kura.clock.ClockService - - - - - - - memory - - - true - - - false - - - 4 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - 20 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - mqtt://broker-url:1883/ - - - 30 - - - account-name - - - $EDC/#account-name/#client-id/MQTT/LWT - - - 0 - - - use-ssl-service-config - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - username - - - - - - - 60 - - - 0 - - - true - - - 9 - - - org.eclipse.kura.data.DataService - - - 10 - - - 10 - - - org.eclipse.kura.data.DataService - - - 900 - - - false - - - SECONDS - - - 1 - - - org.eclipse.kura.db.H2DbService - - - (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport) - - - 60 - - - false - - - 1 - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - true - - - 1000 - - - - - - - 1-3.2 - - - false - - - 0 - - - 1 - - - 115200 - - - org.eclipse.kura.position.PositionService - - - 8 - - - - - - - $EDC - - - Nvidia Jetson Nano - - - device-name - - - kura-protobuf - - - false - - - org.eclipse.kura.cloud.CloudService - - - org.eclipse.kura.cloud.CloudService - - - true - - - false - - - true - - - (kura.service.pid=org.eclipse.kura.data.DataService) - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - - - - - TLSv1.2 - - - true - - - (kura.service.pid=SSLKeystore) - - - org.eclipse.kura.ssl.SslManagerService - - - 100 - - - - - - - 443 - - - 4443 - - - (kura.service.pid=HttpsKeystore) - - - org.eclipse.kura.http.server.manager.HttpService - - - org.eclipse.kura.http.server.manager.HttpService - - - - - - - /opt/eclipse/kura/user/security/httpskeystore.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - HttpsKeystore - - - - - - - /opt/eclipse/kura/user/security/cacerts.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - SSLKeystore - - - - - - - [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}}] - - - [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.device"},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}] - - - - - - - 60 - - - - - - false - - - true - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - - - - - - - - /var/log/kura.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7 - - - - - - - /var/log/kura-audit.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-audit-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8 - - - - - - - false - - - false - - - org.eclipse.kura.internal.rest.provider.RestService - - - org.eclipse.kura.internal.rest.provider.RestService - - - - diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/control b/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/control deleted file mode 100644 index f4fde92f16a..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/control +++ /dev/null @@ -1,18 +0,0 @@ -Package: kura -Version: [[project.version]] -Section: misc -Priority: low -Depends: hostapd, isc-dhcp-server, iw, - dos2unix, bind9, unzip, - ethtool, telnet, ifupdown, - net-tools, iptables, chrony, - dmidecode, ntpdate, - openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk, - cron -Architecture: all -Maintainer: support@eurotech.com -Description: Kura is an inclusive software framework that puts a layer - between the operating system and the customer application, with industry - standard interfaces that shorten custom development time, simplified coding - and software that can be easily ported from one hardware platform - to another. diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/postinst b/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/postinst deleted file mode 100755 index f5afce50484..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/postinst +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -TIMESTAMP=`date +%Y%m%d%H%M%S` -LOG=/tmp/kura_install_${TIMESTAMP}.log -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run postInstall function and start watchdog if needed -function runPostInstall { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - echo "Got watchdog ${WATCHDOG_DEVICE}" >> $LOG 2>&1 - postInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - postInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-install script -function postInstall { - mkdir -p ${INSTALL_DIR} >> ${LOG} 2>&1 - unzip /tmp/kura_*.zip -d ${INSTALL_DIR} >> ${LOG} 2>&1 - - #install KURA files - sh ${INSTALL_DIR}/kura_*/install/kura_install.sh >> ${LOG} 2>&1 - - #clean up - rm -rf ${INSTALL_DIR}/kura/install >> ${LOG} 2>&1 - rm /tmp/kura_*.zip >> ${LOG} 2>&1 - - #move the log file - mkdir -p ${INSTALL_DIR}/kura/log - mv ${LOG} ${INSTALL_DIR}/kura/log/ - - #flush all cached filesystem to disk - sync - - echo "" - echo "Finished. KURA has been installed to ${INSTALL_DIR}/kura and will start automatically after a reboot" -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# POST INSTALL SCRIPT -############################################## -runPostInstall -exit 0 -############################################# -# END POST INSTALL SCRIPT -############################################## - diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/preinst b/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/preinst deleted file mode 100755 index b270398de86..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/preinst +++ /dev/null @@ -1,102 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run preInstall function and start watchdog if needed -function runPreInstall { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - preInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - preInstall & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-install script -function preInstall { - #clean up old installation if present - rm -fr /opt/eclipse/kura* >> /tmp/kura_install.log 2>&1 - rm -fr ${INSTALL_DIR}/kura* >> /tmp/kura_install.log 2>&1 - rm -fr /tmp/.kura/ >> /tmp/kura_install.log 2>&1 - rm /etc/init.d/firewall >> /tmp/kura_install.log 2>&1 - rm /etc/dhcpd-*.conf >> /tmp/kura_install.log 2>&1 - rm /etc/wpa_supplicant.conf >> /tmp/kura_install.log 2>&1 - rm /etc/hostapd.conf >> /tmp/kura_install.log 2>&1 - rm /tmp/coninfo-* >> /tmp/kura_install.log 2>&1 - rm /var/log/kura.log >> /tmp/kura_install.log 2>&1 - rm -fr /etc/ppp/chat >> /tmp/kura_install.log 2>&1 - rm -fr /etc/ppp/peers >> /tmp/kura_install.log 2>&1 - rm -fr /etc/ppp/scripts >> /tmp/kura_install.log 2>&1 - rm /etc/ppp/*ap-secrets >> /tmp/kura_install.log 2>&1 - rm -f kura-*.zip >> /tmp/kura_install.log 2>&1 - rm -f kura_*.zip >> /tmp/kura_install.log 2>&1 - - echo "" -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# PRE-INSTALL SCRIPT -############################################## -PIDS=`pgrep java` - -echo "" -echo "Installing Kura..." -echo "Installing Kura..." > /tmp/kura_install.log 2>&1 - -#Kill JVM and monit for installation -if [ -f "/var/run/kura.pid" ] ; then - KURA_PID=`cat /var/run/kura.pid` - - for pid in "${PIDS[@]}" - do - if [ "$KURA_PID" == "$pid" ] ; then - `kill $pid` >> /tmp/kura_install.log 2>&1 - fi - done -fi - -runPreInstall -############################################## -# END PRE-INSTALL SCRIPT -############################################## - diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/prerm b/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/prerm deleted file mode 100644 index 729de7ecf6c..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/deb/control/prerm +++ /dev/null @@ -1,124 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=/opt/eclipse -WD_TMP_FILE=/tmp/watchdog -REFRESH_TIME=5 -TIMEOUT_TIME=300 -TIMESTAMP=$(date +%Y%m%d%H%M) -LOG=/tmp/kura_uninstall_${TIMESTAMP}.log - -############################################## -# UTILITY FUNCTIONS -############################################## -# Run preRemove function and start watchdog if needed -function runPreRemove { - if [ -f "${WD_TMP_FILE}" ]; then - WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}` - preRemove & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - echo w > ${WATCHDOG_DEVICE} - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - stopWatchdog - else - preRemove & - PID=$! - START=$(date +%s) - - while [ -d "/proc/$PID" ]; do - DELTA=$(($(date +%s) - $START)) - if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then - echo "The installation process is not responding. It'll be stopped." - kill -9 $PID >> /dev/null 2>&1 - fi - sleep $REFRESH_TIME - done - fi -} - -# Deactivate watchdog device if possible -function stopWatchdog { - if [ -n "${WATCHDOG_DEVICE}" ]; then - echo V > ${WATCHDOG_DEVICE} - fi -} - -# Pre-remove script -function preRemove { - #Remove INIT scripts - if [ -f /etc/init.d/kura ] ; then - rm /etc/init.d/kura - update-rc.d kura remove - fi - if [ -f /lib/systemd/system/kura.service ] ; then - systemctl disable kura - rm /lib/systemd/system/kura.service - fi - if [ -f /etc/init.d/firewall ] ; then - rm /etc/init.d/firewall - update-rc.d firewall remove - fi - if [ -f /lib/systemd/system/firewall.service ] ; then - systemctl disable firewall - rm /lib/systemd/system/firewall.service - fi - - #Roll-back logrotate setup - rm -f /var/log/logrotate-kura.status - rm -f /etc/logrotate-kura.conf - rm -f /etc/cron.d/logrotate-kura - - rm -f /var/log/kura*.log - rm -f /var/log/kura*.gz - rm -rf /tmp/.kura - rm -rf /tmp/kura - - if [ -d "${INSTALL_DIR}/kura" ] ; then - ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -u - PARENT=`readlink -f ${INSTALL_DIR}/kura` - rm -rf ${INSTALL_DIR}/kura - rm -rf $PARENT - fi -} -############################################## -# END UTILITY FUNCTIONS -############################################## - -############################################## -# PRE-REMOVE SCRIPT -############################################## -echo "" -echo "Uninstalling KURA..." - -PIDS=`pgrep java` - -#Kill JVM and monit for installation -if [ -f "/var/run/kura.pid" ] ; then - KURA_PID=`cat /var/run/kura.pid` - - for pid in "${PIDS[@]}" - do - if [ "$KURA_PID" == "$pid" ] ; then - `kill $pid` >> "$LOG" 2>&1 - fi - done -fi - -runPreRemove >> "$LOG" 2>&1 - -mkdir -p /opt/eclipse/kura/log/ -mv "$LOG" /opt/eclipse/kura/log/ - -echo "" -echo "Uninstalling KURA... Done!" -############################################## -# END PRE-REMOVE SCRIPT -############################################## diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/dhcpd-eth0.conf b/kura/distrib/src/main/resources/nvidia-jetson-nano/dhcpd-eth0.conf deleted file mode 100644 index 3af2e593189..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/dhcpd-eth0.conf +++ /dev/null @@ -1,15 +0,0 @@ -# enabled? true -# prefix: 24 -# pass DNS? true - -subnet 172.16.0.0 netmask 255.255.255.0 { - option domain-name-servers 172.16.0.1; - - interface eth0; - option routers 172.16.0.1; - default-lease-time 7200; - max-lease-time 7200; - pool { - range 172.16.0.100 172.16.0.110; - } -} diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/firewall.init b/kura/distrib/src/main/resources/nvidia-jetson-nano/firewall.init deleted file mode 100644 index c8d4da81910..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/firewall.init +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/bash -# iptables-restore script -iptables_config_file=/etc/sysconfig/iptables -ipforward_file=/proc/sys/net/ipv4/ip_forward -enable_ipforwarding=false; - -if [ -f $iptables_config_file ]; then - iptables-restore < $iptables_config_file -fi - -# create custom chains if needed -custom_filter_chains=(input-kura output-kura forward-kura forward-kura-pf forward-kura-ipf) -for custom_chain in ${custom_filter_chains[@]}; do - chain=(${custom_chain//-/ }) - iptables -C ${chain[0]^^} -j $custom_chain -t filter > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - iptables -N $custom_chain -t filter > /dev/null 2>&1 - iptables -I ${chain[0]^^} -t filter -j $custom_chain > /dev/null 2>&1 - fi -done -custom_nat_chains=(prerouting-kura prerouting-kura-pf postrouting-kura postrouting-kura-pf postrouting-kura-ipf input-kura output-kura) -for custom_chain in ${custom_nat_chains[@]}; do - chain=(${custom_chain//-/ }[0]) - iptables -C ${chain[0]^^} -j $custom_chain -t nat > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - iptables -N $custom_chain -t nat > /dev/null 2>&1 - iptables -I ${chain[0]^^} -t nat -j $custom_chain > /dev/null 2>&1 - fi -done -custom_mangle_chains=(prerouting-kura postrouting-kura input-kura output-kura forward-kura) -for custom_chain in ${custom_mangle_chains[@]}; do - chain=(${custom_chain//-/ }[0]) - iptables -C ${chain[0]^^} -j $custom_chain -t mangle > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - iptables -N $custom_chain -t mangle > /dev/null 2>&1 - iptables -I ${chain[0]^^} -t mangle -j $custom_chain > /dev/null 2>&1 - fi -done - -# configure policies for standard chains -policy=$(iptables -nL -t filter | grep policy | grep INPUT) -if [[ "$policy" == *ACCEPT* ]]; then - iptables -P INPUT DROP -fi -policy=$(iptables -nL -t filter | grep policy | grep OUTPUT) -if [[ "$policy" == *DROP* ]]; then - iptables -P OUTPUT ACCEPT -fi -policy=$(iptables -nL -t filter | grep policy | grep FORWARD) -if [[ "$policy" == *ACCEPT* ]]; then - iptables -P FORWARD DROP -fi - -# enable ip forwarding if needed -if [ -f $iptables_config_file ]; then - while IFS='' read -r line || [[ -n "$line" ]]; do - if [[ $line =~ "-A forward-kura" ]]; then - enable_ipforwarding=true - break - fi - done < $iptables_config_file -fi -if [ $enable_ipforwarding = true ]; then - echo "1" > $ipforward_file -else - echo "0" > $ipforward_file -fi - -# source a custom firewall script -if [ -f /etc/init.d/firewall_cust ]; then - source /etc/init.d/firewall_cust 2> /dev/null -fi \ No newline at end of file diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/firewall.service b/kura/distrib/src/main/resources/nvidia-jetson-nano/firewall.service deleted file mode 100644 index d3dec2c4da1..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/firewall.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Firewall configuration -Before=network-pre.target docker.service -Wants=network-pre.target - -[Service] -Type=oneshot -ExecStart=/bin/sh KURA_DIR/bin/firewall - -[Install] -WantedBy=multi-user.target diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/iptables.init b/kura/distrib/src/main/resources/nvidia-jetson-nano/iptables.init deleted file mode 100644 index 5f33b8fd340..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/iptables.init +++ /dev/null @@ -1,83 +0,0 @@ -*nat -:PREROUTING ACCEPT [0:0] -:INPUT ACCEPT [0:0] -:OUTPUT ACCEPT [0:0] -:POSTROUTING ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:postrouting-kura - [0:0] -:postrouting-kura-pf - [0:0] -:postrouting-kura-ipf - [0:0] -:prerouting-kura - [0:0] -:prerouting-kura-pf - [0:0] --I PREROUTING -j prerouting-kura --I prerouting-kura -j prerouting-kura-pf --I INPUT -j input-kura --I OUTPUT -j output-kura --I POSTROUTING -j postrouting-kura --I postrouting-kura -j postrouting-kura-pf --I postrouting-kura -j postrouting-kura-ipf --A prerouting-kura -j RETURN --A input-kura -j RETURN --A output-kura -j RETURN --A postrouting-kura -o eth0 -j MASQUERADE --A postrouting-kura -j RETURN --A postrouting-kura-pf -j RETURN --A postrouting-kura-ipf -j RETURN --A prerouting-kura-pf -j RETURN -COMMIT -*filter -:INPUT DROP [0:0] -:FORWARD DROP [0:0] -:OUTPUT ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:forward-kura - [0:0] -:forward-kura-pf - [0:0] -:forward-kura-ipf - [0:0] --I INPUT -j input-kura --I FORWARD -j forward-kura --I OUTPUT -j output-kura --I forward-kura -j forward-kura-pf --I forward-kura -j forward-kura-ipf --A input-kura -i eth0 -p tcp -m tcp --dport 8000 -j ACCEPT --A input-kura -i eth0 -p udp -m udp --dport 67 -j ACCEPT --A input-kura -i eth0 -p udp -m udp --dport 53 -j ACCEPT --A input-kura -s 127.0.0.1/32 -p tcp -m tcp --dport 5002 -j ACCEPT --A input-kura -i eth0 -p tcp -m tcp --dport 1450 -j ACCEPT --A input-kura -i eth0 -p tcp -m tcp --dport 443 -j ACCEPT --A input-kura -i eth0 -p tcp -m tcp --dport 4443 -j ACCEPT --A input-kura -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT --A input-kura -i lo -p tcp -m tcp --dport 2947 -j ACCEPT --A input-kura -i lo -j ACCEPT --A input-kura -m state --state RELATED,ESTABLISHED -j ACCEPT --A input-kura -p icmp -m icmp --icmp-type 8 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT --A input-kura -j RETURN --A forward-kura -j RETURN --A output-kura -p icmp -m icmp --icmp-type 0 -m state --state RELATED,ESTABLISHED -j ACCEPT --A output-kura -j RETURN --A forward-kura-pf -j RETURN --A forward-kura-ipf -j RETURN -COMMIT -*mangle -:PREROUTING ACCEPT [0:0] -:INPUT ACCEPT [0:0] -:OUTPUT ACCEPT [0:0] -:FORWARD ACCEPT [0:0] -:POSTROUTING ACCEPT [0:0] -:input-kura - [0:0] -:output-kura - [0:0] -:forward-kura - [0:0] -:postrouting-kura - [0:0] -:prerouting-kura - [0:0] --I PREROUTING -j prerouting-kura --I INPUT -j input-kura --I OUTPUT -j output-kura --I FORWARD -j forward-kura --I POSTROUTING -j postrouting-kura --A prerouting-kura -j RETURN --A input-kura -j RETURN --A output-kura -j RETURN --A forward-kura -j RETURN --A postrouting-kura -j RETURN -COMMIT diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/jdk.dio.properties b/kura/distrib/src/main/resources/nvidia-jetson-nano/jdk.dio.properties deleted file mode 100644 index e969fd9e3b0..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/jdk.dio.properties +++ /dev/null @@ -1,41 +0,0 @@ -# -# Copyright (c) 2011, 2020 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -# Please refer to https://www.jetsonhacks.com/nvidia-jetson-nano-j41-header-pinout/ -# as reference - -12 = deviceType: gpio.GPIOPin, pinNumber:12, name:GPIO12 -13 = deviceType: gpio.GPIOPin, pinNumber:13, name:GPIO13 -14 = deviceType: gpio.GPIOPin, pinNumber:14, name:GPIO14 -15 = deviceType: gpio.GPIOPin, pinNumber:15, name:GPIO15 -16 = deviceType: gpio.GPIOPin, pinNumber:16, name:GPIO16 -17 = deviceType: gpio.GPIOPin, pinNumber:17, name:GPIO17 -18 = deviceType: gpio.GPIOPin, pinNumber:18, name:GPIO18 -19 = deviceType: gpio.GPIOPin, pinNumber:19, name:GPIO18 -20 = deviceType: gpio.GPIOPin, pinNumber:20, name:GPIO20 -38 = deviceType: gpio.GPIOPin, pinNumber:38, name:GPIO38 -50 = deviceType: gpio.GPIOPin, pinNumber:50, name:GPIO50 -51 = deviceType: gpio.GPIOPin, pinNumber:51, name:GPIO51 -76 = deviceType: gpio.GPIOPin, pinNumber:76, name:GPIO76 -77 = deviceType: gpio.GPIOPin, pinNumber:77, name:GPIO77 -78 = deviceType: gpio.GPIOPin, pinNumber:78, name:GPIO78 -79 = deviceType: gpio.GPIOPin, pinNumber:79, name:GPIO79 -149 = deviceType: gpio.GPIOPin, pinNumber:149, name:GPIO149 -168 = deviceType: gpio.GPIOPin, pinNumber:168, name:GPIO168 -194 = deviceType: gpio.GPIOPin, pinNumber:194, name:GPIO194 -200 = deviceType: gpio.GPIOPin, pinNumber:200, name:GPIO200 -216 = deviceType: gpio.GPIOPin, pinNumber:216, name:GPIO216 -232 = deviceType: gpio.GPIOPin, pinNumber:232, name:GPIO232 - -gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3 -uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0 diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/kura.logrotate b/kura/distrib/src/main/resources/nvidia-jetson-nano/kura.logrotate deleted file mode 100644 index 7290356a767..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/kura.logrotate +++ /dev/null @@ -1,21 +0,0 @@ -# Logrotate file for Kura. -# Kura generated file. Do not modify or overwrite. - -/var/log/kura*.log -{ - su root syslog - missingok - notifempty - copytruncate - compress - rotate 7 - maxsize 10M - daily - dateext - dateformat -%Y%m%d-%s - create 0600 root root - sharedscripts - postrotate - reload kura >/dev/null 2>&1 || true - endscript -} diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/kura.properties b/kura/distrib/src/main/resources/nvidia-jetson-nano/kura.properties deleted file mode 100644 index 7f3ed715ab5..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/kura.properties +++ /dev/null @@ -1,101 +0,0 @@ -# -# Copyright (c) 2011, 2022 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -## ----------------------------------------------------------------------------- -## Kura Properties -## ----------------------------------------------------------------------------- -kura.name=Eclipse Kura -kura.version= -kura.marketplace.compatibility.version= -kura.company=EUROTECH -kura.project=nvidia-jetson-nano -kura.platform=nvidia-jetson-nano -kura.device.name=nvidia-jetson-nano -kura.model.id=nvidia-jetson-nano -kura.model.name=nvidia-jetson-nano -kura.partNumber=nvidia-jetson-nano -# kura.serialNumber=nvidia-jetson-nano -kura.serialNumber.provider=cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2 -kura.bios.version=N/A -kura.firmware.version=N/A -kura.primary.network.interface=eth0 -# kura.mac.address= Fetch from Java -kura.home={kura.install.dir}/{kura.symlink} -kura.framework.config={kura.install.dir}/{kura.symlink}/framework -kura.user.config={kura.install.dir}/{kura.symlink}/user -kura.plugins={kura.install.dir}/{kura.symlink}/plugins -kura.packages={kura.install.dir}/{kura.symlink}/packages -kura.data={kura.install.dir}/{kura.symlink}/data -kura.tmp=/tmp/.kura -kura.snapshots={kura.install.dir}/{kura.symlink}/user/snapshots -kura.style.dir={kura.install.dir}/{kura.symlink}/console/skin -#kura.have.net.admin=true -kura.wifi.top.channel=11 -kura.net.virtual.devices.config=unmanaged -kura.log.download.sources=/var/log -kura.log.download.journal.fields=SYSLOG_IDENTIFIER,PRIORITY,MESSAGE,STACKTRACE -# os.arch= Fetch from Java -# os.name= Fetch from Java -# os.version= Fetch from Java -os.distribution=Linux -os.distribution.version=N/A -# java.version= Fetch from Java -# java.vendor= Fetch from Java -# java.vm.name= Fetch from Java -# java.vm.version= Fetch from Java -# java.home= Fetch from Java -# file.separator= Fetch from Java -kura.command.user=kura -kura.legacy.bluetooth.beacon.scan=false -kura.legacy.ppp.logging.enabled=true - - -## ----------------------------------------------------------------------------- -## Remote Configuration Properties -## ----------------------------------------------------------------------------- -console.device.management.service.ignore=org.eclipse.kura.net.admin.NetworkConfigurationService,org.eclipse.kura.net.admin.FirewallConfigurationService - -## ----------------------------------------------------------------------------- -## File upload settings -## ----------------------------------------------------------------------------- -# default 10240 -file.upload.in.memory.size.threshold=10240 -# -1: unlimited (default) -file.upload.size.max=-1 -file.command.zip.max.size=100 -file.command.zip.max.number=1024 - - -## ----------------------------------------------------------------------------- -## Deployment Agent settings -## ----------------------------------------------------------------------------- -# see copyURLToFile() http://commons.apache.org/proper/commons-io/javadocs/api-2.4/index.html -dpa.connection.timeout = 60000 -dpa.read.timeout = 60000 - -## ----------------------------------------------------------------------------- -## Cloud Connection Status settings -## ----------------------------------------------------------------------------- - -#1. Cloud Connection Status on system log -#The Cloud Connection Status will be indicated in the log files, and nowere else -ccs.status.notification.url=ccs:log - -#2. Cloud Connection Status on LED -#The Cloud Connection Status will be indicated by a blinking LED connected to the system GPIOs -#The URL should indicate the GPIO logic index of the GPIO Pin used for the LED -#ccs.status.notification.url=ccs:led:16 - -#3. Cloud Connection Status disabled -#Disables the Cloud Connection Status service -#ccs.status.notification.url=ccs:none diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/kura_install.sh b/kura/distrib/src/main/resources/nvidia-jetson-nano/kura_install.sh deleted file mode 100755 index c42ebcfc7ff..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/kura_install.sh +++ /dev/null @@ -1,233 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2022, 2024 Eurotech and/or its affiliates and others -# -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Eurotech -# - -setup_libudev() { - # create soft link for libudev.so.0 to make it retrocompatible - # https://unix.stackexchange.com/questions/156776/arch-ubuntu-so-whats-the-deal-with-libudev-so-0 - if [ ! -f /lib/libudev.so.0 ] && [ -f /lib/libudev.so.1 ]; then - ln -sf /lib/libudev.so.1 /lib/libudev.so.0 - fi - - if [ ! -f /usr/lib/aarch64-linux-gnu/libudev.so.0 ] && [ -f /usr/lib/aarch64-linux-gnu/libudev.so.1 ]; then - ln -sf /usr/lib/aarch64-linux-gnu/libudev.so.1 /usr/lib/aarch64-linux-gnu/libudev.so.0 - fi -} - -INSTALL_DIR=/opt/eclipse - -setup_libudev - -#create known kura install location -ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura - -#set up Kura init -sed "s|INSTALL_DIR|${INSTALL_DIR}|" ${INSTALL_DIR}/kura/install/kura.service > /lib/systemd/system/kura.service -systemctl daemon-reload -systemctl enable kura -chmod +x ${INSTALL_DIR}/kura/bin/*.sh - -# setup snapshot_0 recovery folder -if [ ! -d ${INSTALL_DIR}/kura/.data ]; then - mkdir ${INSTALL_DIR}/kura/.data -fi - -mkdir -p ${INSTALL_DIR}/kura/data - -# setup /etc/sysconfig folder for iptables configuration file -if [ ! -d /etc/sysconfig ]; then - mkdir /etc/sysconfig -fi - -#set up users and grant permissions to them -cp ${INSTALL_DIR}/kura/install/manage_kura_users.sh ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -chmod 700 ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -${INSTALL_DIR}/kura/.data/manage_kura_users.sh -i - -systemctl stop apparmor -systemctl disable apparmor - -#set up default networking file -cp ${INSTALL_DIR}/kura/install/network.interfaces /etc/network/interfaces -cp ${INSTALL_DIR}/kura/install/network.interfaces ${INSTALL_DIR}/kura/.data/interfaces - -#set up network helper scripts -cp ${INSTALL_DIR}/kura/install/ifup-local.raspbian /etc/network/if-up.d/ifup-local -cp ${INSTALL_DIR}/kura/install/ifdown-local /etc/network/if-down.d/ifdown-local -chmod +x /etc/network/if-up.d/ifup-local -chmod +x /etc/network/if-down.d/ifdown-local - -#set up default firewall configuration -cp ${INSTALL_DIR}/kura/install/iptables.init ${INSTALL_DIR}/kura/.data/iptables -chmod 644 ${INSTALL_DIR}/kura/.data/iptables -cp ${INSTALL_DIR}/kura/.data/iptables /etc/sysconfig/iptables -cp ${INSTALL_DIR}/kura/install/firewall.init ${INSTALL_DIR}/kura/bin/firewall -chmod 755 ${INSTALL_DIR}/kura/bin/firewall -cp ${INSTALL_DIR}/kura/install/firewall.service /lib/systemd/system/firewall.service -chmod 644 /lib/systemd/system/firewall.service -sed -i "s|/bin/sh KURA_DIR|/bin/bash ${INSTALL_DIR}/kura|" /lib/systemd/system/firewall.service -systemctl daemon-reload -systemctl enable firewall - -#copy snapshot_0.xml -cp ${INSTALL_DIR}/kura/user/snapshots/snapshot_0.xml ${INSTALL_DIR}/kura/.data/snapshot_0.xml - -#force gpsd.socket to use only ipv4 -sed -i "s/\(ListenStream=\[::1\]\)/# \1/g" /lib/systemd/system/gpsd.socket - -#disable NTP service -if command -v timedatectl > /dev/null ; then - timedatectl set-ntp false -fi - -#disable time synch at network start -if [ -f "/etc/network/if-up.d/ntpdate" ] ; then - chmod -x /etc/network/if-up.d/ntpdate -fi - -#disable FAN protocol handling script to avoid -#permissions issues -if [ -f "/etc/network/if-up.d/ubuntu-fan" ] ; then - chmod -x /etc/network/if-up.d/ubuntu-fan -fi - -#disable asking NTP servers to the DHCP server -if [ -f /etc/dhcp/dhclient.conf ]; then - echo "Disabling ntp-servers in /etc/dhcp/dhclient.conf" - sed -i "s/\(, \?ntp-servers\)/; #\1/g" /etc/dhcp/dhclient.conf -fi - -if [ -f /etc/dhclient.conf ]; then - echo "Disabling ntp-servers in /etc/dhclient.conf" - sed -i "s/\(, \?ntp-servers\)/; #\1/g" /etc/dhclient.conf -fi - -#prevent time sync services from starting -systemctl stop systemd-timesyncd -systemctl disable systemd-timesyncd -# Prevent time sync with chrony from starting. -systemctl stop chrony -systemctl disable chrony - -#set up networking configuration -cp ${INSTALL_DIR}/kura/install/dhcpd-eth0.conf /etc/dhcpd-eth0.conf -cp ${INSTALL_DIR}/kura/install/dhcpd-eth0.conf ${INSTALL_DIR}/kura/.data/dhcpd-eth0.conf - -#set up bind/named -mkdir -p /var/named -chown -R bind /var/named -cp ${INSTALL_DIR}/kura/install/named.ca /var/named/ -cp ${INSTALL_DIR}/kura/install/named.rfc1912.zones /etc/ -cp ${INSTALL_DIR}/kura/install/usr.sbin.named /etc/apparmor.d/ -if [ ! -f "/etc/bind/rndc.key" ] ; then - rndc-confgen -r /dev/urandom -a -fi -chown bind:bind /etc/bind/rndc.key -chmod 600 /etc/bind/rndc.key - -#set up dhclient hooks -cp ${INSTALL_DIR}/kura/install/kura-dhclient-enter-hook /etc/dhcp/dhclient-enter-hooks.d/zz-kura-dhclient-enter-hook -cp ${INSTALL_DIR}/kura/install/kura-dhclient-enter-route-hook /etc/dhcp/dhclient-enter-hooks.d/yy-kura-dhclient-enter-hook - -#set up logrotate - no need to restart as it is a cronjob -cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf - -if [ ! -f /etc/cron.d/logrotate-kura ]; then - test -d /etc/cron.d || mkdir -p /etc/cron.d - touch /etc/cron.d/logrotate-kura - echo "*/5 * * * * root /usr/sbin/logrotate --state /var/log/logrotate-kura.status /etc/logrotate-kura.conf" >> /etc/cron.d/logrotate-kura -fi - -#set up systemd-tmpfiles -cp ${INSTALL_DIR}/kura/install/kura-tmpfiles.conf /etc/tmpfiles.d/kura.conf - -# disable dhcpcd service - kura is the network manager -systemctl stop dhcpcd -systemctl disable dhcpcd - -# disable isc-dhcp-server service - kura is the network manager -systemctl stop isc-dhcp-server -systemctl disable isc-dhcp-server - -#disable isc-dhcp-server6.service -systemctl stop isc-dhcp-server6.service -systemctl disable isc-dhcp-server6.service - -# disable NetworkManager.service - kura is the network manager -systemctl stop NetworkManager.service -systemctl disable NetworkManager.service - -#disable netplan - kura is the network manager -systemctl disable systemd-networkd.socket -systemctl disable systemd-networkd -systemctl disable networkd-dispatcher -systemctl disable systemd-networkd-wait-online -systemctl mask systemd-networkd.socket -systemctl mask systemd-networkd -systemctl mask networkd-dispatcher -systemctl mask systemd-networkd-wait-online - -#disable DNS-related services - kura is the network manager -systemctl stop systemd-resolved.service -systemctl disable systemd-resolved.service -systemctl stop resolvconf.service -systemctl disable resolvconf.service - -#disable ModemManager -systemctl stop ModemManager -systemctl disable ModemManager - -#disable systemd-hostnamed -systemctl stop systemd-hostnamed -systemctl disable systemd-hostnamed - -#disable wpa_supplicant -systemctl stop wpa_supplicant -systemctl disable wpa_supplicant - -#create lease database file if missing -if [ ! -f "/var/lib/dhcp/dhcpd.leases" ] ; then - touch /var/lib/dhcp/dhcpd.leases -fi - -#assigning possible .conf files ownership to kurad -PATTERN="/etc/dhcpd*.conf* /etc/resolv.conf*" -for FILE in $(ls $PATTERN 2>/dev/null) -do - chown kurad:kurad $FILE -done - -# set up kura files permissions -chmod 700 ${INSTALL_DIR}/kura/bin/*.sh -chown -R kurad:kurad /opt/eclipse -chmod -R go-rwx /opt/eclipse -chmod a+rx /opt/eclipse -find /opt/eclipse/kura -type d -exec chmod u+x "{}" \; - -# execute patch_sysctl.sh from installer install folder -chmod 700 ${INSTALL_DIR}/kura/install/patch_sysctl.sh -${INSTALL_DIR}/kura/install/patch_sysctl.sh ${INSTALL_DIR}/kura/install/sysctl.kura.conf /etc/sysctl.conf - -if ! [ -d /sys/class/net ] -then - sysctl -p || true -else - sysctl -w net.ipv6.conf.all.disable_ipv6=1 - sysctl -w net.ipv6.conf.default.disable_ipv6=1 - for INTERFACE in $(ls /sys/class/net) - do - sysctl -w net.ipv6.conf.${INTERFACE}.disable_ipv6=1 - done -fi - -keytool -genkey -alias localhost -keyalg RSA -keysize 2048 -keystore /opt/eclipse/kura/user/security/httpskeystore.ks -deststoretype pkcs12 -dname "CN=Kura, OU=Kura, O=Eclipse Foundation, L=Ottawa, S=Ontario, C=CA" -ext ku=digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment,keyAgreement,keyCertSign -ext eku=serverAuth,clientAuth,codeSigning,timeStamping -validity 1000 -storepass changeit -keypass changeit diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/log4j.xml b/kura/distrib/src/main/resources/nvidia-jetson-nano/log4j.xml deleted file mode 100644 index 301f7858636..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/log4j.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - /var/log - kura - - - - - - %d{ISO8601} [%t] %-5p %c{1.} - %m%n%throwable{full} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/network.interfaces b/kura/distrib/src/main/resources/nvidia-jetson-nano/network.interfaces deleted file mode 100644 index 3dfc6a1f9d4..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/network.interfaces +++ /dev/null @@ -1,10 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Wired or wireless interfaces -auto eth0 -iface eth0 inet dhcp - diff --git a/kura/distrib/src/main/resources/nvidia-jetson-nano/snapshot_0.xml b/kura/distrib/src/main/resources/nvidia-jetson-nano/snapshot_0.xml deleted file mode 100644 index 25bbc2f9578..00000000000 --- a/kura/distrib/src/main/resources/nvidia-jetson-nano/snapshot_0.xml +++ /dev/null @@ -1,491 +0,0 @@ - - - - - - - 22,tcp,,eth0,,,,#;443,tcp,,eth0,,,,#;4443,tcp,,eth0,,,,#;1450,tcp,,eth0,,,,#;5002,tcp,127.0.0.1/32,,,,,#;53,udp,,eth0,,,,#;67,udp,,eth0,,,,#;8000,tcp,,eth0,,,,#;2947,tcp,,lo,,,,# - - - - - - - - - - - - - - - - false - - - ETHERNET - - - LOOPBACK - - - 8 - - - netIPv4StatusEnabledWAN - - - 24 - - - lo,eth0 - - - 7200 - - - 172.16.0.100 - - - false - - - 7200 - - - 127.0.0.1 - - - true - - - 172.16.0.110 - - - false - - - - - - netIPv4StatusEnabledLAN - - - - - - - - - - false - - - org.eclipse.kura.watchdog.WatchdogService - - - 10000 - - - - - - - true - - - 123 - - - 3600 - - - java-ntp - - - true - - - 10000 - - - 0.pool.ntp.org - - - org.eclipse.kura.clock.ClockService - - - - - - - SA - - - 10 - - - jdbc:h2:mem:kuradb - - - org.eclipse.kura.core.db.H2DbService - - - 900 - - - org.eclipse.kura.db.H2DbService - - - - - - - memory - - - true - - - false - - - 4 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - 20 - - - org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport - - - mqtt://broker-url:1883/ - - - 30 - - - account-name - - - $EDC/#account-name/#client-id/MQTT/LWT - - - 0 - - - use-ssl-service-config - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - username - - - - - - - 60 - - - 0 - - - true - - - 9 - - - org.eclipse.kura.data.DataService - - - 10 - - - 10 - - - org.eclipse.kura.data.DataService - - - 900 - - - false - - - SECONDS - - - 1 - - - org.eclipse.kura.db.H2DbService - - - (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport) - - - 60 - - - false - - - 1 - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - true - - - 1000 - - - - - - - 1-3.2 - - - false - - - 0 - - - 1 - - - 115200 - - - org.eclipse.kura.position.PositionService - - - 8 - - - - - - - $EDC - - - Nvidia Jetson Nano - - - device-name - - - kura-protobuf - - - false - - - org.eclipse.kura.cloud.CloudService - - - org.eclipse.kura.cloud.CloudService - - - true - - - false - - - true - - - (kura.service.pid=org.eclipse.kura.data.DataService) - - - org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory - - - - - - - TLSv1.2 - - - true - - - (kura.service.pid=SSLKeystore) - - - org.eclipse.kura.ssl.SslManagerService - - - 100 - - - - - - - 443 - - - 4443 - - - (kura.service.pid=HttpsKeystore) - - - org.eclipse.kura.http.server.manager.HttpService - - - org.eclipse.kura.http.server.manager.HttpService - - - - - - - [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.netadmin","credentials":{"kura.password":"3PgDKAMCxgRWBHiT1dEBS97bPqt7xckgdwrADJiDoWg="},"properties":{"kura.need.password.change":"true"}}] - - - [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin","kura.user.netadmin"]},{"name":"kura.permission.kura.device","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.network.admin","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.network.configuration"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}] - - - - - - - /opt/eclipse/kura/user/security/httpskeystore.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - HttpsKeystore - - - - - - - /opt/eclipse/kura/user/security/cacerts.ks - - - Y2hhbmdlaXQ= - - - true - - - org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl - - - SSLKeystore - - - - - - - 60 - - - - - - false - - - true - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - org.eclipse.kura.cloud.app.command.CommandCloudApp - - - - - - - - - - /var/log/kura.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7 - - - - - - - /var/log/kura-audit.log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider - - - filesystem-kura-audit-log - - - org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8 - - - - - - - false - - - false - - - org.eclipse.kura.internal.rest.provider.RestService - - - org.eclipse.kura.internal.rest.provider.RestService - - - -