Skip to content

Instantly share code, notes, and snippets.

@shiveshabhishek
Created August 20, 2024 04:58
Show Gist options
  • Save shiveshabhishek/1795a5dc3a682f79be27c45949ac1bd0 to your computer and use it in GitHub Desktop.
Save shiveshabhishek/1795a5dc3a682f79be27c45949ac1bd0 to your computer and use it in GitHub Desktop.
New machine basic tools
#!/bin/bash
sudo apt update
sudo apt install -y curl
sudo apt install -y docker.io
sudo groupadd docker
sudo usermod -aG docker $USER
sudo snap install simplenote
sudo snap install slack
#Install k3d
curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
# Install kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
mv ./kubectl /usr/local/bin/kubectl
echo 'source <(kubectl completion bash)' >>~/.bashrc
echo 'alias k=kubectl' >>~/.bashrc
echo 'complete -o default -F __start_kubectl k' >>~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment