Running Linux Apps on a Chromebook

Running Linux Apps on a Chromebook

The advent of the Chromebook was a big deal for American education systems, allowing them to buy low-cost laptops for students, teachers, and administrators. Although Chromebook have always run a Linux-based operating system (Chrome OS), until recently, most Linux applications could not run on them. However, that all changed when Google released Crostini - A virtual machine that allows you to run Linux OS (beta) on your Chromebook.

Most Chromebooks released after 2019, as well as some older models, are Crostini and Linux (beta) capable. To see if your Chromebook is on the list of supported devices, you can here. Luckily, my Acer Chromebook 15 with 2GB RAM and an Intel Celeron processor is supported.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

If you plan on installing a lot of Linux apps, I recommend using a Chromebook with 4 GB of RAM and more free disk space.

Linux setup (beta)

Once logged into your Chromebook, move your mouse cursor to the bottom right corner of the screen where the clock is located and left-click. A panel will open, at the top of which the options will be listed (from left to right): exit, shutdown, lock and open settings. Select the options icon (Settings).

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

On the left side of the panel Settings you will see in the list Linux (Beta).

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

Click on Linux (Beta) and the option to launch it will appear in the main panel. Click on the button Turn on.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

This will start the process of setting up a Linux environment on your Chromebook.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

You will then be prompted to enter Username and the desired Linux installation size.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

It will take a few minutes to install Linux on your Chromebook.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

After the installation is complete, you will be ready to start working with Linux on your Chromebook. There is a shortcut in the menu bar at the bottom of your Chromebook display terminal - a text interface that can be used to interact with Linux.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

You can use standard Linux commandsEg ls, lscpu ΠΈ topto get more information about the environment. Applications are installed by the command sudo apt install.

Installing the first Linux application

The ability to install and run free and open source software on a Chromebook allows for a wide range of possibilities.

First of all, I recommend installing the application Mu editor for python. Install it by typing the following into the terminal:

$ sudo apt install mu-editor

It takes a little over five minutes to install, but you'll end up with a great Python code editor.

I have used with great success Mu and Python as a learning tool. For example, I taught my students to write code for the Python turtle module and execute it to create graphics. I was frustrated that it was not possible to use Mu with an open hardware board BBC:Microbit. Even though the Microbit connects to USB and the Chromebook's Linux virtual environment has USB support, I couldn't get it to work.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

After installing the application, it will be displayed in a special menu LinuxApps, which is shown in the lower right corner of the screenshot.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

Installing other applications

You can install not only a programming language with a code editor. In fact, you can install most of your favorite open source applications.

For example, you can install the LibreOffice package with this command:

$ sudo apt install libreoffice

Open source audio editor Audacity is one of my favorite learning apps. My Chromebook's microphone works with Audacity, making it easy for me to create podcasts or edit free sounds from Wikimedia Commons. Installing Audacity on a Chromebook is easy - after launching the Crostini virtual environment, open a terminal and type the following:

$ sudo apt install audacity

Then launch Audacity from the command line or find it under LinuxApps Chromebook menu.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

I also easily installed TuxMath ΠΈ TuxType - a couple of wonderful educational programs. I even managed to install and run the image editor GIMP. All Linux applications are taken from the Debian Linux repositories.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

File transfer

Linux (beta) has a utility for backing up and restoring files. You can also transfer files between a Linux virtual machine (beta) and a Chromebook by opening the Chromebook app Files and right clicking on the folder you want to transfer. You can transfer all files from your Chromebook or create a dedicated folder for shared files. While in a Linux virtual machine, the folder can be accessed by navigating to /mnt/chromeos.

Running Linux Apps on a Chromebook
(Don Watkins, CC BY-SA 4.0)

Additional Information

Documentation for Linux (beta) is very detailed, so read it carefully to learn about the possibilities. Here are some important aspects taken from the documentation:

  • Cameras are not yet supported.
  • Android devices are supported via USB.
  • Hardware acceleration is not yet supported.
  • There is access to the microphone.

Do you use Linux apps on your Chromebook? Tell us about it in the comments!

As advertising

VDSina offers servers for rent for any tasks, a huge selection of operating systems for automatic installation, it is possible to install any OS from your own ISO, comfortable Control Panel own development and daily payment.

Running Linux Apps on a Chromebook

Source: habr.com

Add a comment