First, getthe name of the distribution:
grep ^NAME /etc/*releaseIt will say something like “Amazon Linux” or “Amazon Linux AMI”.
sudo vim /etc/yum.repos.d/mongodb-org-4.2.repo
| # ref: https://go.dev/learn/ | |
| curl https://go.dev/dl/go1.19.1.linux-amd64.tar.gz | |
| rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz |
| #!/usr/bin/env bash | |
| curl -fsSL https://get.docker.com -o get-docker.sh | |
| # ^ Read and verify the above script before executing the command below: | |
| sudo sh get-docker.sh | |
| # ref: https://docs.docker.com/engine/install/ubuntu/ |
| # Replace 16 with the version you want to install: | |
| curl -sL https://rpm.nodesource.com/setup_16.x | sudo bash - | |
| # You might need these too: | |
| sudo yum install gcc-c++ make | |
| # Then install node: | |
| sudo yum install nodejs | |
| # Verify node: |
| export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) | |
| export OS=$(uname | awk '{print tolower($0)}') |
| # ref: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally | |
| mkdir ~/.npm-global | |
| npm config set prefix '~/.npm-global' | |
| # Update ~/.profile with this: | |
| export PATH=~/.npm-global/bin:$PATH | |
| # Then source it to use the new $PATH: | |
| source ~/.profile |
First, getthe name of the distribution:
grep ^NAME /etc/*releaseIt will say something like “Amazon Linux” or “Amazon Linux AMI”.
sudo vim /etc/yum.repos.d/mongodb-org-4.2.repo
Have this in your ~/.gitconfig:
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
Make sure you have these environment variables set:
| sudo amazon-linux-extras list | grep nginx | |
| # 38 nginx1=latest disabled [ =stable ] | |
| sudo amazon-linux-extras enable nginx1 | |
| # 38 nginx1=latest enabled [ =stable ] | |
| # Now you can install: | |
| sudo yum clean metadata | |
| sudo yum -y install nginx | |
iterm2:brew install iterm2 --caskCTRL+~ to be Quake-compatible :), choose whatever suits your needs.The easiest way is to edit or create an /etc/docker/daemon.json
similar to the following:
{
"iptables": true,
"dns": ["1.1.1.1", "8.8.8.8"]
}