sebanc / brioche

An alternative to Crostini / Crouton for devices running brunch
GNU General Public License v3.0
72 stars 8 forks source link

Brioche

Brioche is not supported since ChromeOS r118 as sudo is not possible in crosh shell anymore.

Overview

First of all, thanks go to the Crouton maintainers for their work which was actively used when creating this project.

This project consists in providing ChromeOS with an alternative to Crostini and Crouton. It uses the brunch-toolchain as a base which has support for LXC containers. Currently, "debian", "archlinux", "ubuntu", "mint" and "kali" containers variants are available.

Why developing this whereas Crostini and Crouton exist ?

Examples of Brioche use cases:

Does this work on real chromebooks ? Unfortunately no, it seems some of the needed kernel configs for LXC are only available in the crostini vm kernel and not in the main chromeos one.

Warning: Brioche runs privileged containers with direct access to everything on your laptop. As such, your containers need to be treated the same way you would treat any linux distro regarding security, notably being careful with what you install on it and keeping it up-to-date, as any exploited vulnerability within the container would provide system wide access to your device.

Install instructions

  1. Install the brunch-toolchain (refer to https://github.com/sebanc/brunch-toolchain)

  2. Download the brioche script from the master branch of this repo and install it:

    curl -l https://raw.githubusercontent.com/sebanc/brioche/main/brioche -o ~/Downloads/brioche
    install -Dt /usr/local/bin -m 755 ~/Downloads/brioche

Note: To update brioche to a new version, you just need to re-perform step 2. Your existing containers should still work but only newly created ones will benefit from the new features.

Usage

Usage: brioche [container name] [app, cmd, create, destroy, desktop, list-desktops, shell, stop] \

Suggestion to create a first container

Main known issues

Support

Support on Brioche will be limited as it contains the same bugs as the different linux distros it uses. I am counting on the community to help improve/maintain it. Also, the different Linux forums will probably be a great source of information to solve your issues.