How does crouton work to run Chrome OS and Ubuntu simultaneously?
-
Crouton allows users of Chrome OS to basically alt+tab to Ubuntu and back to Chrome OS, leaving all processes of each OS running in the background when using the other. A video of it in action is at http://gigaom.com/2013/03/05/video-chromebook-pixel-running-chrome-os-and-linux-simultaneously/, where goes from Chrome OS to playing with Audacity and Skyping his son in Ubuntu, and back to Chrome OS while continuing the video call. How does this work? Crouton code: https://github.com/dnschneid/crouton
-
Answer:
Crouton allows you to run Linux in a chroot environment within Chrome OS. Simply put, Ubuntu is running and sharing the same resources as Chrome OS, with a virtualized file system. Further explanation of chroot from crouton's Github page: Like virtualization, chroots provide the guest OS with their own, segregated file system to run in, allowing applications to run in a different binary environment from the host OS. Unlike virtualization, you are not booting a second OS; instead, the guest OS is running using the Chromium OS system. The benefit to this is that there is zero speed penalty since everything is run natively, and you aren't wasting RAM to boot two OSes at the same time. The downside is that you must be running the correct chroot for your hardware, the software must be compatible with Chromium OS's kernel, and machine resources are inextricably tied between the host Chromium OS and the guest OS. What this means is that while the chroot cannot directly access files outside of its view, it can access all of your hardware devices, including the entire contents of memory. A root exploit in your guest OS will essentially have unfettered access to the rest of Chromium OS.
Lee Hanxue at Quora Visit the source
Other answers
As Lee Hanxue mentioned, Crouton uses the Unix/Linux chroot (defn. from Wikipedia: A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally not access) files outside the designated directory tree. http://en.wikipedia.org/wiki/Chroot ) to simultaneously share processes between multiple file systems giving the impression that the OS's are running independently. However, the Crouton linux chroot OS must always be started from a Chrome OS terminal window, and the Chrome OS platform must be in developer mode, which does reduce the security compared to an out of the box Chromebook, but you can still run crouton with signed boot verification, and USB boot disabled as is recommended. Chrome OS also owns the #1 kernel init process, so any and all resources that Chrome OS currently, or in the future restricts, may restrict those accesses to chroots. One less explored feature of Chromebooks is that while in developer mode, signed boot verification, and USB boot can be enabled, and while this is the least secure method of using a Chromebook, it allows one to simply utilize the efficient Chromebook hardware and boot straight into an os such as Arch Linux or any number of other operating systems that have been adapted to run with the basic Chromebook hardware and BIOS functions.
Ted Matsumura
Related Q & A:
- How To Run A Command In Ubuntu?Best solution by Yahoo! Answers
- How to Login to Stackoverflow in Chrome with a different Google ID than the one I'm using for Chrome?Best solution by Meta Stack Overflow
- How do I port my application to OS X?Best solution by Stack Overflow
- How can I clear my google chrome cache?Best solution by eHow old
- How do I fix my google chrome?Best solution by wikihow.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.