chromebook刷机_如何在Chromebook上使用ADB和Fastboot

chromebook刷机

chromebook刷机

For a long time, Chromebook users who also need access to the Android Debug Utility (ADB) and Fastboot for Android devices were left with one option: Crouton. Now, however, both ADB and Fastboot are included in Chrome OS. Here’s how to access them.

长期以来,需要同时使用Android调试实用程序 (ADB)和适用于Android设备的Fastboot的Chromebook用户只有一个选择:Crouton。 现在,Chrome操作系统中同时包含了ADB和Fastboot。 这是访问它们的方法。

第一:您的设备需要处于开发人员模式 (First: Your Device Needs to be in Developer Mode)

First things first: ADB and Fastboot are technically considered “developer” tools, so your Chromebook will need to be in Developer Mode before you’ll be able to access them. Just to make it clear, we’re not talking about the developer channel here—every Chromebook can be put into a sort of “unlocked” mode that allows for deeper system access and tweaks. This is called Developer Mode.

首先,第一件事:ADB和Fastboot在技术上被视为“开发人员”工具,因此您的Chromebook必须处于开发人员模式,才能访问它们。 只是为了清楚起见,我们在这里不是在谈论开发人员渠道 ,每个Chromebook都可以置于一种“解锁”模式,从而可以进行更深入的系统访问和调整。 这称为开发人员模式。

Fortunately, enabling Developer Mode is pretty straightforward and simple. There is one caveat, however: it will powerwash your device, so you’ll have to start over. The good news is that it’s a Chromebook, so this really shouldn’t take that long.

幸运的是,启用开发人员模式非常简单明了。 但是,有一个警告:它将对设备进行强力清洗,因此您必须重新开始。 好消息是这是一台Chromebook,因此使用它的时间不应该太长。

If you’re cool with that, hit up our guide on enabling Developer Mode. That should get you rolling and ready to go in a matter of a few minutes.

如果您对此感到满意,请查阅有关启用“开发人员模式”的指南 。 那应该让您滚动并准备在几分钟内就可以开始使用。

第二:加油 (Second: Get Your Crosh On)

In order to use ADB and Fastboot on your Chromebook, you’ll need to use something called Crosh—short for “Chrome Shell.” Think of it as a sort of lightweight terminal just for Chrome OS.

为了在Chromebook上使用ADB和Fastboot,您需要使用Crosh(“ Chrome Shell”的缩写)的名称。 可以将其视为仅适用于Chrome操作系统的一种轻量级终端。

There are a couple of ways to access Crosh.  To open it in a full browser window, just hit Ctrl+Alt+T on your keyboard.

有几种方法可以访问Crosh。 要在完整的浏览器窗口中打开它,只需按键盘上的Ctrl + Alt + T。

If you find yourself using Crosh fairly often, however, and would like it in a popout window (like a “real” terminal) there are two extensions you’ll need: Secure Shell and Crosh Window. With both installed, you’ll have a Crosh entry in your app drawer that launches Crosh in a nice, tidy little window. Personally, it’s my preferred method of using Crosh.

但是,如果您发现自己经常使用Crosh,并且希望在弹出窗口(例如“真实”终端)中使用Crosh,则需要两个扩展: Secure ShellCrosh Window 。 两者都安装后,您将在应用程序抽屉中有一个Crosh条目,可在一个漂亮,整洁的小窗口中启动Crosh。 就个人而言,这是使用Crosh的首选方法。

With a Crosh window fired up, you’re ready to rock and roll. You can’t just jump straight into ADB and Fastboot, however—you’ll need to enter one command to get a shell window first. Type the following:

在打开Crosh窗口后,您就可以摇滚了。 但是,您不能直接跳到ADB和Fastboot中,您需要输入一个命令才能首先获取Shell窗口。 输入以下内容:

shell

The prompt should change to read “chronos@localhost,” after which ADB and Fastboot should both be available to use like normal.

提示符应更改为“ chronos @ localhost”,此后,ADB和Fastboot都应该可以像平常一样使用。

可选:如果不起作用怎么办? (Optional: What if it Doesn’t Work?)

When I first tested this out, I couldn’t get it to work. ADB could see my Android devices, but it never requested access. Turns out Chrome OS still runs an old version of ABD/Fastboot (because Google, right?) so you’ll need to update it.

当我第一次测试时,我无法使其正常工作。 亚行可以看到我的Android设备,但从未请求访问。 事实证明,Chrome操作系统仍在运行旧版本的ABD / Fastboot(因为Google,对吗?),因此您需要对其进行更新。

But that’s where the problem comes into play: you can’t just update ADB and Fastboot like on a normal computer. There is, however, a solution. If you have an Intel-based Chromebook, a script exists that will update ADB and Fastboot to the newest versions, as well as move them to the “correct” location. After that, everything should run fine.

但这就是问题所在:您不能像在普通计算机上那样仅更新ADB和Fastboot。 但是,有一个解决方案。 如果您有基于Intel的Chromebook,则存在一个脚本,该脚本会将ADB和Fastboot更新到最新版本 ,并将它们移到“正确”的位置。 在那之后,一切应该运行良好。

