4  shiny-server.yml

4.1 Set up a Shiny server on Ubuntu 20.04

4.2 Checks

Some checks to do after the cloud-init script has finished:

  • (SSH) Is SSH key added? sudo nano ~/.ssh/authorized_keys
  • (SSH) Has port changed from 22 to 4444? sudo nano /etc/ssh/sshd_config
  • (Nginx) Is the content of the server block written to the file that is included in the Nginx config file /etc/nginx/conf.d? sudo nano /etc/nginx/sites-enabled/default
  • Are .deb files deleted? sudo ls -l /var/cache/apt/archives
  • (sed) Check sed syntax at https://sed.js.org/index.html, this tool was used to solve the issue with port 4444 (see commit w/ hash fcb426dd536952ce929329a865d737660d12f112)

4.3 References

Help on cloud-init syntax from:

Help on Shiny server installation syntax from: