-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
35 lines (27 loc) · 1006 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
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run with sudo"
exit 1
fi
# Download Chrome installer
echo "Downloading Chrome installer..."
wget "https://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/google-chrome-stable_103.0.5060.134-1_amd64.deb" \
-O /tmp/google-chrome-stable_current_amd64.deb
# Install Chrome
echo "Starting install Chromium browser..."
dpkg -i /tmp/google-chrome-stable_current_amd64.deb
# Fix any broken dependencies
apt --fix-broken install
# Download and install ChromeDriver
echo "Downloading ChromeDriver..."
current_path=`pwd`
wget https://chromedriver.storage.googleapis.com/103.0.5060.134/chromedriver_linux64.zip \
-O /tmp/chromedriver_linux64.zip
cd /tmp/;unzip chromedriver_linux64.zip
cp /tmp/chromedriver ${current_path}
# Install mitmproxy using pip3
echo "Installing mitmproxy..."
pip3 install mitmproxy
# Remove the files
rm /tmp/google-chrome-stable_current_amd64.deb
rm /tmp/chromedriver_linux64.zip