Desktop IDE running on Chromebook via chroot

I wanted to share how relatively simple it is to get the Desktop IDE running on ChromeOS, even an ARM based Chromebook. :slight_smile:

First off, I want to explain why someone would do this:

  1. there isn't Desktop IDE release that's built for ChromeOS
  2. alternatives to the Desktop IDE have limitations that some of us have bumped into. (see Reviews of ChromeDuino, the Web Editor, etc.)
  3. there are misconceptions that Chromebook/ARM isn't possible / terribly complicated :o (Arduino ide with chrome book - Interfacing w/ Software on the Computer - Arduino Forum)

So now to the steps. Basically you'll be using chroot to allow installation of a confined Linux distribution that can run the Desktop IDE Linux builds. If your aren't familiar with the power and genius of chroot or jails in BSD, see this old school explanation its origin in FreeBSD: jail, section 1.. In the new ChromeOS world, chroot is most easily done via the ChRomium Os Universal chrooT envirONment, or crouton.

Here is how I got the Desktop IDE working on my Chromebook.

  1. Enable Developer Mode*
    There are several guides already but you only need to get to crosh, used in next step. Poking around your Chrome OS Device
  2. Launch ChromeOS developer shell (crosh) -
    press [CRTL][ALT][T]
  3. Launch terminal shell -
$ crosh> shell
  1. Download & verify the chroot install wrapper (crouton) -
    See GitHub - dnschneid/crouton: Chromium OS Universal Chroot Environment
$ sudo sh ~/Downloads/crouton -t list

5a. Determine your Chromebook's architecture for selecting the right chroot architecture (the -a option in next step). Intel based Chromebook's can probably skip this step.

$ uname -m

5b. Install chroot of Ubuntu with target of LXDE GUI based on architecture, if needed. I had to use 32-bit ARM** architecture:

$ sudo sh ~/Downloads/crouton -t lxde -a armhf -n lxde-arm32-chroot
  1. Start the LXDE chroot:
$ sudo startlxde -n lxde-arm32-chroot
  1. Inside the chroot, download & install the architecture specific release of Desktop IDE as usual
  2. Test the Blink sketch, and TADA!
  • contrary to FUD out there, Dev Mode doesn't void your warranty with Google. (Google Product Forums) Google itself created Dev Mode. If you need Google Support, you revert out of Dev Mode. The misconceptions probably arose from people (ab)using Dev Mode to remove/replace ChromeOS itself or modify the bootloader. If you do that, then you're SOL. Replacing/removing ChromeOS or the bootloader isn't required for my process here, but just use of crosh shell that Dev Mode enables.

** Most folks can use the autodetected architecture of your host in step (5a) because many Chromebooks are Intel and the Desktop IDE has both 32bit and 64bit releases. My Chromebook, however, is a 64bit ARM but the ARM release of Desktop IDE is embedded with 32bit Java. There is a Github Issue tracking a 64bit release of ARM but my steps above, (5a) and (5b), work around this blocker: AArch64 (64-bit ARM support) · Issue #7302 · arduino/Arduino · GitHub
BTW, crouton can install 4 architectures of chroots. See crouton/defaults at master · dnschneid/crouton · GitHub

1 Like

Thanks for sharing.

I wonder should this be moved to the Exhibition / Gallery section?

...R

Great; thanks for sharing.

Can't judge if it works as I don't have a chromebook.