Skip to content

Instantly share code, notes, and snippets.

@8teAPi
8teAPi / ec2setup.sh
Last active August 29, 2022 05:16
Debian EC2 setup for a working solana, anchor development environment
#!/bin/bash
# This script is used to setup the EC2 instance for the project.
# It is run by the EC2 instance after it is created.
# Minimum requirements:
# - Debian 10 - t2.small (2 vCPUs, 2 GB RAM)
wget https://static.rust-lang.org/rustup/archive/1.24.3/x86_64-unknown-linux-gnu/rustup-init
chmod +x rustup-init
./rustup-init -y --no-modify-path --profile minimal --default-toolchain 1.56.1-x86_64-unknown-linux-gnu --default-host x86_64-unknown-linux-gnu