Once you've acquired your development hardware, the next step is to ensure your development environment is capable of downloading and building the code. This includes ensuring runtime hardware needs, package management, and Git configuration.
You may have 128GB of RAM and a 2TB harddrive, but if all of those resources are being consumed, you will have a hard time developing ChromiumOS.
Check for at least 64GB of free memory:
$ free -gh
chromiumos repositories each require roughly 200GB of disk
space including source files and build artifacts. Ideally you should aim for at
least 500GB of free space on the mount which hosts your development directory:
$ df -BG
To make sure you have the most up-to-date packages installed (or a similar command if using a different package manager):
$ sudo apt update
Googlers only: If you receive the error
Could not resolve 'external-repositories-are-not-allowed.google.com', follow these instructions. You may need to run
sudo glinux-updaterto resolve the issue.
Install Git if necessary:
$ sudo apt-get install git
Determine the name and e-mail address you intend to use for development, and configure those values with Git. This will likely be an @chromium.org account if you have one. Use your corporate email address if advised by your company (e.g., @google.com address for Googlers).
$ git config --global user.email "email@example.com" $ git config --global user.name "Your Name"
depot_tools is a collection of tools that simplify
development of Chromium, some of which are essential to the development flow.
depot_tools and add the location of the tools to your environment's
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $ echo 'PATH="$PWD/depot_tools:$PATH' >> ~/.bashrc $ source ~/.bashrc
Note that it is important to put the path to
depot_tools at the beginning of the
PATH to ensure that only the binaries in this location are used, avoiding
conflicts with other binaries of the same name in another location.
You're now ready to download the code necessary to build and deploy ChromiumOS.