Spaces:
Sleeping
Sleeping
Create setup.sh
Browse files
setup.sh
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Install Google Chrome
|
4 |
+
apt-get update
|
5 |
+
apt-get install -y wget gnupg2
|
6 |
+
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
|
7 |
+
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
|
8 |
+
apt-get update
|
9 |
+
apt-get install -y google-chrome-stable
|
10 |
+
|
11 |
+
# Install ChromeDriver
|
12 |
+
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+\.\d+')
|
13 |
+
CHROMEDRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)
|
14 |
+
wget -N https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip
|
15 |
+
unzip chromedriver_linux64.zip
|
16 |
+
mv chromedriver /usr/local/bin/
|
17 |
+
chmod +x /usr/local/bin/chromedriver
|