{"id":19644891,"url":"https://github.com/uscbiostats/aws-notes","last_synced_at":"2025-02-26T23:42:46.160Z","repository":{"id":93429518,"uuid":"311447672","full_name":"USCbiostats/aws-notes","owner":"USCbiostats","description":"Random notes on how to use AWS for our research","archived":false,"fork":false,"pushed_at":"2020-11-09T19:46:30.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-09T20:44:13.884Z","etag":null,"topics":["aws","cloud-computing","notes","rstats","tutorial"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/USCbiostats.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-09T19:45:52.000Z","updated_at":"2022-01-31T18:59:01.000Z","dependencies_parsed_at":"2023-03-13T17:18:25.588Z","dependency_job_id":null,"html_url":"https://github.com/USCbiostats/aws-notes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USCbiostats%2Faws-notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USCbiostats%2Faws-notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USCbiostats%2Faws-notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USCbiostats%2Faws-notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/USCbiostats","download_url":"https://codeload.github.com/USCbiostats/aws-notes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240952942,"owners_count":19884019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cloud-computing","notes","rstats","tutorial"],"created_at":"2024-11-11T14:30:37.109Z","updated_at":"2025-02-26T23:42:46.137Z","avatar_url":"https://github.com/USCbiostats.png","language":null,"readme":"# Notes on AWS\n\nHere are some random notes about how to use AWS\n\n## EC2: Elastic Cloud Computing\n\nThis was one of the first services offered by AWS. EC2 provides a way to flexibly\nrequest tailored computational resources in a few clicks. Many other AWS products\nrely on EC2 as a backbone, e.g., AWS Lightsail.\n\n### Setup\n\nTo set it up, just follow the steps available in AWS (click-by-click.) The most\ncomplicated bit, at least to me, was that the default unix username is not provided\nout of the box. In my case was \"ubuntu\" (I was trying an Ubuntu box), and more\nimportantly, `sudo` is possible without password, which makes installing things\neasy.\n\nAnother important issue is that, in order to ssh to the server, you need to\nset up your `pem` (identity) file. You will be asked to do so during the\nsetup. Once you download the pem file to your computer, you need to change \npermission levels, i.e.:\n\n```bash\nchmod 400 /path/to/your/identity.pem\n```\n\nIt windows is by right clicking on the pem file, and set it to read-only for\nthe owner. Once you are done with it, you can login via ssh as follows\n\n```bash\nssh -i /path/to/your/identity.pem ubuntu@[private dns or ip provided by AWS]\n```\n\nTo install R, you can just rely on the default version shipped with Ubuntu 20,\nwhich is a 2019 version, I believe:\n\n```bash\nsudo apt update \u0026\u0026 sudo apt install r-base\n```\n\nAnd you should be good to go.\n\n### RStudio server\n\nIf you want, you can also install RStudio server. Just follow the instructions\nprovided in RStudio's website to get the free RStudio server version for Ubuntu.\n\nIn my case, when trying to start RStudio server, I got an error regarding a couple\nof \"missing\" libraries. The problem was that Rstudio was looking in the wrong place.\nWhat worked for me was to create symbolic links in the place where RStudio seemed\nto be reaching out for them, the `/usr/lib` directory. I did it as follows:\n\n```bash\ncd /usr/lib\nsudo ln -s /snap/core/10185/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 libcrypto.so.1.0.0\n```\n\nThe second thing to do, is to add the TCP port 8787, which is where Rstudio\nruns by default, to the list of \"inbound rules\" of the EC2 instance. You can\nset that up directly in the AWS EC2 console. \n\nFinally, since RStudio requires a password, you need to make sure that the user\nyou will be running RStudio with, which probably will be `ubuntu`, has a password.\nYou can change the user password as follows:\n\n```bash\npasswd ubuntu\n```\n\nOnce that's complete, you can now start using RStudio server. For that, you can\naccess it by entering the following URL: `[private IP or DNS]:8787`.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuscbiostats%2Faws-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuscbiostats%2Faws-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuscbiostats%2Faws-notes/lists"}