Maintainers
Pricing
Enterprise
More
More
Documentation
Try Live
Rankings
Install
Blog
Docs7
Ask
New
Add Docs
TAK Server
https://github.com/tak-product-center/server
Admin
TAK Server
Tokens:
312,454
Snippets:
3,561
Trust Score:
7
Update:
4 months ago
Context
Chat
Benchmark
32.5
Latest
Show doc for...
Code
Info
Show Results
Tokens:
Raw
Copy
Link
Tokens:
Raw
Copy
Link
### Install and Enable MongoDB Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/fedhub/installation/ubuntu/index.html Installs the MongoDB server package, enables it to start on boot, and restarts the service. ```bash sudo apt update && sudo apt install mongodb-org -y sudo systemctl enable mongod sudo systemctl restart mongod ``` -------------------------------- ### Local Documentation Build Setup Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/README.md Commands to set up the local environment for running Bootstrap's documentation. This involves installing Ruby and Node.js dependencies. ```bash bundle install npm install npm start ``` -------------------------------- ### Setup MongoDB on RHEL Source: https://github.com/tak-product-center/server/blob/main/src/docs/README_fedhub.md Installs and configures MongoDB on RHEL systems. This includes setting up the repository, installing the package, enabling and restarting the service, and running the configuration script. ```bash sudo cp /opt/tak/federation-hub/scripts/db/mongodb-org.repo /etc/yum.repos.d/mongodb-org.repo sudo yum install -y mongodb-org sudo systemctl daemon-reload sudo systemctl enable mongod sudo systemctl restart mongod sudo /opt/tak/federation-hub/scripts/db/configure.sh ``` -------------------------------- ### Setup Local Database with PostgreSQL Source: https://github.com/tak-product-center/server/blob/main/README.md Configures the local database using psql and creates a new database owner and database. This is typically run after starting the PostGIS container. Ensure the 'schemamanager' is built using gradlew. ```bash - cd src/takserver-schemamanager - psql -d postgres -c "CREATE ROLE martiuser LOGIN ENCRYPTED PASSWORD 'md564d5850dcafc6b4ddd03040ad1260bc2' SUPERUSER INHERIT CREATEDB NOCREATEROLE;" - createdb --owner=martiuser cot - ../gradlew shadowJar - java -jar build/libs/schemamanager-<version>-uber.jar upgrade # Make sure that the CoreConfig.xml is in the current directory ``` -------------------------------- ### Example Files for Playbook Directory Source: https://github.com/tak-product-center/server/blob/main/src/testing/fedhub_automation/README.md These are example filenames that need to be placed in the same directory as the setup_instances.yml playbook. ```text tak-bbn-admin.pem, takserver-fed-hub-5.0-RELEASE96.noarch.rpm, takserver-docker-5.1-BETA-13.zip ``` -------------------------------- ### Setup MongoDB on Debian Source: https://github.com/tak-product-center/server/blob/main/src/docs/README_fedhub.md Installs and configures MongoDB 7.0 on Debian systems. This involves adding the MongoDB repository, installing the package, enabling and restarting the service, and running the configuration script. ```bash sudo apt install curl software-properties-common gnupg apt-transport-https ca-certificates -y curl -fsSL https://pgp.mongodb.com/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list sudo apt update && sudo apt install mongodb-org -y sudo systemctl enable mongod sudo systemctl restart mongod sudo /opt/tak/federation-hub/scripts/db/configure.sh ``` -------------------------------- ### Example Run of Importer Source: https://github.com/tak-product-center/server/blob/main/src/testing/tak-db-profiler/README.md An example of running the importer JAR with specific connection and configuration details. ```bash java -jar build/libs/tak-db-profiler-importer-*.jar -host localhost -port 5432 -password pass4marti -username martiuser -configDir /opt/tak/db-utils/db-profile ``` -------------------------------- ### Install Tooltip.js with npm Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/popper.js/README.md Use npm to install Tooltip.js for your project. ```bash npm install tooltip.js --save ``` -------------------------------- ### Start Local Server Instance Source: https://github.com/tak-product-center/server/blob/main/src/takserver-takcl-core/scripts/README.md Shell script to start a local TAK server instance. ```bash start.sh ``` -------------------------------- ### Run Command on Instances Source: https://github.com/tak-product-center/server/blob/main/src/testing/aws-cli/README.md Execute a command on each instance using run_command.sh. This example starts a Python load test script, redirects its output to a log file, and includes a delay between commands to manage server load. ```bash ./run_command.sh ~/cdoucett-keypair.pem "bash -c 'cd takserver/src/testing/load_test; (python3 tak_tester.py --test-pytak-proto --config config.yml > ~/pytak.log) &' " 20 ``` -------------------------------- ### Example Run of Exporter Source: https://github.com/tak-product-center/server/blob/main/src/testing/tak-db-profiler/README.md An example of running the exporter JAR with specific connection and configuration details. ```bash java -jar build/libs/tak-db-profiler-exporter-*.jar -host localhost -port 5432 -password pass4marti -username martiuser -configDir /opt/tak/db-utils/db-profile ``` -------------------------------- ### Example AWS Configuration Source: https://github.com/tak-product-center/server/blob/main/src/takserver-cluster/README.md Provides an example of how to set the AWS region, access key ID, and secret access key. ```bash aws configure set region us-east-2 aws configure set aws_access_key_id AYERTV7MOWD6K3HECOKKK aws configure set aws_secret_access_key 318860611555 ``` -------------------------------- ### Run Certificate Authority Setup Container Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/dockerinstall/buildinstall/index.html Starts the Certificate Authority setup container in detached mode. Certificate generation is skipped if certificates already exist. ```docker docker run --name ca-setup-hardened -it -d ca-setup-hardened ``` -------------------------------- ### Basic Table Sorting with Click Triggers Source: https://github.com/tak-product-center/server/blob/main/src/federation-hub-ui/src/main/webapp-angular-js/styles/tablesorter/docs/example-triggers.html This example shows a basic table setup where clicking on table headers triggers sorting. No special configuration is needed as this is the default behavior. ```html <table id="myTable"> <thead> <tr> <th>Name</th> <th>Score</th> <th>Hometown</th> </tr> </thead> <tbody> <tr> <td>Student A</td> <td>100</td> <td>New York</td> </tr> <tr> <td>Student B</td> <td>90</td> <td>Los Angeles</td> </tr> <tr> <td>Student C</td> <td>80</td> <td>Chicago</td> </tr> </tbody> </table> <script> $(function() { $("#myTable").tablesorter(); }); </script> ``` -------------------------------- ### Show Database Setup Logs Source: https://github.com/tak-product-center/server/blob/main/src/takserver-cluster/ManualClusterGuide.md Monitors the logs of the takserver-database-setup pod to track the progress and completion of the database setup process. ```bash kubectl logs -f takserver-database-setup ``` -------------------------------- ### Install MongoDB Prerequisites Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/fedhub/installation/ubuntu/index.html Installs necessary packages for adding the MongoDB repository and GPG key. ```bash sudo apt install curl software-properties-common gnupg apt-transport-https ca-certificates -y ``` -------------------------------- ### Enable TAK Server to Start at Boot Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/oneserver/takserverconfiguration/index.html Configures the TAK Server to automatically start when the system boots. Use this command for the full TAK Server service. ```bash sudo systemctl enable takserver ``` -------------------------------- ### Install EPEL and PostgreSQL Repositories Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/serverone/dependencysetup/index.html Installs the EPEL repository and the PostgreSQL YUM repository for RHEL-based systems. ```bash sudo yum install -y epel-release sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm ``` -------------------------------- ### Start Development Server Source: https://github.com/tak-product-center/server/blob/main/src/federation-hub-ui/src/main/webapp-angular/README.md Run this command to start a local development server. The application will auto-reload on source file changes. ```bash ng serve ``` -------------------------------- ### Install Ruby dependencies Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/getting-started/build-tools.md After installing Ruby and Bundler, run this command to install all Ruby dependencies, such as Jekyll and plugins. ```bash bundle install ``` -------------------------------- ### Install Bootstrap with RubyGems (gem install) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/getting-started/download.md Install Bootstrap using the gem install command if not using Bundler. A Sass compiler and Autoprefixer are necessary. ```sh gem install bootstrap -v {{ site.current_ruby_version }} ``` -------------------------------- ### Install Federation Hub DEB Package on Debian Source: https://github.com/tak-product-center/server/blob/main/src/docs/README_fedhub.md Installs the Federation Hub from a .deb package on Debian systems using APT. Note that a 'Permission denied' error during installation is acceptable. ```bash sudo apt install <absolute path>/takserver-fed-hub_*.deb -y ``` -------------------------------- ### Install Bootstrap with Composer Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/README.md Install Bootstrap using Composer for PHP projects. ```bash composer require twbs/bootstrap:4.3.1 ``` -------------------------------- ### Install EPEL, PostgreSQL Repo, Java 17, and TAK Server on RHEL/Rocky Linux 8 Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/oneserver/takserverinstallation/index.html Installs EPEL, PostgreSQL repository, Java 17, disables the PostgreSQL module, enables CodeReady Builder, installs TAK Server, and applies SELinux policies. Use this for RHEL 8 or compatible systems. ```bash sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmsudo dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo dnf update -y && sudo dnf -y install java-17-openjdk-develsudo dnf module disable postgresqlsudo subscription-manager config --rhsm.manage_repos=1sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpmsudo dnf -y install takserver-x.x-RELEASE-xx.noarch.rpmsudo dnf -y install checkpolicycd /opt/tak && sudo ./apply-selinux.sh && sudo semodule -l | grep takserver ``` -------------------------------- ### Install EPEL and PostgreSQL Repositories Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/upgrade/twoserver/index.html Installs the Extra Packages for Enterprise Linux (EPEL) repository and the PostgreSQL Yum repository, which are necessary for installing TAK Server database components. ```bash sudo yum install -y epel-releasesudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm ``` -------------------------------- ### Install Prerequisites and TAK Server Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/oneserver/takserverinstallation/index.html Installs necessary packages like EPEL, PostgreSQL repository, Java 17, and the TAK Server package. It also applies SELinux policies. ```bash sudo dnf -y install epel-releasesudo dnf --disablerepo=* -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo dnf -qy module disable postgresql && sudo dnf update -ysudo dnf -y install java-17-openjdk-develsudo dnf config-manager --set-enabled crbsudo dnf -y install takserver-x.x-RELEASE-xx.noarch.rpmsudo dnf -y install checkpolicycd /opt/tak && sudo ./apply-selinux.sh && sudo semodule -l | grep takserver ``` -------------------------------- ### Install Java 17 and Upgrade Core Package (RHEL/Rocky 8) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/upgrade/twoserver/index.html Installs Java 17 Development Kit and the TAK Server core package using DNF. Ensure Java 17 is installed before upgrading the core. ```bash sudo dnf update -y && sudo dnf -y install java-17-openjdk-develsudo dnf -y install takserver-core-x.x-RELEASE-xx.noarch.rpm ``` -------------------------------- ### Start TakServer with Docker Compose Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/docker/full/full-README.md Starts the TakServer services defined in the docker-compose file. Ensure you have modified the .env file with your configurations. ```bash docker-compose up ``` -------------------------------- ### Install EPEL and PostgreSQL Repositories (RHEL/Rocky Linux) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/servertwo/installtakserver/index.html Installs the EPEL repository for additional packages and the PostgreSQL repository for up-to-date PostgreSQL and PostGIS versions. This is a prerequisite for installing TAK Server on RHEL-based systems. ```bash sudo dnf -y install epel-releasesudo dnf --disablerepo=* -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo dnf update -ysudo dnf module disable postgresqlsudo dnf -y install java-17-openjdk-develsudo dnf config-manager --set-enabled crb ``` ```bash sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmsudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo yum install -y postgis33_15 postgis33_15-utilssudo yum install -y postgresql15-server postgresql15-contrib ``` -------------------------------- ### Install Popper.js with npm Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/popper.js/README.md Use npm to install Popper.js for your project. This is the recommended method. ```bash npm install popper.js --save ``` -------------------------------- ### Install Tooltip.js with Bower Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/popper.js/README.md Use Bower to install Tooltip.js from the unpkg.com CDN. Note that Bower is not officially supported for this. ```bash bower install tooltip.js=https://unpkg.com/tooltip.js --save ``` -------------------------------- ### Install npm dependencies Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/getting-started/build-tools.md Navigate to the root directory and run this command to install local dependencies listed in package.json. ```bash npm install ``` -------------------------------- ### Install Bootstrap CSS with NuGet Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/README.md Install the Bootstrap CSS files using the NuGet package manager. ```powershell Install-Package bootstrap ``` -------------------------------- ### Install EPEL, PostgreSQL, and OpenJDK 17 on RHEL 7 Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/upgrade/singleserver/index.html Installs necessary repositories and packages for TAK Server on RHEL 7, including EPEL, PostgreSQL, and OpenJDK 17. ```bash sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmsudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo yum install -y postgis33_15 postgis33_15-utilssudo yum install -y postgresql15-server postgresql15-contribsudo yum install -y https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpmsudo rpm -Uvh takserver-x.x-RELEASE-xx.noarch.rpm --nodeps ``` -------------------------------- ### Start/Stop All TAK Server Services Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/oneserver/takserverconfiguration/index.html Starts or stops all TAK Server services, including plugins. Use 'start' or 'stop' as the command argument. ```bash sudo systemctl [start|stop] takserver ``` -------------------------------- ### Install PyYAML Source: https://github.com/tak-product-center/server/blob/main/src/takserver-cluster/README.md Use this command to install the PyYAML package, which is a prerequisite for configuring TAK Server. ```bash python3 -m pip install pyyaml ``` -------------------------------- ### Install Bootstrap with npm Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/README.md Install the Bootstrap package using npm for Node.js projects. ```bash npm install bootstrap ``` -------------------------------- ### Defining and Installing a Draw Hook Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/flot/API.txt Example of defining a custom draw hook and installing it via the plot options. Hooks allow modification of the plotting process. ```javascript function hellohook(plot, canvascontext) { alert("hello!"); }; var plot = $.plot(placeholder, data, { hooks: { draw: [hellohook] } }); ``` -------------------------------- ### Include Example with Default Settings Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/_includes/example.html Demonstrates the basic usage of the `example.html` include without any optional arguments. Content is rendered with both preview and markup visible by default. ```html {%- comment -%} Usage: include example.html content=markup [args], where content is a capture with the HTML content args can be one of the following: id - null (default) class - "bd-example" (default) optional: hide_preview - disabled (default) optional: hide_markup - disabled (default) {%- endcomment -%} {%- assign id = include.id -%} {%- assign class = include.class -%} {%- if include.hide_preview == null -%} {{- include.content -}} {%- endif -%} {%- if include.hide_markup == null -%} {%- highlight html -%} {%- if include.content contains ' {%- endcapture -%} {{- img_placeholder -}} {%- else -%} {{- content_chunk -}} {%- endif -%} {%- endfor -%} {%- else -%} {{- include.content -%} {%- endif -%} {%- endhighlight -%} {%- endif -%} ``` -------------------------------- ### Serve local documentation Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/getting-started/build-tools.md Run this command from the root directory to serve the documentation locally. ```bash npm run docs-serve ``` -------------------------------- ### Install EPEL, PostgreSQL, and OpenJDK 17 on RHEL 8 Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/upgrade/singleserver/index.html Installs necessary repositories and packages for TAK Server on RHEL 8, including EPEL, PostgreSQL, and OpenJDK 17. ```bash sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmsudo dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo dnf update -y && sudo dnf -y install java-17-openjdk-develsudo dnf module disable postgresqlsudo subscription-manager config --rhsm.manage_repos=1sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms ``` -------------------------------- ### Injection String Example Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/injectors/partials/new.html An example of a valid injection string format, including a URL and test parameters. ```text __video url="udp://224.10.10.1:1234" test="value" ``` -------------------------------- ### Install Java 17 and Dependencies (RHEL 7) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/upgrade/twoserver/index.html Installs PostGIS, PostgreSQL server, and OpenJDK 17 from an RPM package on RHEL 7. Manual installation of JDK 17 requires responsibility for future security updates. ```bash sudo yum install -y postgis33_15 postgis33_15-utilssudo yum install -y postgresql15-server postgresql15-contribsudo yum install -y https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm ``` -------------------------------- ### Install Bootstrap with yarn Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/getting-started/download.md Install Bootstrap's source files into your Node.js project using yarn. This requires a Sass compiler and Autoprefixer for setup matching official compiled versions. ```sh yarn add bootstrap ``` -------------------------------- ### Install TAK Server Database DEB on Ubuntu/Raspberry Pi OS Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/serverone/dependencysetup/index.html Installs the PostgreSQL repository, updates package lists, and installs the TAK Server database DEB package. This process requires creating a new GPG key source for PostgreSQL. ```bash sudo apt-get install -y lsb-releasesudo mkdir -p /etc/apt/keyringssudo curl https://www.postgresql.org/media/keys/ACCC4CF8.asc --output /etc/apt/keyrings/postgresql.asccat <<HERE | sudo tee /etc/apt/sources.list.d/postgresql.list > /dev/nulldeb [signed-by=/etc/apt/keyrings/postgresql.asc] https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg mainHEREsudo apt updatesudo apt install -y takserver-database_x.x-RELEASExx_all.deb ``` -------------------------------- ### Install UFW Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/firewall/ubunturaspberrypi/index.html Installs the Uncomplicated Firewall (UFW) utility. This is a prerequisite for managing firewall rules on Ubuntu and Raspberry Pi. ```bash sudo apt install ufw ``` -------------------------------- ### Get Admin Certificate Fingerprint Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/dockerinstall/buildinstall/index.html Executes a command within the CA setup container to retrieve the MD5 fingerprint of the admin certificate. ```docker docker exec -it ca-setup-hardened \ bash -c "openssl x509 -noout -fingerprint -md5 -inform pem -in files/admin.pem | grep -oP 'MD5 Fingerprint=\K.*'" ``` -------------------------------- ### Enable and Start MongoDB Service Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/fedhub/installation/rhel7/index.html Reloads the systemd daemon, enables the MongoDB service to start on boot, and then restarts the service. ```bash sudo systemctl daemon-reload ``` ```bash sudo systemctl enable mongod ``` ```bash sudo systemctl restart mongod ``` -------------------------------- ### Build and Run TAK Server Locally for Development Source: https://github.com/tak-product-center/server/blob/main/README.md Builds the TAK server war and jar files from the 'takserver-core' directory and then prepares the 'example' directory for local execution. Sets necessary environment variables like IGNITE_HOME and JDK_JAVA_OPTIONS. ```bash cd takserver-core ../gradlew clean bootWar bootJar cd example export IGNITE_HOME="$PWD/ignite" export JDK_JAVA_OPTIONS="-Dloader.path=WEB-INF/lib-provided,WEB-INF/lib,WEB-INF/classes,file:lib/ -Djava.net.preferIPv4Stack=true -Djava.security.egd=file:/dev/./urandom -DIGNITE_UPDATE_NOTIFIER=false -DIGNITE_QUIET=true -Dio.netty.tmpdir=$PWD -Djava.io.tmpdir=$PWD -Dio.netty.native.workdir=$PWD -Djdk.tls.client.protocols=TLSv1.2 --add-opens=java.base/sun.security.pkcs=ALL-UNNAMED --add-opens=java.base/sun.security.pkcs10=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/sun.security.x509=ALL-UNNAMED --add-opens=java.base/sun.security.tools.keytool=ALL-UNNAMED --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED --add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED --add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.math=ALL-UNNAMED --add-opens=java.sql/java.sql=ALL-UNNAMED --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=jdk.unsupported/sun.misc=ALL-UNNAMED --add-opens=java.base/java.lang.ref=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.security.ssl=ALL-UNNAMED --add-opens=java.base/java.security.cert=ALL-UNNAMED --add-opens=java.base/sun.security.rsa=ALL-UNNAMED --add-opens=java.base/sun.security.ssl=ALL-UNNAMED --add-opens=java.base/sun.security.x500=ALL-UNNAMED --add-opens=java.base/sun.security.pkcs12=ALL-UNNAMED --add-opens=java.base/sun.security.provider=ALL-UNNAMED --add-opens=java.base/javax.security.auth.x500=ALL-UNNAMED" ``` -------------------------------- ### Install EPEL and PostgreSQL Repo (RHEL 8) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/serverone/dependencysetup/index.html Installs the EPEL repository and the PostgreSQL PGDG repository for RHEL 8. Ensure the database RPM is in the current directory before proceeding. ```bash sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmsudo dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm ``` -------------------------------- ### Start Local Docker Registry Source: https://github.com/tak-product-center/server/blob/main/src/takserver-takcl-core/scripts/README.md Starts a local Docker registry service. This is a prerequisite for deploying local clusters with `start-local-cluster.sh`. ```bash docker run -d -p 5000:5000 --restart always --name registry registry:2 ``` -------------------------------- ### Install TAK Server Core (Ubuntu/Raspberry Pi OS) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/servertwo/installtakserver/index.html Installs the TAK Server core package on Ubuntu and Raspberry Pi OS using a .deb package. ```bash sudo apt install takserver-core_x.x-RELEASExx_all.deb ``` -------------------------------- ### Install EPEL and PostgreSQL Repo (RHEL 9) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/serverone/dependencysetup/index.html Installs the EPEL repository and the PostgreSQL PGDG repository for RHEL 9. Ensure the database RPM is in the current directory before proceeding. ```bash sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpmsudo dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm ``` -------------------------------- ### Start TAK Server with Provisioning Script Source: https://github.com/tak-product-center/server/blob/main/utils/cluster/README_docker.md Executes a script to provision and start the TAK Server environment using Docker. This is an alternative to manually building and running individual containers. ```bash ./provision-and-start-docker-takserver.sh ``` -------------------------------- ### Access Plugin Version Number Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/getting-started/javascript.md Retrieve the version number of a Bootstrap JavaScript plugin using its `Constructor.VERSION` property. This example shows how to get the version for the tooltip plugin. ```javascript $.fn.tooltip.Constructor.VERSION // => "{{ site.current_version }}" ``` -------------------------------- ### Install TAK Server and SELinux Policy on RHEL 9 Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/oneserver/takserverinstallation/index.html Installs the TAK server package and the necessary SELinux policy. It then applies the policy and verifies its presence. ```bash sudo dnf -y install takserver-x.x-RELEASE-xx.noarch.rpmsudo dnf -y install checkpolicycd /opt/tak && sudo ./apply-selinux.sh && sudo semodule -l | grep takserver ``` -------------------------------- ### Configure TAK Server Database Connection Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/serverone/dependencysetup/index.html Example of the database connection string within the TAK Server configuration file. Replace 'Database_password' with the actual password generated during installation. ```xml <connection url="jdbc:postgresql://127.0.0.1:5432/cot" username="martiuser" password="Database_password" /> ``` -------------------------------- ### Install TAK Server and Dependencies on RHEL 7 Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/oneserver/takserverinstallation/index.html Installs EPEL, PostgreSQL repository, PostGIS, PostgreSQL server, Java 17 (manually), and the TAK Server package on RHEL 7. Note that manual JDK installation bypasses package management for updates. ```bash sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmsudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo yum install -y postgis33_15 postgis33_15-utilssudo yum install -y postgresql15-server postgresql15-contribsudo yum install -y https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpmsudo rpm -ivh takserver-x.x-RELEASE-xx.noarch.rpm --nodeps ``` -------------------------------- ### HTML for Tab Navigation Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/components/navs.md Example HTML structure for creating tabbed navigation using Bootstrap's nav-tabs and tab-content classes. This setup allows for data attribute activation. ```html <ul class="nav nav-tabs" id="myTab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Profile</a> </li> <li class="nav-item"> <a class="nav-link" id="messages-tab" data-toggle="tab" href="#messages" role="tab" aria-controls="messages" aria-selected="false">Messages</a> </li> <li class="nav-item"> <a class="nav-link" id="settings-tab" data-toggle="tab" href="#settings" role="tab" aria-controls="settings" aria-selected="false">Settings</a> </li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab">...</div> <div class="tab-pane" id="profile" role="tabpanel" aria-labelledby="profile-tab">...</div> <div class="tab-pane" id="messages" role="tabpanel" aria-labelledby="messages-tab">...</div> <div class="tab-pane" id="settings" role="tabpanel" aria-labelledby="settings-tab">...</div> </div> ``` -------------------------------- ### Install JDK 17 and TAK Server (RHEL 7) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/servertwo/installtakserver/index.html Installs OpenJDK 17, PostGIS, and the TAK Server core package on RHEL 7. Note that manual JDK installation on RHEL 7 may require manual security updates. ```bash sudo yum install -y https://download.oracle.com/java/17/latest/jdk-17_linuxx64_bin.rpmsudo rpm -ivh takserver-core-x.x-RELEASE-xx.noarch.rpm --nodeps ``` -------------------------------- ### Override Default Helm Values Source: https://github.com/tak-product-center/server/blob/main/src/takserver-cluster/deployments/helm/README.md Use the `--set` argument with `helm upgrade --install` to override default TAKServer deployment parameters. This example enables ingress for the TAKServer deployment. ```console $ helm upgrade --install takserver -n takserver --create-namespace -f ./production-values.yaml \ --set takserver.ingress.enabled=true \ ./ ``` -------------------------------- ### Build and Deploy Database Setup Pod Source: https://github.com/tak-product-center/server/blob/main/utils/cluster/cluster_README.md Build a Docker image for the database setup and deploy it as a Kubernetes pod. Ensure necessary AWS credentials and cluster information are set as environment variables. ```bash cd $CLUSTER_HOME_DIR/build && docker build -t $AWS_ECR_URI:database-setup -f docker-files/Dockerfile.rds . && docker push $AWS_ECR_URI && kubectl run takserver-database-setup --image=$AWS_ECR_URI:database-setup --image-pull-policy Always --restart Never --env="AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY" --env="AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" --env="region=$TAK_CLUSTER_REGION" --env="identifier=$TAK_CLUSTER_NAME" ``` -------------------------------- ### Running Tests Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/ng-dialog/README.md Clone the repository, install dependencies, and run tests. ```bash git clone git@github.com:likeastore/ngDialog.git cd ngDialog npm i npm run test ``` -------------------------------- ### Setup RDS Postgres Database Source: https://github.com/tak-product-center/server/blob/main/utils/cluster/cluster_README.md Get subnet IDs, create an RDS subnet group, generate an MD5 hash for the database password, and create the RDS DB instance. Wait for the DB instance to become available and update CoreConfig.xml with the RDS connection details. ```bash aws ec2 describe-subnets --filters "Name=tag:KubernetesCluster,Values=$TAK_CLUSTER_NAME.$TAK_CLUSTER_DOMAIN_NAME" | grep SubnetId aws rds create-db-subnet-group --db-subnet-group-name $TAK_CLUSTER_NAME-SG --db-subnet-group-description $TAK_CLUSTER_NAME-SG --subnet-ids <subnet-id> <subnet-id> echo -n <password><user> | md5sum aws ec2 describe-security-groups --filters "Name=tag:Name,Values=nodes.$TAK_CLUSTER_NAME.$TAK_CLUSTER_DOMAIN_NAME" | grep GroupId | tail -1 aws rds create-db-instance --db-name cot --db-instance-identifier $TAK_CLUSTER_NAME --db-instance-class db.t2.micro --engine postgres --engine-version 10.6 --no-publicly-accessible --master-username <DB User> --master-user-password md5<Hash> --allocated-storage 20 --vpc-security-group-ids <GroupID> --db-subnet-group-name $TAK_CLUSTER_NAME-SG aws rds describe-db-instances --db-instance-identifier $TAK_CLUSTER_NAME | grep DBInstanceStatus aws rds describe-db-instances --db-instance-identifier $TAK_CLUSTER_NAME | grep Address cd $CLUSTER_HOME_DIR/build/ # Edit Repository Tag in CoreConfig.xml ``` -------------------------------- ### Install Java 17 on RHEL7 Source: https://github.com/tak-product-center/server/blob/main/src/docs/README_fedhub.md Installs Java 17 on RHEL7 systems by downloading the RPM package and then installing it using YUM. Ensure wget is installed first. ```bash sudo yum install wget -y sudo wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm sudo yum install -y ./jdk-17_linux-x64_bin.rpm ``` -------------------------------- ### Run Configuration Microservice Source: https://github.com/tak-product-center/server/blob/main/README.md Starts the TAK Server configuration microservice. Ensure the -Xmx value is specified. ```java java -server -XX:+AlwaysPreTouch -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:+DisableExplicitGC -Xmx<value> -Dspring.profiles.active=config,duplicatelogs -jar ../build/libs/takserver-core-xyz.war ``` -------------------------------- ### Install TAK Server Core Package Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/servertwo/installtakserver/index.html Installs the TAK Server core package using yum after configuring the repository. Ensure the version number matches the available release. ```bash sudo yum install -y takserver-core-x.x-RELEASE-xx ``` -------------------------------- ### Install Dependencies on RHEL 7 Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/serverone/dependencysetup/index.html Installs EPEL, PostgreSQL repository, updates yum, and installs PostGIS, PostgreSQL server, and OpenJDK 17 from a direct RPM link. Note: JDK 17 installation via yum is not supported on RHEL 7; manual installation is required, and users are responsible for updates. ```bash sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmsudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo yum update -ysudo yum install -y postgis33_15 postgis33_15-utilssudo yum install -y postgresql15-server postgresql15-contribsudo yum install -y https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm ``` -------------------------------- ### Enable Essential TAK Server Services at Boot Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/oneserver/takserverconfiguration/index.html Configures only the essential TAK Server services (without plugins) to start automatically when the system boots. Use this for resource-limited hosts. ```bash sudo systemctl enable takserver-noplugins ``` -------------------------------- ### Install angular-route via bower Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/angular-route/README.md Use bower to install the angular-route package. This command fetches and installs the package into your project's bower_components directory. ```shell bower install angular-route ``` -------------------------------- ### Static Modal Example Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/components/modal.md A static modal example demonstrating the basic structure including header, body, and footer. This modal is not interactive and serves as a visual template. ```html <div class="modal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Modal title</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <p>Modal body text goes here.</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> </div> </div> ``` -------------------------------- ### Install angular-route via npm Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/angular-route/README.md Use npm to install the angular-route package. This command fetches and installs the package into your project's node_modules directory. ```shell npm install angular-route ``` -------------------------------- ### Deploy Database Setup Pod Source: https://github.com/tak-product-center/server/blob/main/src/takserver-cluster/ManualClusterGuide.md Builds a Docker image for database setup and runs it as a Kubernetes pod. Ensure AWS credentials and cluster region/name are set as environment variables. ```bash cd $CLUSTER_HOME_DIR && docker build -t $AWS_ECR_URI:database-setup -f docker-files/Dockerfile.rds . && docker push $AWS_ECR_URI && kubectl run takserver-database-setup --image=$AWS_ECR_URI:database-setup --image-pull-policy Always --restart Never --env="AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY" --env="AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" --env="region=$TAK_CLUSTER_REGION" --env="identifier=$TAK_CLUSTER_NAME" ``` -------------------------------- ### Install ngDraggable Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/ngDraggable/README.md Install the ngDraggable module using bower. ```bash bower install ngDraggable ``` -------------------------------- ### Install TAK Server Core (RHEL/Rocky Linux) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/servertwo/installtakserver/index.html Installs the TAK Server core package and checkpolicy, which is required for SELinux integration. After installation, it applies SELinux policies. ```bash sudo dnf -y install java-17-openjdk-develsudo dnf -y install takserver-core-x.x-RELEASE-xx.noarch.rpmsudo dnf -y install checkpolicycd /opt/tak && sudo ./apply-selinux.sh && sudo semodule -l | grep takserver ``` ```bash sudo dnf -y install java-17-openjdk-develsudo dnf -y install takserver-core-x.x-RELEASE-xx.noarch.rpmsudo dnf -y install checkpolicycd /opt/tak && sudo ./apply-selinux.sh && sudo semodule -l | grep takserver ``` ```bash sudo dnf -y install java-17-openjdk-develsudo dnf -y install takserver-core-x.x-RELEASE-xx.noarch.rpmsudo dnf -y install checkpolicycd /opt/tak && sudo ./apply-selinux.sh && sudo semodule -l | grep takserver ``` -------------------------------- ### Basic Tooltip Example Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/popper.js/docs/tooltip-examples.html Demonstrates the basic creation and display of a tooltip. Ensure Tooltip.js is included and initialized. ```html <div class="tooltip-example"> <button class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="This is a tooltip!"> Hover over me </button> </div> ``` -------------------------------- ### Connect to PostgreSQL and Manage Users Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/appendixd/index.html Connects to the PostgreSQL database as the 'postgres' user and demonstrates how to list existing roles and create a new user with specific permissions. ```bash sudo su - postgres psql -d cot # List all users/roles: du SELECT * FROM pg_roles; # Create a new user ("takdbuser") and grant the user necessary roles ("martiuser"). The name of the user must match the CN in the client certificate. CREATE USER takdbuser; grant martiuser to takdbuser; # Optional: Double check using \du and "SELECT * FROM pg_roles;" ``` -------------------------------- ### Install Core Dependencies for TAK Server Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/oneserver/takserverinstallation/index.html Installs EPEL, PostgreSQL repository, PostGIS, PostgreSQL server, and OpenJDK 17. Also installs the TAK Server RPM package. Note: JDK 17 installation on CentOS 7 is manual and requires user responsibility for updates. ```bash sudo yum install -y epel-release sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo yum install -y postgis33_15 postgis33_15-utilssudo yum install -y postgresql15-server postgresql15-contribsudo yum install -y https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpmsudo rpm -ivh takserver-x.x-RELEASE-xx.noarch.rpm --nodeps ``` -------------------------------- ### Prepare Database Server for Upgrade (Rocky Linux 8) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/upgrade/twoserver/index.html On the database server, set up the PostgreSQL yum repository, disable the default PostgreSQL stream, install Java 17, enable the 'powertools' repository, and then install the TAK Server database RPM. ```bash sudo dnf -y install epel-release sudo dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo dnf update -ysudo dnf module disable postgresqlsudo dnf -y install java-17-openjdk-develsudo dnf config-manager --set-enabled powertools ``` -------------------------------- ### Install Federation Hub RPM on RHEL8 Source: https://github.com/tak-product-center/server/blob/main/src/docs/README_fedhub.md Installs the Federation Hub from a .rpm package on RHEL8 systems using YUM. This command ensures the Federation Hub is installed on the system. ```bash sudo yum install takserver-fed-hub-*.noarch.rpm -y ``` -------------------------------- ### Run API Microservice Source: https://github.com/tak-product-center/server/blob/main/README.md Starts the TAK Server API microservice. Ensure the -Xmx value is specified and the -Dkeystore.pkcs12.legacy property is included if needed. ```java java -server -XX:+AlwaysPreTouch -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:+DisableExplicitGC -Xmx<value> -Dspring.profiles.active=api,duplicatelogs -Dkeystore.pkcs12.legacy -jar ../build/libs/takserver-core-xyz.war ``` -------------------------------- ### Install ngDialog with npm Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/ng-dialog/README.md Install ngDialog using the npm package manager. ```bash npm install ng-dialog ``` -------------------------------- ### Install ngDialog with Bower Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/ng-dialog/README.md Install ngDialog using the Bower package manager. ```bash bower install ng-dialog ``` -------------------------------- ### Install EPEL and PostgreSQL Repo (Generic) Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/twoserver/serverone/dependencysetup/index.html Installs the EPEL repository and the PostgreSQL PGDG repository. This command is applicable to RHEL 9 and other compatible systems. Ensure the database RPM is in the current directory. ```bash sudo dnf -y install epel-releasesudo dnf --disablerepo=* -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudo dnf update -ysudo dnf module disable postgresqlsudo dnf -y install java-17-openjdk-develsudo dnf config-manager --set-enabled crb ``` -------------------------------- ### Install Bootstrap with yarn Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/README.md Install a specific version of Bootstrap using yarn. ```bash yarn add bootstrap@4.3.1 ``` -------------------------------- ### Build TAK Server and Plugin Manager Source: https://github.com/tak-product-center/server/blob/main/README.md Execute these commands to clean, build, and package the TAK Server and plugin manager. Ensure you are in the correct repository directory. ```bash cd <repo-home>/src ./gradlew clean build bootWar bootJar ``` -------------------------------- ### Accessing Installed Hooks Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/flot/API.txt Demonstrates how to access hooks that have been installed on a plot object after its creation. ```javascript // Assuming hellohook was installed var firstDrawHook = plot.hooks.draw[0]; ``` -------------------------------- ### Install TAK Server on Ubuntu and Raspberry Pi OS Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/Marti/documentation/takserver/installation/oneserver/takserverinstallation/index.html Installs the PostgreSQL repository and the TAK Server .deb package on Ubuntu and Raspberry Pi OS. This method uses apt-get for package management. ```bash sudo apt-get install -y lsb-releasesudo mkdir -p /etc/apt/keyringssudo curl https://www.postgresql.org/media/keys/ACCC4CF8.asc --output /etc/apt/keyrings/postgresql.asccat <<HERE | sudo tee /etc/apt/sources.list.d/postgresql.list > /dev/nulldeb [signed-by=/etc/apt/keyrings/postgresql.asc] https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg mainHEREsudo apt updatesudo apt install ./takserver_x.x-RELEASExx_all.deb ``` -------------------------------- ### Basic Media Object Example Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/components/media-object.md Demonstrates a single media object with an image and text content. Uses the .media and .media-body classes. Spacing utilities can be used for padding and margins. ```html <div class="media"> {% include icons/placeholder.svg width="64" height="64" class="mr-3" %} <div class="media-body"> <h5 class="mt-0">Media heading</h5> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. </div> </div> ``` -------------------------------- ### Responsive hiding examples Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/bootstrap/site/docs/4.3/utilities/display.md Demonstrates how to hide elements on specific screen sizes using responsive display utilities. Combine `.d-none` with breakpoint-specific classes to control visibility. ```html <div class="d-lg-none">hide on screens wider than lg</div> <div class="d-none d-lg-block">hide on screens smaller than lg</div> ``` -------------------------------- ### Install Popper.js with NuGet Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/popper.js/README.md Install Popper.js using the NuGet package manager in Visual Studio. ```powershell PM> Install-Package popper.js ``` -------------------------------- ### Build TAK Server Retention Tool Source: https://github.com/tak-product-center/server/blob/main/src/takserver-retention/README.md Navigate to the takserver-retention directory and execute the bootJar task to build the application. ```bash cd takserver-retention/ ../gradlew bootJar ``` -------------------------------- ### Install jQuery for Node.js Source: https://github.com/tak-product-center/server/blob/main/src/takserver-core/src/main/webapp/user-management/bower_components/jquery/README.md Install the jQuery package using npm for use in a Node.js environment. ```sh npm install jquery ``` -------------------------------- ### Install or Upgrade TAK Server Helm Chart Source: https://github.com/tak-product-center/server/blob/main/src/takserver-cluster/deployments/helm/README.md Installs or upgrades the TAK Server Helm chart. Use 'production-values.yaml' for production or 'developer-values.yaml' for local development. Ensure the 'takserver' namespace exists or is created. ```bash cd src/takserver-cluster/deployments/helm helm upgrade --install takserver -n=takserver --create-namespace ./ -f ./production-values.yaml ``` -------------------------------- ### Build Federation Hub Microservices Source: https://github.com/tak-product-center/server/blob/main/src/docs/README_fedhub.md Builds each microservice for the Federation Hub from source. Navigate to the 'takserver/src' directory before running these commands. ```bash ./gradlew :federation-hub-policy:build ./gradlew :federation-hub-broker:build ./gradlew :federation-hub-ui:bootWar ``` -------------------------------- ### Start Local Cluster with Minikube Source: https://github.com/tak-product-center/server/blob/main/src/takserver-takcl-core/scripts/README.md Initiates a local TAK server cluster using minikube. This script automatically downloads necessary tools like Minikube, Helm, and Kubectl. Ensure a local Docker registry is running and configured. ```bash ./start-local-cluster.sh takserver-cluster-4.10-DEV-119.zip ```