Topics

Run chrome with a virtual X server on Ubuntu

Install configure and run a virtual X Server for Chrome on Ubuntu server using this script.

#!/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
nohup 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

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close