Last active
March 27, 2021 03:12
-
-
Save damusix/8175fd4028d205abe1c60ec648033408 to your computer and use it in GitHub Desktop.
Setup a linux laptop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /tmp | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release \ | |
jq \ | |
zsh | |
# Using Brave browser for dev | |
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add - | |
# Docker | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
# VS Code | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | |
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list | |
echo \ | |
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list | |
sudo apt update | |
sudo apt install -y \ | |
brave-browser \ | |
docker-ce \ | |
docker-ce-cli \ | |
containerd.io \ | |
code | |
# docker compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.6/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# docker permissions | |
sudo groupadd docker | |
sudo usermod -a -G docker adalphuns | |
newgrp docker | |
# aws | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
unzip awscliv2.zip | |
sudo ./aws/install | |
# oh my zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# pulumi | |
curl -fsSL https://get.pulumi.com | sh | |
echo "\nexport PATH=$PATH:~/.pulumi/bin;\n" >> ~/.oh-my-zsh/custom/path.zsh | |
# custom .env loader on cd | |
curl https://gist.githubusercontent.com/damusix/ba1042a15ea9294ced800d30c8e58390/raw/3d855face12aca83f5624a2f5883a3b431384adb/cd.zsh > ~/.oh-my-zsh/custom/cd.zsh | |
# set python3 as the default python | |
echo "\nalias python='python3';\n" >> ~/.oh-my-zsh/custom/alias.zsh | |
# enable python execs into path | |
echo "\nexport PATH=$PATH:~/.local/bin;\n" >> ~/.oh-my-zsh/custom/path.zsh | |
# get pip | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
python get-pip.py --user | |
# install ansible | |
python -m pip install --user ansible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment