Skip to content

Instantly share code, notes, and snippets.

@vlad-ds
Created August 1, 2023 07:43
Show Gist options
  • Save vlad-ds/3cdd9396a725d44f3448684db3059c1a to your computer and use it in GitHub Desktop.
Save vlad-ds/3cdd9396a725d44f3448684db3059c1a to your computer and use it in GitHub Desktop.
Initial setup for EC2 Amazon Linux Image (for hosting telegram bots & other use cases)
#!/bin/bash
# install requirements
sudo yum update -y
sudo yum install -y python3-devel
sudo yum install -y python3-pip
sudo yum install -y git
# install github cli
type -p yum-config-manager >/dev/null || sudo yum install yum-utils
sudo yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo yum install gh# environment variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment