I wanted to share how relatively simple it is to get the Desktop IDE running on ChromeOS, even an ARM based Chromebook.
First off, I want to explain why someone would do this:
- there isn't Desktop IDE release that's built for ChromeOS
- alternatives to the Desktop IDE have limitations that some of us have bumped into. (see Reviews of ChromeDuino, the Web Editor, etc.)
- 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.
- 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
- Launch ChromeOS developer shell (crosh) -
- Launch terminal shell -
$ crosh> shell
- 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
- Start the LXDE chroot:
$ sudo startlxde -n lxde-arm32-chroot
- Inside the chroot, download & install the architecture specific release of Desktop IDE as usual
- 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