Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewbrg/crouton-auto
Bash script to auto-create (via crouton) a Debian / Cinnamon installation within ChromeOS and install multiple development tools
https://github.com/andrewbrg/crouton-auto
bash chrome chrome-devtools chromebook chromeos chroot crouton gnome php7 shell-script ubuntu ubuntu1604
Last synced: 2 months ago
JSON representation
Bash script to auto-create (via crouton) a Debian / Cinnamon installation within ChromeOS and install multiple development tools
- Host: GitHub
- URL: https://github.com/andrewbrg/crouton-auto
- Owner: andrewbrg
- License: bsd-3-clause
- Created: 2017-10-03T17:58:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-28T21:13:46.000Z (over 5 years ago)
- Last Synced: 2024-08-01T20:47:33.568Z (6 months ago)
- Topics: bash, chrome, chrome-devtools, chromebook, chromeos, chroot, crouton, gnome, php7, shell-script, ubuntu, ubuntu1604
- Language: Shell
- Homepage:
- Size: 96.7 KB
- Stars: 35
- Watchers: 7
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Linux dual OS on ChromeOS via Crouton
**Important**
Crouton has been replaced by stock Crostini, if you are using that (and should be) then refer to this: https://github.com/andrewbrg/deb9-dev-machine
Otherwise;
Download latest version [here](https://raw.githubusercontent.com/andrewbrg/crouton-auto/master/c-auto.sh): _(open->right click->save as)_
This is a handy script to automatically set up a Linux Debian dev machine on your chromebook. The disto will be installed in a chroot along with your current Chrome operating system _(you can run two operating systems in parallel)_. The Crouton project is developed/maintained by David Schneider @ https://github.com/dnschneid
**This script is made for AMD64 processors**, if you have an ARM processor some packages will not function. Fully tested on Acer Chromebook 14 and Acer Spin 13.
Your Chromebook must be in developer mode in order to use this script.
It is also highly recommended that you install the crouton chrome extension for added functionality including a shared clipboard between operating systems. You may get the latest version directly from the [chrome store](https://chrome.google.com/webstore/detail/crouton-integration/gcpneefbbnfalgjniomfjknbcgkbijom)
**Resources to check out**
| Type | Link |
| ------ | ------ |
| Crouton GitHub | https://github.com/dnschneid/crouton |
| Crouton Cheatsheet | https://github.com/dnschneid/crouton/wiki/Crouton-Command-Cheat-Sheet |
| Crouton Wiki | https://github.com/dnschneid/crouton/wiki |
***## What is a chroot?
A chroot is basically a special directory on your computer which prevents applications, if run from inside that directory, from accessing files outside the directory. In many ways, a chroot is like installing another operating system inside your existing operating system.
Technically-speaking, chroot temporarily changes the root directory (which is normally /) to the chroot directory (for example, /var/chroot). As the root directory is the top of the filesystem hierarchy, applications are unable to access directories higher up than the root directory, and so are isolated from the rest of the system. This prevents applications inside the chroot from interfering with files elsewhere on your computer.
Note that it is possible for software from outside the chroot to access files inside the chroot.
## Ready? let's go!After placing your Chromebook into developer mode, launch a crosh terminal by hitting `CTRL+ALT+T` then type in the following commands:
```shell
shell
sudo sh ~/Downloads/c-auto.sh
```After the installation is complete you can launch Debian by opening a crosh terminal `CTRL+ALT+T` and executing:
```shell
shell
sudo startcinnamon
```If you want to be able to close the crosh terminal without Debian un-mounting itself as a consequence use the following:
```shell
shell
sudo startcinnamon -b
```To switch between operating systems hit `CTRL+ALT+SHIFT+FORWARD` or `CTRL+ALT+SHIFT+BACKWARDS`.
It's important to logout from linux once before powering down your system to avoid potential corruption to the mounted root.
## Updating your chroot
**I've updated ChromeOS and my distro is acting up**
If you want to run a full update of the Debian installation in your chroot or you've updated ChromeOS and linux is not working properly anymore then run the following from crosh and choose the 'u' option:
```shell
shell
sudo sh ~/Downloads/c-auto
```