Setup AWS Server

Start AWS server and install dependencies including Docker and Solana CLI

Machine Specs

c5a.4xlarge EC2, Ubuntu, 16 CPU, 32GB RAM, 64 bit x86, EBS volume 1 TB, ED25519 key pair

While these machine specs are recommended, you can also do the setup with much lower specs.

Add Docker's official GPG key

sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

Add the repository to Apt sources:

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# Not needed but just to check if docker is working
sudo docker run hello-world

Install docker-compose

sudo snap install docker
sudo apt install docker-compose

Update Permissions

sudo groupadd docker
sudo usermod -aG docker $USER
sudo chown root:docker /var/run/docker.sock
sudo chmod 660 /var/run/docker.sock
logout

Install Solana

sh -c "$(curl -sSfL https://release.solana.com/v1.18.18/install)"
export PATH="/home/ubuntu/.local/share/solana/install/active_release/bin:$PATH"

Open the EC2 Ports below

  • HTTP: 80

  • HTTPS: 443

  • Blockscout: 1000

Last updated