ResuMeister / setup.sh
Somenath Burnwal
add setup script
dcd5d26
raw
history blame contribute delete
828 Bytes
#!/bin/bash
# Update package lists
apt-get update
# Install dependencies
apt-get install -y wget unzip
# Install Google Chrome
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list'
apt-get update
apt-get install -y google-chrome-stable
# Install ChromeDriver
CHROME_VERSION=$(google-chrome --version | grep -oP '[\d\.]+')
CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)
wget https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
mv chromedriver /usr/local/bin/chromedriver
chmod +x /usr/local/bin/chromedriver
# Clean up
rm chromedriver_linux64.zip