If you’re a Chromebook user, you know that managing your system is a key part of the experience. But what if you don’t have any admin privileges? Or if you want to keep your Chromebook private? In this article, we’ll show you how to manage the crouton Linux system on your Chromebook. First, create a new directory for your crouton Linux system: mkdir -p /usr/local/crouton/ Next, create a file called crouton.cfg in this directory:
This file contains settings for the crouton Linux system # # You can find it in the /usr/local/crouton directory # # If you want to use a different name for this file, please change it in the file # $HOME/.config/crouton/crouton.cfg $HOME/.config/crouton/etc
Crouton — made by a Google employee — is the ideal solution for running Linux on your Chromebook. If you’re a Crouton user, there are some extra commands you’ll want to know.
We’ve previously shown how to install Linux on a Chromebook with Crouton and how to run that Linux desktop in a Chrome browser window.
Crouton stores the Linux systems you install in “chroots.” You can have multiple chroots. The commands below will help you work with and manage those chroots.
Update: Google has added native support for Linux apps directly to Chrome OS, and this feature is available on many Chromebooks. You don’t need Crouton to run Linux software anymore.
Choose a Target
RELATED: How to Install Ubuntu Linux on Your Chromebook with Crouton
When installing Crouton, you have to specify a target. For example, “sudo sh ~/Downloads/crouton -t xfce,xiwi” installs the Xfce desktop with the software that enables the Chrome OS extension. You’ll find other targets here too — Ubuntu’s Unity desktop, KDE, GNOME, LXDE, Enlightenment, and even command-line only targets like “core” and “cli-extra” if you don’t need a fancy desktop.
Update: This process has changed and you now need to move the Crouton installer to /usr/local/bin before running it. Consult Crouton’s README for more information.
After downloading the Crouton script to your Downloads folder, you can run the following command to see a list of targets:
Pick a Linux Distro and Release
RELATED: How to Run a Full Linux Desktop in a Browser Tab on Your Chromebook
Crouton still uses Ubuntu 12.04 as its default Linux distribution, but you can install other releases of Ubuntu, Debian, or Kali Linux. Specify a release with -r name while running the Crouton command. For example, “sudo sh ~/Downloads/crouton -r trusty -t unity,xiwi” installs a chroot with Ubuntu Trusty, the Unity desktop, and the software that allows the Chrome OS extension to show it in a browser tab.
Run the following command to see a list of Linux distributions and their releases:
Update a Crouton Chroot
When a new version of Crouton comes out, the software in your chroot will be outdated. It won’t automatically update itself, but you can update it fairly quickly.
First, enter your chroot and run the following command. That means this command must be run from that Crouton Linux system:
Next, exit the chroot and run the following command from the Chrome OS shell, replacing “name” with the name of your chroot. If you didn’t specify a name, it’s probably the name of the release you installed — for example, “trusty” or “precise.”
Encrypt a Chroot
When installing a Crouton chroot with the installer script, add -e to the command to encrypt your chroot. You can also re-run the Crouton installer script with the -e switch to encrypt an existing chroot. For example, to update an existing chroot and add encryption, you’d use the same command as above, but add an -e:
Create Multiple Chroots
Crouton allows you to create multiple chroots, so you can experiment with different Linux desktops and distributions. To create a new chroot after you’ve already created one with Crouton, run the Crouton installer script again and add -n to the command. For example, the following command would create a new chroot named testchroot with the LXDE desktop:
Back Up a Chroot
Run the following command to back up a Crouton chroot, replacing “name” with the name of the chroot. This will create an archive in the current directory with your chroot’s files in it.
You can restore the backup later with the following command:
Or, when setting Crouton up from scratch — perhaps you’ve powerwashed your Chromebook and want to get your customized Linux environment back on it — you can run the following command while installing Crouton. The Crouton installer script will restore your chroot from the backup file you provide, so replace “backupfile.tar.gz” with the name of the backup file you want to restore.
Delete a Chroot
Disable developer mode on your Chromebook and it’ll automatically powerwash itself, restoring your Chromebook to its factory state. This will also wipe Crouton and all your Linux chroots. But, if you just want to get rid of one of your Linux chroots, you can run the following command in the Chrome OS shell, replacing name with the name of the chroot.
This information comes from the official Crouton documentation on the Crouton github page. In the interest of helping our readers, we’ve tried to make it a bit easier to digest. If a command here doesn’t work, it’s possible something has changed — head over to the official Crouton site for the latest up-to-date documentation.
Image Credit: TechnologyGuide TestLab on Flickr