GithubHelp home page GithubHelp logo

255doesnotexist / lhroot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ferryar/lhroot

0.0 0.0 0.0 64 KB

Linux Chroot Installer & Bootscript Magisk Module.

License: GNU General Public License v3.0

Shell 100.00%

lhroot's Introduction

Linux Chroot Installer

Systemless Linux chroot installer and Linux chroot boot script

Requirements

  • Rooted with Magisk
  • busybox installed
  • coreutils for make_image
  • mke2fs for make_image
  • This module

Manjaro-Linux-Android

NOTICE

Due to many cases like this and this. Please make sure ALL mountpoint on chroot folder is UNMOUNTED before removing chroot folder. I don't responsible for lost all data, phone bricking, etc. You can check this repository that all the code I wrote, doesn't intentionally remove your data or bricking your phone. Use this module if you are familiar about Linux Enviroment. DWYOR!

Usage

lhroot

and follow the instructions

After installation to boot into Linux Chroot use :

bootlinux

After v2.1 you can run 2 or more chroot instances, just pass chroot folder, e.g.

bootlinux /data/manjaro

To unmount bind directory use :

killlinux

After v2.1 you can terminate specific instance, just pass chroot folder, e.g.

killlinux /data/manjaro

To make image use :

make_image <path to img> <img name.img> <size img in MB>

To mount image use :

mount_image <path to img> <path to linux directory>

Available Distro

  • Alpine Linux, Installed on /data/alpine
  • Arch Linux, Installed on /data/arch
  • Debian, Installed on /data/debian
  • Fedora, Installed on /data/fedora
  • Kali Linux, Installed on /data/kali
  • Manjaro ARM, Installed on /data/manjaro
  • Ubuntu, Installed on /data/ubuntu
  • Void Linux, Installed on /data/void

...more distro added soon

Supported Architectures

  • arm
  • aarch64
  • x86
  • x64

TODO

  • Migrate all file used in lhroot to my repo (WIP)
  • Built in Audio support
  • Cross compile all dependancies

Credits

  • mod-util by @veez21
  • Magisk by @topjohnwu

License

Licensed under GNU GPL v3

The rootfs tarball is taken from AnLinux Resources Repository Most of distro rootfs tarballs had been rebuilt and stored at lhroot-repo

Support

Note

  • If you want to store your chroot in image file, make image file first using make_image then mount the image using mount_image script.
  • coreutils can be installed via @Zackptg5 's ccbins module.
  • mke2fs can be installed via my e2fsprogs module, support for arm device only, other arch will be use busybox mke2fs applets,will use ext2 filesystem and limited 2GB image size.

lhroot's People

Contributors

ferryar avatar 255doesnotexist avatar icanka avatar xrce avatar

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.