Skip to content

Instantly share code, notes, and snippets.

@hegerdes
Last active June 5, 2022 13:04
Show Gist options
  • Save hegerdes/8b12591119d887f787e14150bc6e7e9d to your computer and use it in GitHub Desktop.
Save hegerdes/8b12591119d887f787e14150bc6e7e9d to your computer and use it in GitHub Desktop.
Debian-Bullseye-personal_setup
# Set sources
echo '# deb cdrom:[Debian GNU/Linux bullseye-DI-rc2 _Bullseye_ - Official Snapshot amd64 NETINST 20210607-15:56]/ bullseye main
# deb cdrom:[Debian GNU/Linux bullseye-DI-rc2 _Bullseye_ - Official Snapshot amd64 NETINST 20210607-15:56]/ focal main restricted
deb https://deb.debian.org/debian/ bullseye main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye main contrib non-free
deb https://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src https://security.debian.org/debian-security bullseye-security main contrib non-free
deb https://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src https://deb.debian.org/debian bullseye-updates main contrib non-free
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
' > /etc/apt/sources.list
# Install basic stuff
apt update && apt upgrade -y
apt install -y curl wget git \
firmware-amd-graphics firmware-iwlwifi firmware-linux-free \
firmware-linux-nonfree firmware-linux firmware-misc-nonfree \
firmware-realtek grub-customizer timeshift bluez zip sudo \
apt-transport-https apt-transport-https ca-certificates curl \
gnupg lsb- htop ufw neofetch tree ranger ssh bash-completion \
unzip less
# Dev Stuff
apt install -y build-essential make g++ gcc git-lfs cmake python3-pip nodejs npm
# Fonts
apt install -y fonts-noto-color-emoji fonts-powerline fonts-noto
# Personal applications
apt install -y keepassxc thunderbird zsh tmux neovim
# vim-link, oh-my-zsh, uluncher ...
update-alternatives --set vim /usr/bin/nvim
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
wget https://github.com/Ulauncher/Ulauncher/releases/download/5.11.0/ulauncher_5.11.0_all.deb
apt install ./ulauncher_5.11.0_all.deb && rm ulauncher_5.11.0_all.deb
# VSCode
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sh -c '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'
rm -f packages.microsoft.gpg
apt install -y code
# Docker + Compose + Podman
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io podman
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
# Kubectl
curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | tee /etc/apt/sources.list.d/kubernetes.list
apt-get update
apt-get install -y kubectl
# Dropbox
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
~/.dropbox-dist/dropboxd& > /dev/null
# Zoom
curl -L https://zoom.us/client/latest/zoom_amd64.deb -o /tmp/zoom_amd64.deb
apt install -y /tmp/zoom_amd64.deb
rm /tmp/zoom_amd64.deb
# Discord - Broken because of missing libappindicator1 dep
# curl -L https://discordapp.com/api/download?platform=linux&format=deb -o /tmp/discord_amd64.deb
# apt install -y /tmp/discord_amd64.deb
# rm /tmp/discord_amd64.deb
# Teams
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sh -c 'echo "deb https://packages.microsoft.com/repos/ms-teams stable main" > /etc/apt/sources.list.d/teams.list'
rm microsoft.gpg
apt update
apt install -y teams
# Edge
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-beta.list'
rm microsoft.gpg
apt update
apt install -y microsoft-edge-beta
# Clone your Dotfiles
# git clone <URL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment