Skip to content

An extension for running Linux commands at ChromeOS startup.

License

Notifications You must be signed in to change notification settings

supechicken/ChromeOS-AutoStart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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). (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 the ChromeOS-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

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).