- Download the .rpm file from tak.gov (4.9 is the latest at this time)
- Get CentOS ISO (CentOS 7). Setup either a VM or install on baremetal.
- Follow the prompts on the install, be sure to enable your networking on the install screen, and also set the install to be "infrastructure server".
- Be sure to create an admin password and make the user you create an admin.
- Install FileZilla or sftp or scp the
.rpm
file andinstallTakServer.sh
script onto your server.
The script will first update and upgrade your system by running:
sudo yum update -y && sudo yum upgrade -y
Then it will install the dependencies required for TAK Server
sudo yum install epel-release -y
sudo yum install java-11-openjdk-devel -y
sudo yum install patch -y
sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm -y
Next the script will install the .rpm file.
The default value is takserver-4.9-RELEASE23.noarch.rpm
sudo yum install takserver-4.9-RELEASE23.noarch.rpm
After the .rpm is installed then the DB setup script will be executed
sudo /opt/tak/db-utils/takserver-setup-db.sh
After the db setup script is complete, the systemctl deamon can be reloaded
sudo systemctl daemon-reload
Then TAK Server will be enabled to start at boot
sudo systemctl enable takserver
The script will prompt you for the following variables
export STATE=<state>
export CITY=<city>
export ORGANIZATION=<my-organizaton>
export ORGANIZATIONAL_UNIT=<my-unit>
Then it'll create the CA
./makeRootCa.sh
It will ask you to give a name for your CA: example-name
The script will then prompt how many certificates you want to generate. (0-9) Default (3)
The 3 certs that are recommended are as follows:
cert_type | cert_name |
---|---|
server | takserver |
client | user |
client | admin |
After the certs have been created the TAK Server service will be restarted. There is currently a 60 second sleep in the script to allow for the certs to reload. (You can tweak this if you have issues.)
systemctl restart takserver
Then it will authorize the admin
cert
java -jar /opt/tak/utils/UserManager.jar certmod -A /opt/tak/certs/files/admin.pem
Lastly it'll setup the firewall with these ports open
sudo firewall-cmd --permanent --zone=public --add-port 8089/tcp
sudo firewall-cmd --permanent --zone=public --add-port 8443/tcp
sudo firewall-cmd --reload
You can manually verify by running this command:
sudo firewall-cmd --list-ports
The output should look like this
8089/tcp 8443/tcp
Lastly the script will print that the install completed successfully and then print the ip where you can find the server as well as the steps to get your certificate.