Skip to content

Instantly share code, notes, and snippets.

@gadelkareem
Last active June 10, 2019 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gadelkareem/3c90b7d55e535d344822e78f3d07ba99 to your computer and use it in GitHub Desktop.
Save gadelkareem/3c90b7d55e535d344822e78f3d07ba99 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
sudo apt-get install libnss3 libappindicator1 fonts-liberation -y
sudo apt --fix-broken install -y
cd /tmp/
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get install xvfb -y
Xvfb :0 -screen 0 1x1x8 &> xvfb.log
export DISPLAY=:0
/usr/bin/google-chrome --disable-gpu --no-sandbox --user-data-dir=/tmp/chr --remote-debugging-port=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment