Chromebooks have been a game-changer for PreK-12 school systems, enabling them to purchase low-cost laptop computers for students, teachers, and administrators to use. While Chromebooks have always been powered by a Linux-based operating system (Chrome OS), until recently, there was no way to run most Linux apps on one. But that changed when Google released Crostini, a virtual machine that allows Chromebooks to run Linux (Beta).
Most Chromebooks released after 2019 and some earlier models can run Crostini and Linux (Beta). Check this list of supported devices to see if your Chromebook is on it. Fortunately, my Acer Chromebook 15 with 2GB RAM and an Intel Celeron processor is supported.
I recommend using a Chromebook with 4GB RAM and more disk space if you plan to install a lot of Linux applications.
Set up Linux (Beta)
After you sign into your Chromebook, "mouse over" to the lower-right corner of the screen where the clock is displayed, and left-click there. A panel will open with options at the top (from left to right) to sign out, shut down, lock, and open Settings. Choose the Settings icon.
Look on the left side of the Settings panel, and you will see Linux (Beta) listed.
Click on Linux (Beta), and the main panel will change to present an option to launch it. Click the Turn on button.
It will start the process of setting up a Linux environment on your Chromebook.
Next, you will be prompted to enter a Username and the size you want your Linux installation to be.
It takes a few minutes to install Linux on your Chromebook.
After the installation completes, you can use Linux on your Chromebook. The menu bar on the bottom of your Chromebook's display has a shortcut to a terminal, a text-based interface you can use to interact with Linux.
You can use common Linux commands like ls
, lscpu
, and top
to see more of your environment. You can install applications using sudo apt install
.
Install your first Linux application
Being able to install and run free and open source software on a Chromebook can be a real winner for financially constrained school districts.
The first application I recommend installing is the Mu editor for Python. Install it by entering the following into your terminal:
$ sudo apt install mu-editor
It takes a bit over five minutes to install, but in the end, you'll have access to a really good Python editor for students and anyone else who wants to learn Python.
I've had great success using Mu and Python as a learning tool. For example, I have taught my students to write code for Python's turtle module and execute it to create graphics. I was disappointed that I wasn't able to use Mu with a BBC:Microbit open hardware board. Even though the Microbit connects to USB and there is USB support in the Chromebook's Linux virtual environment, I couldn't make it work.
Once you've installed an application, it will show up in a special Linux Apps menu, which you can see on the lower-right of this screenshot.
Install other applications
You can install more than just a programming language and code editor. In fact, you can install most of your favorite open source applications.
For example, you can install the LibreOffice suite with:
$ sudo apt install libreoffice
The open source audio software Audacity is one of my other favorite classroom applications. My Chromebook's microphone works with Audacity, making it easy to create podcasts or edit free sounds from Wikimedia Commons. It's easy to install Audacity on a Chromebook—with the Crostini virtual environment running, open the terminal and enter:
$ sudo apt install audacity
Then launch Audacity from the command line or look for it in the Linux Apps section of the Chromebook menu.
I also easily installed TuxMath and TuxType, a couple of great applications for education. I was even able to install and run the image editor GIMP. All the Linux applications come from Debian Linux repositories.
Share files
There is a utility within Linux (Beta) to back up and restore your files. You can also share files between your Linux (Beta) virtual machine and your Chromebook by opening the Files app on the Chromebook and right-clicking on the folder you want to share. You can choose to share all of your Chromebook files or create a special folder for shared files. While you are in the Linux virtual machine, you can access this folder by browsing to /mnt/chromeos
.
Learn more
The documentation for Linux (Beta) is very complete, so read it thoroughly to learn more about its capabilities. Some key takeaways from the documentation are:
- Cameras are not yet supported.
- Android devices are supported over USB.
- Hardware acceleration is not yet supported.
- You can access the microphone.
Are you using Linux applications on your Chromebook? Tell us all about it in the comments!
8 Comments