Git Product home page Git Product logo

chromeos-autostart's Introduction

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

chromeos-autostart's People

Contributors

saltedcoffii avatar supechicken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chromeos-autostart's Issues

Hide/close extension after run

Is it possible to hide/close the extension after all commands?
Currently it shows up in the active app drawer even if all commands have been executed.
The started applications should not be closed, just the extension.

Warning on the manifest

Hello,
your extension works wonders, and I believe that for ChromeOS users it pairs with U-Block on the utility podium.
However, by now Chrome signals a warning, nothing to worry about because it does not prevent its functioning but I still think it useful to report it to you:

Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.

Regards, Federico

Autostart window doesnt auto close

After logging in, the autostart window appears, but doesnt go away after the command is finished. The console shows this error:

Error in event handler: TypeError: output.split is not a function
    at chrome-extension://algkcnfjnajfhgimadimbjhmpaeohhln/run.js:7:22
    at extensions::terminalPrivate:10:9

Doesn't work...

I have a command set:
image
but when I press the Test button it just opens a blank window:
image
and the command doesn't run, when testing or at startup

Creating/copying files to write protected folders doesnt work

Trying to copy to write protected folders, doesnt do anything. Entered this command into the extension: sudo touch /etc/init.d/test.txt After running "testing" the command, this is the result in the crosh terminal:

chronos@localhost / $ sudo ls -a /etc/init.d/
.  ..  functions.sh

Auto start crostini and a linux app at startup?

According to Googles' ChromeOS Linux FAQ, penguin is disabled intentionally at system startup and MUST be manually started. I would love to have penguin autostart- which i believe (possibly incorrectly) is what your code is supposed to do. I would love to automatically launch crostini and my Google Drive syncronizer- Insync. Is this possible, or is my desired end result incorrectly making me think that it could be? Please correctly set my expectations for your code.

Thanks,
RJ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.