Skip to content

Instantly share code, notes, and snippets.

@christianbundy
Last active October 22, 2015 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianbundy/41563be3a09bcf38adff to your computer and use it in GitHub Desktop.
Save christianbundy/41563be3a09bcf38adff to your computer and use it in GitHub Desktop.
# IMPORTANT - CHANGE ME (unless you have the Chromebook Pixel 2015)
export BOARD=samus
sudo aptitude install -y git-core gitk git-gui subversion curl
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"
cat > /tmp/sudo_editor <<EOF
#!/bin/sh
echo Defaults \!tty_tickets > \$1 # Entering your password in one shell affects all shells
echo Defaults timestamp_timeout=180 >> \$1 # Time between re-requesting your password, in minutes
EOF
chmod +x /tmp/sudo_editor
sudo EDITOR=/tmp/sudo_editor visudo -f /etc/sudoers.d/relax_requirements
mkdir construction-zone
cd construction-zone
git config --global user.email "bobthebuilder@example.com"
git config --global user.name "Bobthe Builder"
repo init -u https://chromium.googlesource.com/chromiumos/manifest.git
repo sync
cros_sdk -- ./build_packages --board=${BOARD}
cros_sdk -- ./build_image --board=${BOARD}
cros_sdk -- cros flash --board=${BOARD} usb://
vagrant init ubuntu/trusty64
vagrant up
vagrant ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment