DEV Community

Cover image for Use Google Chrome in Ubuntu on Windows Subsystem Linux
Scott Spence
Scott Spence

Posted on • Originally published at scottspence.com

2 1

Use Google Chrome in Ubuntu on Windows Subsystem Linux

This is a specific usecase for installing Google Chrome in Ubuntu on WSL.

On Ubuntu, Snap is the preferred method to install Chromium and
although snap is on the WSL image you get from the Microsoft store
it's not functional. There is a solution untested by me that may
work.

There's a nice post from Greg Brisebois on getting set up for
Selenium in WSL and this is partly pulled from there, if you want to use it for Selenium then check out his post.

ℹ Prerequisites for this is that you are already set up to use GUIs on WSL, if you've not done that then check out this post.

Here's a video detailing the process:

Dependencies, make sure you're up to date first:

sudo apt update && sudo apt -y upgrade && sudo apt -y autoremove
Enter fullscreen mode Exit fullscreen mode

Download and install Chrome:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt -y install ./google-chrome-stable_current_amd64.deb
Enter fullscreen mode Exit fullscreen mode

Check that it's installed ok:

google-chrome --version
Enter fullscreen mode Exit fullscreen mode

Done! Now it can be used either from the command line google-chrome and with CLI tools like Cypress, Playwright, Puppeteer etc.

There's also a really detailed post on getting Chromium set up on Linux from Addictive Tips.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more