Skip to content

Instantly share code, notes, and snippets.

@birgersp
Last active February 6, 2023 12:17
Show Gist options
  • Save birgersp/be9bfc780f4a3bb438abd5a0db8d6ad9 to your computer and use it in GitHub Desktop.
Save birgersp/be9bfc780f4a3bb438abd5a0db8d6ad9 to your computer and use it in GitHub Desktop.
Linux Ubuntu (or Mint) setup
#!/bin/sh
. /etc/upstream-release/lsb-release
# pg admin
PGADMIN_URL="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$DISTRIB_CODENAME"
curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg --yes
sudo sh -c "echo \"deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] $PGADMIN_URL pgadmin4 main\" > /etc/apt/sources.list.d/pgadmin4.list"
# vs code
sudo apt install software-properties-common apt-transport-https wget -y
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
# megasync
curl -fsSL https://mega.nz/keys/MEGA_signing.key | sudo apt-key add -
sudo sh -c 'echo "deb https://mega.nz/linux/MEGAsync/xUbuntu_20.04/ ./" > /etc/apt/sources.list.d/megasync.list'
# powershell
sudo apt install -y wget apt-transport-https software-properties-common
wget -q "https://packages.microsoft.com/config/ubuntu/$DISTRIB_RELEASE/packages-microsoft-prod.deb" -P ~/Downloads
sudo dpkg -i ~/Downloads/packages-microsoft-prod.deb
# misc
sudo add-apt-repository -y ppa:danielrichter2007/grub-customizer
sudo add-apt-repository -y ppa:hluk/copyq
# ulauncher
sudo add-apt-repository -y ppa:agornostal/ulauncher
# discord
sudo -E gpg --no-default-keyring --keyring=/usr/share/keyrings/javinator9889-ppa-keyring.gpg --keyserver keyserver.ubuntu.com --recv-keys 08633B4AAAEB49FC
sudo sh -c "echo \"deb [arch=amd64 signed-by=/usr/share/keyrings/javinator9889-ppa-keyring.gpg] https://ppa.javinator9889.com all main\" > /etc/apt/sources.list.d/javinator9889-ppa.list"
sudo apt update
sudo apt install\
code\
pgadmin4-desktop\
grub-customizer\
python3-pip\
zsh\
xdotool\
imwheel\
snapd\
gitk\
dropbox\
flameshot\
fonts-noto-color-emoji\
copyq\
spotify-client\
megasync\
powershell\
ulauncher\
discord\
-y
sudo flatpak install -y flathub\
com.microsoft.Teams\
com.github.git_cola.git-cola\
org.keepassxc.KeePassXC
sudo snap install\
emote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment