Linux 在三星 chromebook 上编程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7299685/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 06:01:55  来源:igfitidea点击:

Programming on samsung chromebook

pythonlinuxgoogle-app-enginegoogle-chrome-oschromebook

提问by BanditoBunny

I would like to use my samsung chromebook to develop for app engine using python, unfortunately now it is not possible as I only have browser there.

我想使用我的 samsung chromebook 使用 python 开发应用程序引擎,不幸的是现在不可能,因为我只有浏览器。

There are online IDE's like codulebut they are not good enough yet.

有类似codule 的在线 IDE,但它们还不够好。

So in this regards I have 3 questions:

所以在这方面我有3个问题:

  1. Is there a way to hack into chrome os and pull its native linux out
  2. Is there a way to install second OS on the chromebook (I have a new Samsung chromebook not the first one)
  3. Is there any chrome OS extension which can help programming in python for app engine
  1. 有没有办法入侵 chrome os 并将其原生 linux 拉出来
  2. 有没有办法在 chromebook 上安装第二个操作系统(我有一个新的三星 chromebook,而不是第一个)
  3. 是否有任何 chrome OS 扩展可以帮助在 python 中为应用程序引擎编程

采纳答案by Andrejs Cainikovs

Just enable Developer Mode, and you will get the access to the shell.

只需启用开发人员模式,您就可以访问shell

回答by Ido Green

Let me try and answer each of your 3 questions:

让我试着回答你的 3 个问题:

  1. In dev mode you can hit ctrl+alt+Tand get the shell. However, it's a trim/secure shell that won't let you do what you wish...
  2. You can load any type of OS from usb and install it. I have few friends that did it with ubuntu but each and everyone of them - moved back to chromeOS... may be, in your case it will be different :)
  3. Cloud9 is a cloud IDE that give you ability to develop in Python.
  1. 在开发模式下,你可以打ctrl+ alt+T,并得到了壳。然而,它是一个修剪/安全的外壳,不会让你做你想做的......
  2. 您可以从 USB 加载任何类型的操作系统并安装它。我有几个朋友是用 ubuntu 做的,但他们每个人都回到了 chromeOS ......可能是,在你的情况下会有所不同:)
  3. Cloud9 是一个云 IDE,可让您使用 Python 进行开发。

You can read a blog post I wrote in the past about 'developers and chromebook' - http://greenido.wordpress.com/2011/07/04/web-developers-and-the-new-chromebook/

您可以阅读我过去写的关于“开发人员和 chromebook”的博客文章 - http://greenido.wordpress.com/2011/07/04/web-developers-and-the-new-chromebook/

Good luck!

祝你好运!

回答by Carl Smith

These days, you can easily set up IPython Notebookon a VM with any of a number of cloud service providers. EC2 has been done a bunch of times and is well documented, but pretty much any service that you can run a full Linux VM on should work.

如今,您可以在多个云服务提供商中的任何一个的 VM 上轻松设置IPython Notebook。EC2 已经完成了很多次并且有很好的文档记录,但是几乎任何可以在其上运行完整 Linux VM 的服务都应该可以工作。

It works like a regular webapp. Your code runs on the server, so you can't program your Chomebook, just the VM, but that's better in a lot of circumstances.

它就像一个普通的网络应用程序。你的代码在服务器上运行,所以你不能对你的 Chomebook 进行编程,只能对 VM 进行编程,但在很多情况下这更好。

It's one popular option, even with people who have IPython installed locally, just because Cloud, but on Chrome OS, it makes even more sense to look at trying to get something like that set up, even if you use one of the other options to code offline.

这是一种流行的选择,即使是在本地安装了 IPython 的人,只是因为云,但在 Chrome OS 上,尝试进行类似设置更有意义,即使您使用其他选项之一代码离线。

回答by Sloan

Here is a guide for the new Samsung Chromebook that was introduced in October 2012 with flash memory. It will detail how to install Ubuntu onto an SSD drive to allow for dual boot without needing to modify the internal ChromeOS. To boot into Ubuntu after install you type Ctrl-U.

以下是 2012 年 10 月推出的带有闪存的新款三星 Chromebook 的指南。它将详细介绍如何将 Ubuntu 安装到 SSD 驱动器上以允许双启动而无需修改内部 ChromeOS。要在安装后启动到 Ubuntu,请键入 Ctrl-U。

