SNAPT Server

CLoud server and computing, data storage and processing. Internet and technology concept. 

The SNAPT Server mediates between the Research Web UI and the Tablets deployed in the field.  It runs on a securely provisioned machine in Amazon’s EC2 cloud.

  1. Install emacs: sudo apt-get install emacs
  2. Install tomcat
    1. https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04
      1. Step 3: Make sure to copy the link from the website. It does not work if we use link given in the instructions.
      2. Step 7: username = grouptheory, password = Gr0upth30ry!!tomcat
  3. Initial server setup
    1. https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
      1. Step 2: adduser = grouptheory, password = t1nstas,t100,
      2. Step 4: passphrase = Gr0upth30ry!!passphrase (last step)
  4. Install LAMP
    1. https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
      1. Step 2: MySQL root, password = Gr0upth30ry!!mysql$%&
        1. Password strength = 0 (LOW)
        2. Change password? No
        3. Remove anonymous users? Yes
        4. Disallow login remotely? No
        5. Remove test database and access to it? Yes
      2. Step 3: Install PHP did not install any extra packages
  5. Install PHPMyAdmin
    1. https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04
      1. Phpmyadmin password = Gr0upth30ry!!phpmy@dmin$%&
      2. Create .htpasswd for authentication username = codebot, password = v3r1ta5!
  6. Install Dotnet Core Runtime
    1. https://dotnet.microsoft.com/download/linux-package-manager/ubuntu16-04/runtime-current
      1. This one does not work when trying to execute dotnet because it is 2.2.0 and my project is dotnet 1.1.2.
    2. https://github.com/dotnet/core/blob/master/release-notes/download-archives/1.1.2-download.md
      1. Used the above link to install 1.1.2 following the instructions from Ubuntu 16.04. After installing this version, dotnet executed successfully.
  7. Mkdir /log/snapt
  8. Chown -R root:tomcat /log/snapt
  9. Chmod -R 771 /log/tomcat
  10. Sudo adduser frontend: password = fr0nt3nd!!$$
  11. Sudo adduser tomcat sudo
  12. Sudo groupadd snapt
  13. Sudo adduser frontend snapt
  14. Sudo adduser tomcat snapt
  15. Mkdir /home/grouptheory/ResearcherUI
  16. Chown root:snapt -R ResearcherUI
  17. Chmod 714 ResearcherUI
  18. Chmod 774 nohup.out
  19. Chown tomcat:snapt -R /var/data
  20. Chmod 770 /var/data
  21. Run dotnet as tomcat -> nohup dotnet SNAPT.dll