First, getthe name of the distribution:
grep ^NAME /etc/*release
It will say something like “Amazon Linux” or “Amazon Linux AMI”.
sudo vim /etc/yum.repos.d/mongodb-org-4.2.repo
# 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/*release
It 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://[email protected]/"]
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 --cask
CTRL+~
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"]
}
# 1. Get the latest kubectl version: | |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | |
# 2. Get checksum | |
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" | |
# 3. Validate | |
echo "$(<kubectl.sha256) kubectl" | sha256sum --check | |
# should output: “kubectl: OK” |
# 1. First, make sure that you have Docker installed and running: | |
# ref: https://gist.github.com/v0lkan/537a8ed74b6e765b97323ff98c1a075a | |
# 2. Install minikube | |
# ref: https://minikube.sigs.k8s.io/docs/start/ | |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | |
sudo install minikube-linux-amd64 /usr/local/bin/minikube | |
# 3. Start minikube | |
minikube start --driver=docker |
# ref: https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user | |
sudo groupadd docker | |
sudo usermod -aG docker ${USER} | |
su -s ${USER} | |
# If that does not work, try this: | |
# newgrp docker |
About
This is a collection of recipes that I gather from various sources.
It is NOT a replacement for the official docs. I maintain them at a “best effort” basis.
I also provide links to official references in these recipes whenever applicable.
Enjoy, and may the source be with you 🦄.