link: http://techfoobar.blogspot.com/2013/01/how-to-install-ubuntu-on-samsungs-new.html

链接:http: //techfoobar.blogspot.com/2013/01/how-to-install-ubuntu-on-samsungs-new.html

回答by Sandeep Chayapathi

You can also use croutonto install a chroot jail and then you are free to apt-get install any library that's compiles to armv7.

您还可以使用crouton安装 chroot jail,然后您可以自由地 apt-get 安装任何编译为 armv7 的库。

I have a Samsung Chromebook and I have installed the GAE python sdk , emacs and clozure common lisp for development.

我有一台三星 Chromebook,我已经安装了 GAE python sdk、emacs 和 clozure common lisp 用于开发。

Its super easy to set this up:

设置它非常容易:

I have blogged about my experience here

我已经在这里写了我的经历的博客

回答by Marto Kolev

There are some new information for the new Samsung Chromebook that was introduced in March 2014 with flash memory. It will detail how to install Ubuntu onto an SSD drive to allow for dual boot without needing to modify the internal ChromeOS. To boot into Ubuntu after install you type Ctrl-U. I will post some more info to my blog here

2014 年 3 月推出的带有闪存的新款三星 Chromebook 有一些新信息。它将详细介绍如何将 Ubuntu 安装到 SSD 驱动器上以允许双启动而无需修改内部 ChromeOS。要在安装后启动到 Ubuntu,请键入 Ctrl-U。我会在这里发布更多信息到我的博客

回答by Retrac

There are two ways to use Linux on Chromebook.

在 Chromebook 上使用 Linux 有两种方法。

  1. You can use developer mode1. Once in developer mode, hit Ctrl + Alt + tto open chrome's chrosh shell. You can then type shellto open a Linux terminal.

  2. You can use Chromebook's Linux container. Go to the settings app and search Linux (Beta). Click turn onand follow it's instructions to set up Linux. This opens a separate container with your Linux files. If you do it this way, it helps to know it uses Debian 9.


    1How to turn on developer mode:
    1. Read all instruction before trying out.
    2. BACK UP YOUR FILES! They will be deleted in the process.
    3. Turn off your Chromebook.
    4. Hold the Esc + Refresh(F3)buttons and press the power button.
    5. You will be shown the recovery screen. Instead of following the instructions, press Ctrl + d.
    6. Press enterto confirm.
    7. Your device will reboot. When it is finished, you will see a screen saying "OS Verification is Off". Press Ctrl + dto bypass and go to your Chromebook with developer mode now on.
    8. Whenever you turn on your Chromebook, you will see the "OS Verification" screen. You always just press Ctrl + dto bypass. But be careful. if you press space, your Chromebook will go back out of developer mode (and delete your files).

      Hope this helps!
  1. 您可以使用开发人员模式1。进入开发者模式后,点击Ctrl + Alt + t打开 chrome 的 chrosh shell。然后,您可以键入shell以打开 Linux 终端。

  2. 您可以使用 Chromebook 的 Linux 容器。转到设置应用程序并搜索Linux (Beta)。单击turn on并按照其说明设置 Linux。这将打开一个包含您的 Linux 文件的单独容器。如果你这样做,它有助于知道它使用 Debian 9。


    1如何打开开发者模式:
    1. 在尝试之前阅读所有说明。
    2. 备份您的文件!它们将在此过程中被删除。
    3. 关闭您的 Chromebook。
    4. 按住Esc + Refresh(F3)按钮并按下电源按钮。
    5. 您将看到恢复屏幕。不要按照说明操作,而是按Ctrl + d
    6. enter确认。
    7. 您的设备将重新启动。完成后,您将看到一个屏幕,上面写着“操作系统验证已关闭”。按下Ctrl + d以绕过并转到您的 Chromebook,现在已开启开发者模式。
    8. 每当您打开 Chromebook 时,您都会看到“操作系统验证”屏幕。您总是只需按Ctrl + d即可绕过。不过要小心。如果您按空格,您的 Chromebook 将退出开发者模式(并删除您的文件)。

      希望这可以帮助!

回答by otm3232

you can go to settings and enable Linux beta if your Chromebook is new enough. This will give you access to a terminal where you can code.

如果您的 Chromebook 足够新,您可以转到设置并启用 Linux 测试版。这将使您可以访问可以编码的终端。