# OpenEdx - AWS (EC2 instance)

Step 1 : Launch any Linux EC2 instance minimum 20GB storage and establish a connection using SSH.

Step 2 : Ensure the installation of prerequisite software - Docker and Docker-compose. Follow the official documentation for installation instructions:

* For Docker: [Docker Installation Guide](https://docs.docker.com/engine/install/)
* For Docker-compose: [Docker-compose Installation Guide](https://docs.docker.com/compose/install/)

Step 3 : Install additional required dependencies. For example, on Ubuntu, use the following command:

```
sudo apt install python3 python3-pip libyaml-dev
```

\
Step 4 : Execute the primary command to install Tutor on the instance:

```
pip install "tutor[full]"
```

Step 5 : \
&#x20;Download the binary release :&#x20;

```
sudo curl -L "https://github.com/overhangio/tutor/releases/download/v17.0.0/tutor-$(uname -s)_$(uname -m)" -o /usr/local/bin/tutor
```

Step 6 : Give it permission&#x20;

```
sudo chmod 0755 /usr/local/bin/tutor
```

Step 7 :&#x20;

Then run the `launch` command:&#x20;

```
tutor local launch
```

Step 8:&#x20;

\
The problem may because your current user does not have the necessary permissions to interact with the Docker daemon.

To resolve this issue, you can follow these steps:

1. **Add your user to the Docker group**: This will grant your user the necessary permissions to interact with Docker. You can do this by running the command:

```bash
sudo usermod -aG docker $USER
```

After running this command, you need to log out and log back in so that your group membership is re-evaluated. \
&#x20;

If you want to avoid logging out and in again, you can use the following command to apply group changes:

```
newgrp docker
```

Then again run the launch command :&#x20;

```
tutor local launch
```

Now it will take some time to download all the docker images and run the container\
\ <br>

<br>

<br>
