-
Notifications
You must be signed in to change notification settings - Fork 45
/
install.sh
45 lines (31 loc) · 978 Bytes
/
install.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
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# echo nameserver 8.8.8.8 | sudo tee /etc/resolv.conf
apt-get update -y
REQUIRED_PKG="unzip"
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $REQUIRED_PKG|grep "install ok installed")
echo Checking for $REQUIRED_PKG: $PKG_OK
if [ "" = "$PKG_OK" ]; then
echo "Setting up $REQUIRED_PKG."
sudo apt-get --yes install $REQUIRED_PKG
fi
REQUIRED_PKG="wget"
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $REQUIRED_PKG|grep "install ok installed")
echo Checking for $REQUIRED_PKG: $PKG_OK
if [ "" = "$PKG_OK" ]; then
echo "Setting up $REQUIRED_PKG."
sudo apt-get --yes install $REQUIRED_PKG
fi
pkill FTT
printf "\n"
printf "\n"
echo "downloading FakeTlsTunnel"
printf "\n"
wget "https://github.com/radkesvat/FakeTlsTunnel/releases/download/V11.5/v11.5_linux_amd64.zip" -O v11.5_linux_amd64.zip
unzip -o v11.5_linux_amd64.zip
chmod +x FTT
rm v11.5_linux_amd64.zip
echo "finished."
printf "\n"