We earn commission when you buy through affiliate links.

This does not influence our reviews or recommendations.Learn more.

A step-by-step guide to install Headless Chromium on Ubuntu and CentOS.

What is Headless Chrome?

So, what does headless Chrome unlock for us?

With headless chrome, you might write apps and test those apps with up-to-date rendering.

it’s possible for you to just execute them through the command line.

Below are some of the popularly used flags.

Note this is different from the Chromium internet tool.

Step 2: Install Dependencies

Install these dependencies which are required for the installation.

There might be cases where few dependencies would be missing to install chrome.

So, spin up the command below, it will install all the missing dependencies required to install chromium.

Step 3: Download Chrome

Download the google chrome stable package for the Ubuntu system.

Step 4: Install Chrome

drop in the stable package.

Optional: Run Chrome Headless

Let me show you an example of running chrome in headless mode.

Step 2: Create Chrome Repository

Add google chrome repository to the system.

Create a file google-chrome.repo inside /etc/yum.repos.d/ and add the details below.

Let me show you an example of running chrome in headless mode on CentOS.

I will take the example of capturing a screenshot.