chromebook刷机_如何在Chromebook上运行Linux应用而不打开完整Linux窗口

chromebook刷机

chromebook刷机

If you’re looking to get a little more versatility out of your Chromebook, installing Crouton to get a full Linux desktop is a great way to do it. But you don’t have to access the full desktop every time you want to run a Linux app—you can do it right from Chrome OS, too.

如果您希望获得更多Chromebook的多功能性,那么安装Crouton以获得完整Linux桌面是一个不错的选择。 但是,您不必每次都想运行Linux应用程序时都访问整个桌面,您也可以直接在Chrome操作系统中进行操作。

你需要什么 (What You’ll Need)

Before we get started, here are a few things you’ll need first:

在开始之前,您首先需要满足以下几点:

Got all that? Great. Let’s get started.

知道了吗? 大。 让我们开始吧。

第一步:安装Xiwi (Step One: Install Xiwi)

If you have Crouton set up to run in a separate window or Chrome tab, then you already have Xiwi installed and you can skip to the second step. If not, then you’ll need to install it first.

如果您已将Crouton 设置为在单独的窗口或Chrome选项卡中运行 ,则您已经安装了Xiwi,可以跳至第二步。 如果没有,那么您首先需要安装它。

To do this, open the Chrome OS terminal with Ctrl+Alt+T. Or, if you have Crosh Window installed, just launch that. Type “shell” at the prompt.

为此,请使用Ctrl + Alt + T打开Chrome操作系统终端。 或者,如果您安装了Crosh Window,则只需启动它。 在提示符下键入“ shell”。

From there, run this command to install Xiwi:

从那里,运行以下命令来安装Xiwi:

sudo sh ~/Downloads/crouton -t xiwi -u -n xenial

Where “xenial” is the name of your chroot. This will pull the latest version of Crouton and install Xiwi. It’ll take a few minutes, so kick back and let it do its thing.

其中“ xenial”是您的chroot的名称。 这将提取最新版本的Crouton并安装Xiwi。 这将需要几分钟,因此请退后一步,让它完成工作。

第二步:启动您的应用 (Step Two: Launch Your App)

With Xiwi all set up as part of your Crouton installation, you’re ready to launch your app. For this example, we’re going to keep it simple and just use GIMP, but you should be able to launch pretty much anything that’s installed in Crouton this way.

将Xiwi全部设置为Crouton安装的一部分之后,就可以启动应用程序了。 对于此示例,我们将使其保持简单,仅使用GIMP,但您应该能够以这种方式启动几乎所有在Crouton中安装的东西。

Again, open a Chrome terminal with Ctrl+Alt+T or the Crosh Window extension. Type “shell” at the command.

再次,使用Ctrl + Alt + T或Crosh Window扩展名打开Chrome终端。 在命令中键入“ shell”。

Now, instead of launching the full Linux experience with the normal “startxfce4” command, you’re just going to enter the chroot from the command line using the following command:

现在,您无需使用普通的“ startxfce4”命令来启动完整Linux体验,只需使用以下命令从命令行输入chroot:

sudo enter-chroot

Input your sudo password and decrypt your chroot (if it’s encrypted, of course). Now that you’re in the chroot, enter the following command:

输入您的sudo密码并解密您的chroot(当然,如果已加密)。 现在您已经在chroot中,输入以下命令:

xiwi gimp

After a few seconds, GIMP should launch in its own window on the Chrome OS desktop. This gives it a much more native feel inside of Chrome OS. I dig it.

几秒钟后,GIMP应该在Chrome操作系统桌面上的自己的窗口中启动。 这使它在Chrome操作系统内部更具原生感。 我喜欢。

Alternatively, you can combine the two commands into one, like so:

或者,您可以将两个命令合并为一个,如下所示:

sudo enter-chroot xiwi gimp

And if you’re not into running the app as a window, but would rather launch it in a browser tab, you can do that with the -t command.

而且,如果您不打算将应用程序作为窗口运行,而是希望在浏览器选项卡中启动它,则可以使用-t命令执行该操作。

xiwi -t gimp

And again, all in a single command, that’d be:

再一次,全部在一个命令中,将是:

sudo enter-chroot xiwi -t gimp

Pretty useful, huh?

很有用吧?

最后一点 (One Final Note)

This is all pretty straightforward, but there’s one thing you’ll need to note here: properly shutting down your application. While you can just close the window, I’d recommend cleanly shutting down the app with the native function—in the case of GIMP, using the File > Quit menu. This actually sends the kill command, cleanly shutting down the application completely.

这一切都非常简单,但是您需要在此处注意一件事:正确关闭应用程序。 虽然您只可以关闭窗口,但建议您使用本机功能彻底关闭该应用程序-对于GIMP,请使用“文件”>“退出”菜单。 实际上,这会发送kill命令,完全关闭应用程序。

This rule generally applies to all Crouton installations. When you close it, do so with the Log Out command—don’t just close the window.

该规则通常适用于所有Crouton安装。 关闭它时,请使用“注销”命令-不要仅关闭窗口。

翻译自: https://www.howtogeek.com/343222/how-to-run-linux-apps-on-a-chromebook-without-opening-a-full-linux-window/

chromebook刷机

### 回答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上使用LinuxChromebook本身是一种基于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、付费专栏及课程。

余额充值