Enabling Zed on Chromeos

Zed requires a GPU for the best performance - enabling this on a Chromebook can be tricky. Here is what I’ve found to do.

In the crostini terminal:

# First, update your apt sources:
$ sudo apt edit-sources
  deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
# Then update your apt sources
$ sudo apt update
# Install the GPU drivers
$ sudo apt install mesa-vulkan-drivers/bookworm-backports

In your chrome://flags update the option #crostini-gpu-support to ‘Enabled’

Restart ChromeOS and you should be all set to go!