Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
---
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
```