How to install Linux on a Chromebook

The Crouton project makes it simple to install a full Linux desktop operating system on a Chromebook.

IDG

IDG

Chromebooks are capable web-focused PCs, and a great choice for anyone who needs a laptop for travel or working outside the office. Thanks to a wide variety of fully featured web apps—some of which work offline—a Chromebook can cover many of the same use cases as a regular PC.

Of course, there are times when nothing less than the flexibility of a full PC desktop environment will do. A Chromebook can still prove useful in those moments if you set it up to run a traditional Linux desktop operating system. Originally designed with developers in mind, Chromebooks can run a full Linux desktop in either dual-boot mode or as a “chroot.”

Chroot stands for “change root.” It’s a system utility in Unix and Linux environments that separates one set of running processes from another—in this case two different operating systems. You can alternate between the two on-the-fly—no reboot necessary.

Using a chroot is the easiest way to install Linux on a Chromebook thanks to a project called Crouton, and if you ever make a mistake, it’s easy to reset everything back to normal.

First things first

Before you can install Linux on a Chromebook you have to put the machine in developer mode. Like other modern PCs, Chromebooks are locked down to prevent malicious code from running—Google calls its security mechanism “OS verification.” This means you’ll be introducing a certain degree of insecurity to your machine by installing Linux. For a detailed breakdown of the risks check out the Crouton wiki.

Moving to developer mode will also wipe your Chromebook’s hard drive of everything but the operating system. Any personal files will be deleted. If you have files saved locally on your Chromebook, move them to the cloud or copy them to a USB drive before continuing.

Once you’re ready, hold down the Escape and Refresh keys on your Chromebook’s keyboard and then press the power button.

chromeos 1 Ian Paul/PCWorld

For a moment it will look like the process is getting ugly. You’ll see a screen that says Chrome OS is missing or damaged. Ignore it and press Ctrl + D.

chromeos 2 Ian Paul/PCWorld

Now another screen appears asking you to confirm that you want to turn off OS verification. Press Enter to confirm, and wait.

Next, the Chromebook will confirm that OS verification is off. The laptop will then beep twice, and after about 5 to 7 minutes the switch to developer mode will be complete.

chromeos 5 Ian Paul/PCWorld

Next, the Chromebook will reboot and you’ll see a new warning screen that says OS verification is off. Get used to this screen. It will appear every time you boot up your Chromebook. The warning is there to protect novice users in case a device has been tampered with. A quick tap of the space bar resets the Chromebook with OS verification turned on. That’s not what we want. To get past this screen without blowing out developer mode, press Ctrl + D.

Your Chromebook will then boot into Chrome OS as usual. At this point, go through the short process of setting up your Chromebook again before installing Linux.

Installing Crouton

Now it’s time to get your Crouton on. If you’re wondering what Crouton stands for, the developers say it stands for “ChRomium Os Universal chrooT envirONment...or something like that.”

To download Crouton, go to the project’s GitHub repository, and click the “goo.gl” link right at the top of the page. This downloads a simple bash script that will start the installation process.

Once you’ve downloaded the script, tap Ctrl + Alt + T, which will open a new tab with a terminal running. The prompt will say crosh >. Type shell and hit Enter.

Now we’re ready to run Crouton, but before we do let’s talk about how you want to set up the Linux install.

First, you should encrypt your Linux desktop to keep it secure. You also need to decide which desktop you’re going to use with Crouton. The suggested desktop is XFCE since that environment is small in size and won’t be too demanding on a Chromebook processor. In my tests on an Acer Chromebook 14 with a quad-core 1.6GHz processor and 4GB RAM, however, Ubuntu’s default Unity interface worked just fine. Another otpion for anyone who’s feeling hardcore is to install the command-line version of Linux with no graphical interface at all.

To install Crouton with Unity, type the following into your Chromebook terminal and hit Enter: sudo sh ~/Downloads/crouton -e -t unity

Here’s how this command breaks down:

  • sudo provides temporary super user privileges to carry out a command
  • sh says you want to use an sh command language interpreter
  • ~/Downloads/Crouton is the file location for the Crouton script
  • -e tells Crouton you want to encrypt your Linux install. This will also require you to set a Chromium OS shell password
  • -t tells Crouton you are about to specify which desktop you want installed
  • unity tells Crouton to install the Unity desktop

If you want to install command-line Linux, the command would look like this: sudo sh ~/Downloads/crouton -e -t cli-extra

ubuntuinstall Ian Paul/PCWorld

Once you’ve told Crouton what to install, the command line will get to work installing Linux. In my tests, the process took about 30 to 40 minutes. During the installation process you’ll be asked for three different passwords: one to set the root password for your Chromebook, an encryption password for the Linux install, and a username and password for your Ubuntu user account. Make sure to use strong, random passwords to keep your data safe. 

Once the installation is done, you can enter your Linux build by typing the shell command sudo startunity or sudo startcli depending on which Linux desktop you installed. To open Linux after a reboot, enter Chrome OS, tap Ctrl + T to open a Crosh shell, type shell, hit Enter, and then type one of the commands above based on what you’ve installed.

If you ever want to erase a Linux installation type: sudo delete-chroot [name of your chroot such as unity]

That’s all there is to running Linux on a Chromebook. If you ever want to return to a normal Chromebook without Linux, hit the space bar when you come to the warning screen at boot.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Ian Paul

PC World (US online)
Show Comments

Cool Tech

SanDisk MicroSDXC™ for Nintendo® Switch™

Learn more >

Breitling Superocean Heritage Chronographe 44

Learn more >

Toys for Boys

Family Friendly

Panasonic 4K UHD Blu-Ray Player and Full HD Recorder with Netflix - UBT1GL-K

Learn more >

Stocking Stuffer

Razer DeathAdder Expert Ergonomic Gaming Mouse

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Walid Mikhael

Brother QL-820NWB Professional Label Printer

It’s easy to set up, it’s compact and quiet when printing and to top if off, the print quality is excellent. This is hands down the best printer I’ve used for printing labels.

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?