-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_browsers
executable file
·22 lines (18 loc) · 1.02 KB
/
install_browsers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
export NEEDRESTART_MODE=a
if ! dpkg-query -W -f='${Status}' google-chrome-stable >/dev/null; then
echo "Installation Chrome"
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb
sudo apt-get install -y /tmp/chrome.deb >/dev/null
fi
if ! dpkg-query -W -f='${Status}' brave-browser >/dev/null; then
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt-get update >/dev/null
sudo apt-get install -y brave-browser >/dev/null
fi
if ! dpkg-query -W -f='${Status}' torbrowser-launcher >/dev/null; then
echo "Installation Tor"
sudo apt-get install -y torbrowser-launcher >/dev/null && torbrowser-launcher >/dev/null
fi