You can copy the executable to /usr/local/ or /usr/local/bin/. By default, Chrome OS marks /home/chronos/user/ as noexec, so you will get a Permission denied error.
Next, let’s install a compiler toolchain with: 1 crew install buildessential 2 crew install autconf 3 crew install automakeĬheck the version of GCC installed with: 1 gcc -versionĪn interesting problem appears if you compile a C or C++ program in your home folder and try to run the executable. Open a shell tab and install Chromebrew with: 1 wget -q -O - | bash My suggestion is to not use it, at least for now.Ī good approach, for native Chrome OS development, is to install the compiler toolchain from Chromebrew. Unfortunately, at the time of this writing, dev_install does not provide a compiler toolchain. Running dev-install for example, will allow you to use Python 2.7 on Chrome OS. Read the relevant documentation if you want to know more. You can also install a limited set of development tools by running dev_install in a shell tab.
By default, after you enable the Developer Mode, you have access to a limited set of command line utilities, honorable mentions here for the Bash shell and the Vim editor.
More precisely, Chrome OS is based on Gentoo Linux. If you need more information about enabling the Developer Mode see the first article from this series.Ĭhrome OS is Linux under the hood so, in principle, you can run any standalone Linux binary on it. I assume that you start with a fresh Chromebook and Developer Mode enabled. By native I mean using only applications that run directly on Chrome OS or can be compiled to run on Chrome OS. I think it could be interesting and more challenging for me personally, to investigate if I could do native Chrome OS development.
Running Chrome OS and Crouton side by side is the easiest path for a complete Unix like development experience. For the first two days I’ve played with enabling the Developer Mode on my Chromebook and installing Crouton and GCC 7 for C++17 development. Today is the third day of my Two weeks programming on a Chromebook challenge. Solarian Programmer My programming ramblings Home Archives Contact Privacy Chrome OS native development Posted on Septemby Paul