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