Final Customizations to the Server

  • Install imagemagick with
    sudo apt install imagemagick
  • Install mathjax.
    sudo apt install npm
    sudo npm install mathjax@3 
  • Move the mathjax to some folder within /var/www/html.
    sudo mv node_modules/mathjax/es5 /var/www/html/mathj
  • Edit /var/www/html/test01/htmlHeader.txt and make sure that the script with the id MathJax-script looks like this
     <script id="MathJax-script" async
              src="https://yourdomain.com/mathj/tex-mml-chtml.js">
      </script>
  • You can now add math formulas to your pages. They have to be placed between dollar signs; or signs \( and \); or signs \[ and \].
  • You may also want to install python and its module BeautifulSoup4. These two programs will make it possible to write programs that send emails. You should also install latex so your cgi scripts can then call latex to generate pdf files out of properly formatted math pages.
    sudo apt install python3-pip
    pip3 install BeautifulSoup4
    sudo apt install texlive-latex-base
    sudo apt install texlive
    sudo apt install texlive-latex-extra
    
  • Installation of Docker:
    sudo apt update
    sudo apt install apt-transport-https ca-certificates curl software-properties-common
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
    sudo apt update
    apt-cache policy docker-ce
    sudo apt install docker-ce 
    sudo groupadd docker
    sudo usermod -aG docker www-data
    sudo usermod -aG docker [yourUserName]
    sudo reboot