Crouton: How to run Linux applications in Chrome OS Windows or browser tab (Chromebook)

Croton It is a tool that can easily install Ubuntu or Debian in the chroot environment of any Chromebook model. This article explains how to run Linux applications on Chrome OS (using Crouton) without running the entire Linux desktop.
Following the instructions in this article, you will be able to open Linux applications in the Chrome OS window or in the new Chrome browser tab.
It should be noted that Linux applications running in Chrome OS windows or tabs via Crouton are not GPU accelerated.
In addition, it is best to exit the application from the application File > Quit Menu item instead of closing the window by clicking the X Window button. by using Quit Menu item, the chroot exists correctly, and you do n’t have to worry about losing any settings that may have been changed in the application you are using.

Atom editor running in the Chrome OS window (on a Chromebook) via Crouton

In order to be able to launch Linux applications in the window at the top of the Chrome OS or in the Chrome browser tab, if you have not installed the xiwi target, you need to install the xiwi target. You also need Breadcrumb integration Chrome browser extension 1. Install xiwi crouton target
If you have installed Ubuntu on a Chromebook using Crouton, you can add the xiwi target to an existing chroot by opening crosh on the Chrome OS Ctrl + Alt + T To open it), and then type:

shell
sudo sh ~/Downloads/crouton -t xiwi -u -n 

Where chrootname Yes … chroot name. Usually the codename of the Ubuntu version- xenial By default (Ubuntu 16.04), unless you specify another Ubuntu version (for example bionic For example, corresponding to Ubuntu 18.04 LTS).
If you do n’t know the chroot name, you can use the following command to list all the chroots installed with Crouton on your Chromebook:

sudo edit-chroot -al

If you only intend to use Crouton to launch a single application and do not want a full desktop, you can avoid installing the desktop environment and only use the Crouton install command to install the xiwi target. So you can download Croton, Using Ctrl + Alt + TAnd then run the following command to install only the xiwi target:

shell
sudo sh ~/Downloads/crouton -t xiwi

More information on how to install Crouton (and some basic adjustments) on a Chromebook in this article: How to install Ubuntu Linux on any Chromebook model without replacing Chrome OS (Crouton) 2. Install Crouton integration extension for Google Chrome
You must have the Crouton integrated extension for Google Chrome to use the “xiwi” Crouton target. You can choose from Chrome Web Store.3. Run Linux application in Chrome OS window or tab

PyCharm running in the Chrome OS window
PyCharm running in the Chrome OS window

After installing the chroot of the xiwi target, you can start the Linux application in the Chrome OS window. Press to open crosh on Chromebook Ctrl + Alt + TAnd then enter:

shell
sudo enter-chroot xiwi 

Where executable Is the executable file of the application you want to start. For example, you can start GIMP using the following command:

shell
sudo enter-chroot xiwi gimp

If you have multiple chroots, you can specify in which chroot to start the application by adding the following -n :

shell
sudo enter-chroot -n  xiwi 

The chroot name is the Ubuntu version code, with xenial (Ubuntu 16.04 Xenial Xerus) is the default setting. Once again, if you do n’t know the chroot name, you can use the following command to list all chroots installed on the Chromebook via Crouton:

sudo edit-chroot -al
GIMP running in the Chrome browser tab
GIMP running in the Chrome browser tab

If you want to start the Linux application in the new Chrome tab, use -T xiwi options, like this:

sudo enter-chroot xiwi -T 

But how to install the application when running Crouton xiwi target without desktop environment? In this case, press Ctrl + Alt + T In Chrome OS, then type:

shell
sudo enter-chroot

If you have multiple chroots, please specify the chroot name:

shell
sudo enter-chroot -n 

Then, use the same commands as used in Ubuntu to install the application, add PPA, etc. (but the snapshot package cannot be installed). For example, use the following command to install GIMP:

sudo apt install gimp

Source

Sidebar