A Chrome extension for running Linux commands at ChromeOS startup, without the need of developer mode
- Run Linux commands in Crostini when ChromeOS boots
- Start
termina
(the underlying VM of Crostini) with custom kernel and kernel parameters
- Run shell commands on ChromeOS boots
- Enter your crouton chroot right after logging in
Important
This extension conflicts with Secure Shell extension (development version). (as this extension used its ID)
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
) and unzip it - Go to
chrome://extensions
and enable Developer Mode - Click
Load unpacked extension
and select theChromeOS-AutoStart-<version>
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
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.
This project including all of its source files is released under the terms of GNU General Public License (version 3 or later).