Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (21 sloc)
722 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "Instance Setup" | |
| output: html_notebook | |
| --- | |
| Create a new sever instance on AWS EC2. See the [AWS documentation](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/EC2_GetStarted.html) for detailed instruction. | |
| 1. This example uses a Redhat/CentOS image with 2 cores, 4 GB of RAM and 128 GB of disk. Your exact server size may very. | |
| 2. Make sure to open these ports in your security group: 8787, 3939, 3838, 80. | |
| 3. Create a PEM key so you can log into your server. | |
| ## Log into your server | |
| ```{bash} | |
| ssh -i ~/.ssh/my.pem ec2-user@<my-server-ip> | |
| ``` | |
| ## Update your system | |
| ```{bash} | |
| sudo yum update | |
| ``` | |
| ## Add a user | |
| ```{bash} | |
| sudo useradd -m rstudio | |
| sudo echo "rstudio:mypassword" | sudo chpasswd | |
| ``` | |