Skip to content

Instantly share code, notes, and snippets.

View ashiwanikumar's full-sized avatar
🎯
Focusing

Ashiwani Kumar ashiwanikumar

🎯
Focusing
View GitHub Profile

Setting Up Chromium and ChromeDriver for Browser Automation on Ubuntu

This guide explains how to properly set up Chromium and ChromeDriver on Ubuntu servers for browser automation tasks using tools like Selenium WebDriver.

The Problem with Ubuntu's Default Chromium Package

On Ubuntu (especially 20.04 and newer), the chromium-browser package in the default repositories is actually just a transitional package that redirects to the Snap version. This Snap-packaged version of Chromium runs in a confined environment with restricted filesystem access, which often causes permission issues when used with browser automation tools.

Common errors you might encounter with the Snap version include:

  • cannot create default profile directory
@ashiwanikumar
ashiwanikumar / ec2-express.md
Created May 13, 2023 11:04 — forked from dPacc/ec2-express.md
EC2 - ExpressJS Server Setup with Custom Domain