Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/supechicken/chromeos-autostart

An extension for running Linux commands at ChromeOS startup.
https://github.com/supechicken/chromeos-autostart

chromeos chromiumos crew crouton hacktoberfest tools

Last synced: 8 days ago
JSON representation

An extension for running Linux commands at ChromeOS startup.

Awesome Lists containing this project

README

        


logo

ChromeOS AutoStart


A Chrome extension for running Linux commands at ChromeOS startup, without the need of developer mode


## What can it do?
#### If you are using Crostini, you can...
- Run Linux commands in Crostini when ChromeOS boots
- Start `termina` (the underlying VM of Crostini) with custom kernel and kernel parameters

#### If you are in ChromeOS developer mode, you can...
- Run shell commands on ChromeOS boots
- Enter your crouton chroot right after logging in

## Installation
> [!IMPORTANT]
> This extension conflicts with [Secure Shell extension (development version)](https://chrome.google.com/webstore/detail/algkcnfjnajfhgimadimbjhmpaeohhln). (as this extension [used its ID](#How-does-it-works))
>
> Please remove it before installing this extension (if installed), otherwise this extension might not work as expected

- Download [the latest release of this extension (in `zip`)](https://github.com/supechicken/ChromeOS-AutoStart/releases/latest) and unzip it
- Go to `chrome://extensions` and enable Developer Mode
- Click `Load unpacked extension` and select the `ChromeOS-AutoStart-` unzipped folder
- A new window will appear and add command(s) you want to run at startup
- Optional: Click the `Test run` button to test it out after adding a command

> [!NOTE]
> Please do not delete the unzipped folder after loading the extension, otherwise the extension will get deleted after reboot

## How does it works?

There is a Chrome extension API called `chrome.terminalPrivate` which can be used to interact with the `crosh` shell, and it is only available on some extensions that are
made by Google (Secure Shell, Chromebook Recovery Utility, etc). However, we can use one of those extension's ID keys to get access to that API. (key from Secure Shell is used in this extension)

The `chrome.runtime.onStartup` listener is used to start the terminal API above automatically when ChromeOS UI starts.

## License
This project including all of its source files is released under the terms of [GNU General Public License (version 3 or later)](http://www.gnu.org/licenses/gpl.txt).