Download latest version here: https://goo.gl/EYStRG (open->right click->save as)
This is a handy script to automatically set up an Ubuntu dev machine on your chromebook. The Ubuntu will be installed in a chroot along with your current Chrome operating system (you can run two operating systems in parallel). The Crouton project is developed/maintained by David Schneider @ https://github.com/dnschneid
This script is made for AMD64 processors, if you have an ARM processor some packages will not function. Fully tested on Acer Chromebook 14.
Your Chromebook must be in developer mode in order to use this script. It is also highly recommended that you install the crouton chrome extension for added functionality including a shared clipboard between operating systems. You may get the latest version directly from the chrome store
Resources to check out
Type | Link |
---|---|
Crouton GitHub | https://github.com/dnschneid/crouton |
Crouton Cheatsheet | https://github.com/dnschneid/crouton/wiki/Crouton-Command-Cheat-Sheet |
Crouton Wiki | https://github.com/dnschneid/crouton/wiki |
A chroot is basically a special directory on your computer which prevents applications, if run from inside that directory, from accessing files outside the directory. In many ways, a chroot is like installing another operating system inside your existing operating system.
Technically-speaking, chroot temporarily changes the root directory (which is normally /) to the chroot directory (for example, /var/chroot). As the root directory is the top of the filesystem hierarchy, applications are unable to access directories higher up than the root directory, and so are isolated from the rest of the system. This prevents applications inside the chroot from interfering with files elsewhere on your computer.
Note that it is possible for software from outside the chroot to access files inside the chroot.
After placing your Chromebook into developer mode, launch a crosh terminal by hitting CTRL+ALT+T
then type in the following commands:
shell
sudo sh ~/Downloads/getUbuntu.sh
After the installation is complete you can launch Ubuntu by opening a crosh terminal CTRL+ALT+T
and executing:
shell
sudo startxfce4
If you want to be able to close the crosh terminal without Ubuntu un-mounting itself as a consequence use the following:
shell
sudo startxfce4 -b
To switch between operating systems hit CTRL+ALT+SHIFT+FORWARD
or CTRL+ALT+SHIFT+BACKWARDS
.
It's important to logout from Ubuntu once before powering down your system to avoid potential corruption to the mounted root.
I've updated ChromeOS and Ubuntu is acting up
If you want to run a full update of the Ubuntu installation in your chroot or you've updated ChromeOS and Ubuntu is not working properly anymore then run the following from crosh
shell
sudo sh ~/Downloads/getUbuntu.sh -u