Prerequisite
This guide assumes you have a running Amazon Linux 2 server with access to the repositories (repos).
Minimum Server Spec
12GB RAM
2 CPU Cores
220GB disk
Note: VT Writer requires port 443 and port 22(Optional for SSH).
VT Writer requires 'sudo su' permission to install correctly.
Note: Attached at the end of the article is a sudoers file. It can be referenced to give a new OS user the minimum required permissions to install the rpm file. If you want to copy/paste the contents of the file into a sudoers file in /etc/sudoers.d/ you will have to either update the user in the attached file from vtuser to the username you will create or create a user with the same name.
Download the VT Writer rpm file to the AWS Instance (alternatively you can download the files at https://visiblethread.s3.amazonaws.com/public/download/visiblethread-api-1.0.4.all.rpm and https://visiblethread.s3.amazonaws.com/public/download/visiblethread-readability-5.0.2-1.x86_64.rpm then use an FTP/SCP client to transfer it to your instance):
VT API:
curl -O https://visiblethread.s3.amazonaws.com/public/download/visiblethread-api-1.0.4.all.rpm
md5sum ccf1a6943770113236202d0623a4bf2d
VT Writer:
curl -O https://visiblethread.s3.amazonaws.com/public/download/visiblethread-readability-5.0.2-1.x86_64.rpm
md5sum 96c6a4bc6eb20ab0a049fff5ec8eba88
Install Postgresql 14
VT Writer rpm does not have a dependency on PostgreSQL. However, VT Writer does require PostgreSQL to function correctly. We support PostgreSQL version 11 - 15 but recommend using a minimum version of PostgreSQL 14. The below instructions are how to install PostgreSQL 14 prior to the VT Writer install.
Enable the Postgresql 14 repository and install the Postgresql packages:
sudo amazon-linux-extras enable postgresql14
sudo yum install -y postgresql-server postgresql-contrib
Enter Postgresql bash shell and initialize the DB:sudo su - postgres
/usr/bin/postgresql-setup --initdb
Exit the Postgresql bash shell:exit
Enable and start Postgresql service:sudo systemctl enable --now postgresql
Verify service is active:systemctl status postgresql
Install Java17
sudo yum install -y java-17-amazon-corretto
Install VT API rpm:
sudo yum install -y visiblethread-api-1.0.4.all.rpm
Install VT Writer rpm:
sudo yum install -y visiblethread-readability-5.0.2-1.x86_64.rpm