Last active
August 30, 2023 14:29
-
-
Save ajdinmore/b6f884b6834ff37bb50e9e6cda45468a to your computer and use it in GitHub Desktop.
Laptop apps install script (work in progress)
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
#!/bin/bash | |
if [ "$(id -u)" -ne 0 ]; then | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
newgrp docker | |
xdg-open ~/Downloads &> /dev/null & | |
xdg-open 'https://www.gitkraken.com/download/linux-deb' &> /dev/null & | |
xdg-open 'https://www.jetbrains.com/toolbox-app/download/download-thanks.html?platform=linux' &> /dev/null & | |
xdg-open 'https://slack.com/intl/en-gb/downloads/linux' &> /dev/null & | |
sudo $(readlink -f $0) | |
else | |
apt update | |
apt -y install ca-certificates curl gnupg \ | |
libfuse2 libxi6 libxrender1 libxtst6 mesa-utils libfontconfig libgtk-3-bin tar | |
add-apt-repository ppa:git-core/ppa | |
install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
chmod a+r /etc/apt/keyrings/docker.gpg | |
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | |
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ | |
tee /etc/apt/sources.list.d/docker.list > /dev/null | |
curl -sS https://download.spotify.com/debian/pubkey_7A3A762FAFD4A51F.gpg | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg | |
echo "deb http://repository.spotify.com stable non-free" | tee /etc/apt/sources.list.d/spotify.list | |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | tee /etc/apt/trusted.gpg.d/chrome.gpg | |
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
apt update | |
apt -y install git openvpn \ | |
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \ | |
spotify-client google-chrome-stable | |
fi |
Author
ajdinmore
commented
Jul 13, 2023
•
WIP (doesn't work)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment