-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathothers.bash
executable file
·82 lines (71 loc) · 2.23 KB
/
others.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Install Chrome
if ! command_exists google-chrome; then
curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb --output google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt install -f -y
rm google-chrome-stable_current_amd64.deb
else
echo "google-chrome is already installed."
fi
# Install Discord
if ! command_exists discord; then
wget https://dl.discordapp.net/apps/linux/0.0.81/discord-0.0.81.deb
sudo dpkg -i discord-0.0.81.deb
sudo apt-get install -f -y
rm discord-0.0.81.deb
else
echo "discord is already installed."
fi
# Install Postman
if ! command_exists postman; then
wget -O postman.tar.gz https://dl.pstmn.io/download/latest/linux64
sudo tar -xzf postman.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman
rm postman.tar.gz
sudo echo '[Desktop Entry]
Name=Postman
GenericName=Postman
Comment=Postman API Tool
Exec=/usr/bin/postman
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
' > /usr/share/applications/postman.desktop
else
echo "Postman is already installed."
fi
# Install qBittorrent
if ! command_exists qbittorrent; then
sudo apt install -y qbittorrent
else
echo "qBittorrent is already installed."
fi
# Install Spotify
if ! command_exists spotify; then
# https://www.spotify.com/de-en/download/linux/
curl -sS https://download.spotify.com/debian/pubkey_C85668DF69375001.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get update && sudo apt-get install spotify-client
else
echo "Spotify is already installed."
fi
# Install VLC
if ! command_exists vlc; then
sudo apt-get install -y vlc
else
echo "VLC is already installed."
fi
# Install Zoom
if ! command_exists zoom; then
wget -O "zoom_latest_amd64.deb" "https://zoom.us/client/latest/zoom_amd64.deb"
sudo dpkg -i zoom_latest_amd64.deb
sudo apt-get install -f -y
rm zoom_latest_amd64.deb
else
echo "Zoom is already installed."
fi