Last active
June 10, 2019 13:05
-
-
Save gadelkareem/3c90b7d55e535d344822e78f3d07ba99 to your computer and use it in GitHub Desktop.
Run chrome with virtual X server on Ubuntu https://gadelkareem.com/2019/06/10/run-chrome-with-a-virtual-x-server-on-ubuntu/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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