1. sudo apt update
  2. sudo apt-get install apache2 php7.4 mysql-server libmariadb-java ant unzip
  3. sudo apt install default-jre
  4. sudo apt install default-jdk
  5. sudo vim /etc/profile
  6. Place #7 the end of the file:
  7. JAVA_HOME=/usr/lib/jvm/default-java
    PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
    export JAVA_HOME
    export JRE_HOME
    export PATH
  8. sudo useradd -m -d /opt/tomcat -U -s /bin/false tomcat
  9. sudo apt update
  10. cd /tmp
  11. sudo apt-cache search tomcat
  12. sudo apt install tomcat9 tomcat9-admin
  13. sudo nano /etc/tomcat9/tomcat-users.xml
  14. sudo systemctl restart tomcat9
  15. http://localhost:8080 with your credentials from above.
  16. wget -c http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.37.zip
  17. unzip mysql-connector-java-5.1.37.zip
  18. sudo apt-get install libmail-java
  19. wget https://sourceforge.net/projects/opengts/files/server-base/2.6.5/OpenGTS_2.6.5.zip
  20. sudo unzip /tmp/OpenGTS_2.6.5.zip -d /usr/local/
  21. sudo chown -R ubuntu:sudo /usr/local/OpenGTS_2.6.5
  22. export GTS_HOME=/usr/local/OpenGTS_2.6.5
  23. echo “export GTS_HOME=/usr/local/OpenGTS_2.6.5” > ~/.bashrc
  24. echo “export ANT_HOME=/usr/share/ant” > ~/.bashrc
  25. source ~/.bashrc
  26. sudo ln -s $JAVA_HOME /usr/local/java
  27. sudo ln -s $CATALINA_HOME /usr/local/tomcat
  28. sudo ln -s $GTS_HOME /usr/local/gts
  29. nano /usr/local/OpenGTS_2.6.2/config.conf – uncomment sql username and sql password.
  30. cd $GTS_HOME
  31. ant all