Yassmen commited on
Commit
eff4f4c
1 Parent(s): 28dedde

Create setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +17 -0
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