Skip to content

Instantly share code, notes, and snippets.

@mkg20001
Last active March 4, 2022 01:58
Show Gist options
  • Save mkg20001/ad3fd73ee0224aa63ff85a331227a264 to your computer and use it in GitHub Desktop.
Save mkg20001/ad3fd73ee0224aa63ff85a331227a264 to your computer and use it in GitHub Desktop.
Download Chrome OS Flex on Linux

chrome-os-flex-downloader

You're on linux, the Chrome OS Recovery Utility isn't supported, but you'd still want to try Chrome OS Flex? Worry no more!

(NOTE: I'm aware of Googles offical Linux script, but that one is "in maintaince mode" and also doesn't have flex)

usage

Install the following packages: jq, curl, wget, unzip (most, if not all, should be preinstalled)

Then run the script

curl -Ls https://gist.githubusercontent.com/mkg20001/ad3fd73ee0224aa63ff85a331227a264/raw/213bf1b06d45107dbf65b97a0e1a8d9584341fcb/downloader.sh | bash -

It'll do it's job.

Afterwards flash the .bin file to some flash drive.

sudo dd if=*.bin of=/dev/sdX oflag=direct bs=16M # replace X with your target device

QEMU doesn't want to work so far, so just try on some real hardware.

#!/bin/sh
set -euo pipefail
URL=$(curl https://dl.google.com/dl/edgedl/chromeos/recovery/cloudready_recovery.json | jq ".[] | select(.manufacturer = \"https://dl.google.com/dl/edgedl/chromeos/recovery/cloudready_recovery.json\") | select(.channel = \"dev-channel\") | .url" -r)
FILE=$(basename "$URL")
wget "$URL" -O "$FILE"
unzip "$FILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment