-
Notifications
You must be signed in to change notification settings - Fork 0
/
Installer.sh
89 lines (80 loc) · 2.66 KB
/
Installer.sh
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
83
84
85
86
87
88
89
#!/bin/bash
echo "Welcome to The_Installer"
sleep 1
echo "You can download any application on your Linux distro"
sleep 1
echo -e "Select an option to install: \n1) Visual Studio Code\n2) Brave Browser\n3) Chrome\n4) Zsh Shell\n5) Build-Essential\n6) VLC Media Player"
read -p "Enter your choice: " OPTION
case $OPTION in
1)
echo "Installing Visual Studio Code..."
sudo snap install --classic code > file.txt 2>&1
if [ $? -eq 0 ]; then
echo "Visual Studio Code Installed Successfully"
code --version
else
echo "Failed to install Visual Studio Code. Check file.txt for error logs."
fi
;;
2)
echo "Installing Brave Browser..."
sudo apt install apt-transport-https curl > file.txt 2>&1
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add - > file.txt 2>&1
echo "deb [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 update > file.txt 2>&1
sudo apt install brave-browser > file.txt 2>&1
if [ $? -eq 0 ]; then
echo "Brave Browser Installed Successfully"
else
echo "Failed to install Brave Browser. Check file.txt for error logs."
fi
rm file.txt
;;
3)
echo "Installing Chrome..."
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb > file.txt 2>&1
sudo dpkg -i google-chrome-stable_current_amd64.deb > file.txt 2>&1
if [ $? -eq 0 ]; then
echo "Chrome Installed Successfully"
else
echo "Failed to install Chrome. Check file.txt for error logs."
fi
rm file.txt
;;
4)
echo "Installing Zsh Shell..."
sudo apt-get update > file.txt 2>&1
sudo apt-get install zsh > file.txt 2>&1
if [ $? -eq 0 ]; then
echo "Zsh Shell Installed Successfully"
else
echo "Failed to install Zsh Shell. Check file.txt for error logs."
fi
rm file.txt
;;
5)
echo "Installing Build-Essential..."
sudo apt update > file.txt 2>&1
sudo apt install build-essential > file.txt 2>&1
if [ $? -eq 0 ]; then
echo "Build-Essential Installed Successfully"
else
echo "Failed to install Build-Essential. Check file.txt for error logs."
fi
rm file.txt
;;
6)
echo "Installing VLC..."
sudo apt install snapd > file.txt 2>&1
sudo snap install vlc > file.txt 2>&1
if [ $? -eq 0 ]; then
echo "VLC Installed Successfully"
else
echo "Failed to install VLC. Check file.txt for error logs."
fi
rm file.txt
;;
*)
echo "Exiting..."
;;
esac