title: how tu run puppeteer chromium/chrome `headless:false` on centos 6/7 server
body: <p>I am trying to get some info from a website, the data is not available at the initial load so I need it to be loaded into a browser so I can scrape it.</p>
  
  <p>I am using puppeteer. when I run chromium with <code>headless:false</code> in my centos 7 server I get this error <code>(chrome:5006): Gtk-WARNING **: cannot open display:</code>.</p>
  
  <p>I installed the <code>xorg-x11-server-Xvfb</code> and all the dependencies .</p>
  
  <p>The chromium itself runs when <code>headless:true</code>, but the site I am trying to open gives <code>net::ERR_CONNECTION_RESET</code>.</p>
  
  <p>How can I tell the chromium to use the Xvfb server?? Is it even possible?</p>
  
  <p>My code :</p>
  
  <pre><code>    const browser = await puppeteer.launch({ headless: false, args: ['--no-sandbox'] });
      const page    = await browser.newPage();
      await page.goto('https://targetdomain/', { waitUntil: 'networkidle2' });
  </code></pre>