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 / Complete Guide on Extending LVM with a New Disk and Reconfiguring OS Disk.md
Created July 12, 2024 18:37
Complete Guide on Extending LVM with a New Disk and Reconfiguring OS Disk

Complete Guide on Extending LVM with a New Disk and Reconfiguring OS Disk


Step 1: Scan for New Disks

To detect newly added disks without rebooting, use the following command:

echo "- - -" > /sys/class/scsi_host/host32/scan

Replace host32 with the appropriate host number if different on your system.

@ashiwanikumar
ashiwanikumar / server-update-report.md
Last active October 5, 2023 09:22
Scheduled Server Updates & Get Report from Email

Updating a File:

1. Create a new file named "autoupdate" under /etc/cron.daily/:

Use the vim text editor to create the file:

sudo vim /etc/cron.daily/autoupdate
@ashiwanikumar
ashiwanikumar / ec2-express.md
Created May 13, 2023 11:04 — forked from dPacc/ec2-express.md
EC2 - ExpressJS Server Setup with Custom Domain