The script itself is pretty straightforward, and all the instructions are posted on the GitHub page. We suggest reading through them before you start so you know exactly what’s going on behind the scenes. Everything is also open source, so if you’d like to look through the code, you can do that too.

该脚本本身非常简单,所有说明都发布在GitHub页面上。 我们建议您在开始学习之前先通读它们,以便准确了解幕后情况。 一切都是开源的,因此,如果您想看一下代码,也可以这样做。

With ADB and Fastboot updated and moved, both commands should work flawlessly. I tested this on a Pixelbook (i5, developer channel) by flashing a stock ROM onto my Nexus 6 and it was perfect.

随着ADB和Fastboot的更新和移动,这两个命令都应该可以正常工作。 我在Pixelbook(i5,开发人员频道)上测试了此功能,方法是将备用ROM闪存到Nexus 6上,效果非常好。

翻译自: https://www.howtogeek.com/358285/how-to-use-adb-and-fastboot-on-a-chromebook/

chromebook刷机

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 要在Chromebook上安装Linux,您需要先启用Chromebook上的开发者模式。然后,您可以通过Crouton或Chromebrew等工具来安装Linux。安装Linux后,您可以使用Linux应用程序和命令行工具来扩展Chromebook的功能。但请注意,安装Linux可能会影响Chromebook的安全性和稳定性,因此请谨慎操作。 ### 回答2: Chromebook是一种基于Chrome OS的操作系统的笔记本电脑。虽然Chrome OS可以运行许多应用程序,但有些用户需要更广泛的功能,例如使用Linux的命令行和软件。因此,可以在Chromebook上安装Linux以满足这些需求。 首先,要安装Linux,您需要启用Chromebook上的“开发者模式”。要进入开发者模式,首先,请备份您的所有文件并确保Chromebook已连接到电源。然后,按住Esc + F3(Chromebook上的切换功能键)+ 电源按钮,然后释放所有这些键。Chromebook将进入恢复模式。 在恢复模式下,您需要按Ctrl + D,然后按Enter键。您将会收到一条警告,提示您确信要进入开发者模式。按Enter再次确认。Chromebook将自行重启并进入开发者模式。 现在您有了开发者模式,需要打开Chromebook上的“Linux(Beta)”功能。前往Chromebook的设置并选择“设备”>“Linux Beta”,随后按照提示启用它。系统将自动下载并安装Linux虚拟机容器。 与此同时,建议您下载和安装一个名为“Crouton”的Linux发行版,它与Chrome OS安装在同一个虚拟机容器中,并为您提供享有Linux游戏和软件的命令行界面。该软件也能帮助您在Chromebook上快速安装Linux发行版。 最后,为了使用Linux,您需要打开终端并输入以下命令:sudo startgnome 或 sudo startxfce4。这将启动您安装的GNOME或Xfce桌面环境。现在,您可以使用Linux命令行和应用程序,您可以在Chromebook上进行更广泛的任务! 总之,将Linux安装到Chromebook上是一个相对简单的过程,需要您注意一些关键步骤。一旦您完成了所有步骤,您将能够在Chromebook使用Linux的命令行和应用程序,满足您更广泛的需求。 ### 回答3: 随着Chromebook在市场上的快速普及,越来越多的用户想要在Chromebook使用Linux。Chromebook本身是一种基于Google Chrome浏览器的操作系统,但是安装Linux可以为用户提供更多功能和灵活性。 首先需要说明的是,Chromebook是基于Google Chrome OS的,这意味着它并不是一个传统意义上的计算机。Chromebook的本质是一款浏览器,因此它并不支持像Windows或Mac OS那样的原生程序安装。这就是为什么在Chromebook中安装Linux会比在其他设备上更加复杂的原因。 但是,Chromebook作为一种基于Linux内核的操作系统,是可以使用Linux的。Google为Chromebook提供了一个称为“开发人员模式”的选项,用户可以在这个模式下安装和运行Linux应用程序。以下是步骤: 步骤一:打开“开发人员模式” - 这个选项可以通过按下“ESC + 刷新 + 电源”来打开,这样您就可以进入Chromebook的开发人员模式。 步骤二:下载Crouton - Crouton是一个用于在Chromebook上安装Linux的软件。 步骤三:启动Crouton - 打开“终端”并输入以下命令: sudo sh ~/Downloads/crouton -t [desktop environment] [desktop environment]将是您想要安装的桌面环境。例如,如果您想要安装Ubuntu,这将是“xfce”或“unity”之一。 步骤四:等待安装完成 - 安装会需要一些时间。安装完成后,您将可以通过在Chromebook的开发人员模式下切换到Linux环境。 总的来说,Chromebook在安装Linux方面略有些复杂,但对于那些想要更多功能和灵活性的用户来说,这是一个值得尝试的方法。如果遵循正确的步骤,安装Linux将为Chromebook带来更多功用。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值