Debian On Acer Chromebook 14

These are my notes from migrating my Chromebook (codename Edgar) from postmarketOS (pmOS) to Debian. I’m using the laptop as my dev machine and a glibc-based system is more straightforward for this. Additionally, Debian is small enough for good performance on this machine.

eMMC Wear Reduction

As documented in my notes from installing pmOS, Edgar uses eMMC for storage, and eMMC wears relatively poorly, so the goal is to avoid excessive or unnecessary writes.

See my earlier notes linked above for general guidance. For now, the notes below only concern on Firefox, since that’s what I’m focusing on at the moment.

Firefox ESR

Gnome comes with Firefox ESR by default, and it performs relatively well, so I use it as my primary browser.

Edgar only has 4gb of RAM, so we can’t simply use a tool like profile-sync-daemon to manage a browser profile in RAM.

Configuration

Preference NameValuePurpose
browser.cache.disk.parent_directory/tmp/firefox-cacheCreate a new string preference configuring Firefox to persist to /tmp, which is backed by tmpfs in RAM
browser.cache.disk.enabletrueEnsure this is true so Firefox uses the new tmp dir
browser.sessionstore.max_tabs_undo0Don’t save tab state
browser.sessionstore.max_windows_undo0Don’t save window state
browser.sessionstore.resume_from_crashfalseDon’t restore session after a crash
browser.startup.page1Loads a blank page/home page, as opposed to 3, which restores the session
browser.sessionstore.privacy_level2Don’t save form data and scroll positions.
storage.nfs_filesystemtrueUse alternative locking mechanisms for its SQLite databases, lowering synchronous write strain.
datareporting.healthreport.uploadEnabledfalseDisable background logging and health report uploads.
toolkit.telemetry.enabledfalseDisable background telemetry metrics gathering.
browser.safebrowsing.downloads.enabledfalseDisable background database syncing for file downloads.

Software

Install uBlock Origin to generally reduce load.

Dev Env

Node

Install via NVM, since it’s recommended by NPM and the installation is much lighter than the one via apt.

VSCodium

I’ve documented use of VSCodium before, but I’ll just note here to install via apt to minimize installation overhead.