-
-
Save ForumPlayer/d27b64e7e55bcd4eacbf4f7803d156c2 to your computer and use it in GitHub Desktop.
Scripts to install Linux software easily
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 | |
apt update && apt install ca-certificates curl gnupg lsb-release | |
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) 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 update && apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin |
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 | |
sudo rm -Rf /opt/firefox-developer* 2> /dev/null | |
sudo rm -Rf /usr/bin/firefox-developer 2> /dev/null | |
sudo rm -Rf /usr/share/applications/firefox-developer.desktop 2> /dev/null | |
LANG=${LANG%.*} | |
LANG=${LANG/_/-} | |
wget "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=$LANG" -O firefox-developer.tar.bz2 | |
sudo tar -jxvf firefox-developer.tar.bz2 -C /opt/ | |
sudo mv /opt/firefox*/ /opt/firefox-developer 2> /dev/null | |
sudo ln -sf /opt/firefox-developer/firefox /usr/bin/firefox-developer 2> /dev/null | |
sudo echo -e '[Desktop Entry]\n Version=yy.y.y\n Encoding=UTF-8\n Name=Mozilla Firefox Developer Edition\n Comment=Navegador Web\n Exec=/opt/firefox-developer/firefox\n Icon=/opt/firefox-developer/browser/chrome/icons/default/default128.png\n Type=Application\n Categories=Network' | sudo tee /usr/share/applications/firefox-developer.desktop | |
sudo chmod +x /usr/share/applications/firefox-developer.desktop 2> /dev/null | |
echo "Done." |
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 | |
curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/debian/11/amd64/latest/salt-archive-keyring.gpg && \ | |
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/debian/11/amd64/latest bullseye main" > tee /etc/apt/sources.list.d/salt.list && \ | |
apt update && apt install salt-minion -y |
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/sh | |
# Add the release PGP keys: | |
sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg | |
# Add the "stable" channel to your APT sources: | |
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list | |
# Increase preference of Syncthing's packages ("pinning") | |
printf "Package: *\nPin: origin apt.syncthing.net\nPin-Priority: 990\n" | sudo tee /etc/apt/preferences.d/syncthing | |
# Update and install syncthing: | |
sudo apt-get update | |
sudo apt-get install syncthing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment