Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scripting Chrome(OS)扩展打开终端并运行命令切换引导分区_Scripting_Google Chrome_Google Chrome Extension_Chromium_Google Chrome Os - Fatal编程技术网

Scripting Chrome(OS)扩展打开终端并运行命令切换引导分区

Scripting Chrome(OS)扩展打开终端并运行命令切换引导分区,scripting,google-chrome,google-chrome-extension,chromium,google-chrome-os,Scripting,Google Chrome,Google Chrome Extension,Chromium,Google Chrome Os,我是少数几个幸运的人之一,他们获得了谷歌CR-48来测试Chrome操作系统。我喜欢Chrome操作系统,几乎所有的休闲浏览都使用它,但当我需要编程时,我喜欢使用linux。要从Chrome OS切换到linux,我需要执行以下操作: ctrl + alt + -> -- open terminal $ chronos -- log in as chronos user $ sudo

我是少数几个幸运的人之一,他们获得了谷歌CR-48来测试Chrome操作系统。我喜欢Chrome操作系统,几乎所有的休闲浏览都使用它,但当我需要编程时,我喜欢使用linux。要从Chrome OS切换到linux,我需要执行以下操作:

ctrl + alt + ->                         -- open terminal
$ chronos                               -- log in as chronos user
$ sudo su                               -- gain privileges
$ sudo cgpt add -i 6 -P 5 -S 1 /dev/sda -- switch boot partition

虽然发出这些命令并不需要很多时间,但我觉得我可以以某种方式将其自动化。Chrome扩展API有权访问终端吗?

没有。Chrome扩展只是将代码输入浏览器执行。浏览器无法访问终端,也没有用于它的API,无论是实验性的还是其他的

资料来源: