【转载】关闭chromeos自动更新

某位为chromeos/macos开发过核心的大佬写的

难度不高,用浏览器自带或者插件翻译一下就行了

 

在开发者模式,运行以下指令以关闭根目录写入限制

sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 2
然后下下面的内容写进 /mnt/stateful_partition/etc/lsb-release

CHROMEOS_RELEASE_VERSION=9999.9999.9999.9999
GOOGLE_RELEASE=9999.9999.9999.9999

这样会让chromeos认为它的版本是最新的

注意:这个仅在开发者模式下有效

用恢复盘重装系统即可恢复自动更新

 

 

来源:https://www.quora.com/Is-it-possible-to-turn-off-updates-on-a-Chromebook

crostini 鼠标锁定的2个flag

chrome://flags/#enable-pointer-lock-options

chrome://flags/#exo-pointer-lock

据说84版本之后会失效

已知问题(生肉):

This implementation is imperfect for several reasons:
– Historically pointer lock was only available for Arc as part of
android’s “pointer capture” (which in wayland terms is a combination
of locking, relative motion, and cursor hiding). This CL does not
change that behaviour, meaning locking will also hide the cursor.
– We do not implement UI support for unlocking the pointer. Users
assume responsibility for malicious applications if they enable the
flag. Note that users can force the pointer to unlock via alt+tab
or by bringing up the launcher.
– We do not fix the underlying limitations in aura w.r.t. relative
motion. Applications which request relative motion without locking
the pointer will be sent inaccurate information if the pointer hits
a barrier. This is a preexisting limitation and was not fixed by
this CL.
For this reason it will only be available behind a flag.

 

来源:

https://bugs.chromium.org/p/chromium/issues/detail?id=927521#c34

https://chromium.googlesource.com/chromium/src/+/e9a6744f19342093b0d62ade4892092928b69980

启动时间缩短至1s的通用脚本

注意:

  • 需要解除BIOS写入保护锁后才能运行这个脚本,否则可能会损坏您的设备
  • 部分机型在运行完这个脚本后可能无法从usb启动
  • 运行这个脚本同样存在极低的变砖风险,请谨慎操作

脚本下载地址:

群文件/常用脚本/gbb0x39.sh

使用方法:通过u盘/Fydedrop(drop.fydeos.com) 将脚本复制到下载文件夹,运行下面的代码

cd ~/Downloads ; sudo bash gbb0x39.sh

小提示:

用chromebook访问此页面(此页面地址:120.79.199.53/?p=323),直接复制上面的代码,按ctrl+alt+t打开命令行界面,输入shell再按回车进入shell,两指轻击触摸板(等同于点鼠标右键)或者按ctrl+shift+v即可粘贴,然后按回车运行

【转载】不打开开发者模式,通过adb安装apk的方案(已烤熟)

来源地址:

https://beebom.com/how-sideload-android-apps-chromebook/

 

1. Open Settings and turn on Linux (Beta) from the left menu. If you don’t know how to do it, follow our guide from here.

1.在设置里面启用Linux子系统

8 How to Install Android Apps on Chromebook Without Developer Mode

2. After setting up Linux, open Settings again and navigate to Linux -> Develop Android Apps -> Enable the toggle for ADB Debugging. Now, restart your Chromebook and an ADB prompt will come up after the reboot. Click on “Allow” and you are done.

2.安装好Linux子系统后,再次打开设置,导航至Linux-开发安卓应用-启用adb,重启后adb就可以用了

Note: In case, ADB toggle is not turning on then you will have to reset your Chromebook. A similar thing happened with our machine as well and powerwashing the Chromebook resolved the issue.

3. Now, open Terminal from the app drawer and execute the below command to install the ADB platform tools. Further, press “Y” to allow the installation.

3.现在,打开Linux子系统的终端,运行下方的指令即可安装adb工具,运行后需要输入Y确认(注意Y要用大写的)

sudo apt-get install android-tools-adb

4 How to Install Android Apps on Chromebook Without Developer Mode

4. After the installation, run the below command to connect the Android system with Linux on Chrome OS. Remember, your Chromebook should be connected to a WiFi network for this to work.

4.ADB安装完成后,运行下方的指令即可将adb连接到安装子系统,注意需要联网才能连接成功

adb connect 100.115.92.2:5555

If the Terminal shows “Permission Denied” or “Command Not Found” error then run the below command and then try again with the adb connect command mentioned above.

如果这里出现“Permission Denied” 或者 “Command Not Found” 的错误,需要运行下面的指令然后重新连接

adb start-server

5. A window will instantly open up to “Allow USB Debugging”. Enable the checkbox for “Always allow” and then click on the “Ok” button. By now, you have successfully set up the foundation.

5.一个窗口会马上出现,这里勾选Always allow前面的框,然后点OK

7 How to Install Android Apps on Chromebook Without Developer Mode

  • Install Android App on Chrome OS

6. Now, go ahead and download the Android APK that is not available on the Play Store and move it to Linux files. For example, I have downloaded the Firefox APK to install on my Chromebook without Developer Mode.

Note: Rename the downloaded APK to something easier, just so you can easily type it on the Terminal.

6.现在把apk下载并复制到Linux文件夹里面

2 How to Install Android Apps on Chromebook Without Developer Mode

7. Open the Terminal and type the below command to sideload the Android app on Chrome OS. For your case, you will have to change the app name in place of firefox.

7. 打开Linux子系统的终端,运行下面的指令(coolapk.apk换成你要装的apk的文件名)即可安装apk

adb -s 100.115.92.2:5555 install coolapk.apk