Coder Social home page Coder Social logo

chroot-distro's Introduction

chroot-distro

chroot-distro : Install linux distributions on android

  • chroot-distro path : /data/local/chroot-distro/

Android paths on distributions :

  • /dev
  • /sys
  • /proc
  • /dev/pts
  • /sdcard
  • /system
  • /storage
  • /data

usage

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

  • help
chroot-distro help
  • list of available linux distributions
chroot-distro list
  • download rootfs
chroot-distro download <distro>
  • redownload rootfs
chroot-distro redownload <distro>
  • delete rootfs
chroot-distro delete <distro>
  • install distro
chroot-distro install <distro>
  • reinstall distro
chroot-distro reinstall <distro>
  • uninstall distro
chroot-distro uninstall <distro>
  • backup distro
chroot-distro backup <distro>
  • backup distro with custom path
chroot-distro backup <distro> <path>
  • delete backup
chroot-distro unbackup <distro>
  • restore distro
chroot-distro restore <distro>
  • restore distro with custom path
chroot-distro restore <distro> <path>
  • run command
chroot-distro command <distro>
  • login to distro
chroot-distro login <distro> 

example

chroot-distro download ubuntu
chroot-distro install ubuntu
chroot-distro login ubuntu

supported distributions

  • kali : Kali Linux
  • parrot : Parrot OS
  • alpine : Alpine Linux
  • archlinux : Arch Linux
  • BackBox : backbox
  • Centos : centos
  • Centos Stream : centos_stream
  • artix : Artix Linux
  • debian : Debian
  • deepin : Deepin
  • fedora : Fedora 39
  • manjaro : Manjaro
  • openkylin : OpenKylin
  • opensuse : OpenSUSE
  • pardus : Pardus
  • ubuntu : Ubuntu
  • void : Void Linux

best features :

you can use chroot-distro on any terminal like mt manger , termux , twrp , Android terminal emulator... Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle. Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

vnc

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle. Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle. your can use any vnc app , tutorial (tested on ubuntu and debian)

apt update
apt upgrade
apt install tightvncserver nano dbus-x11 xfce4 xfce4-goodies xfce4-terminal
update-alternatives --config x-terminal-emulator
vncserver
vncserver -kill :1
echo 'startxfce4 &' >> ~/.vnc/xstartup

start server :

vncserver

stop server :

vncserver -kill :1

Install chroot-distro

chroot-distro's People

Contributors

yassernull avatar

Stargazers

Grégory Brivady avatar  avatar D1N38H avatar Lee Gao avatar  avatar  avatar Pablo Hinojosa avatar  avatar lare avatar Arvib Fazriansyah avatar  avatar XxX_BUERAKUS_XxX avatar Red Daut avatar  avatar  avatar Nicholas B avatar  avatar  avatar  avatar yowlumne avatar  avatar YZBruh avatar  avatar sampath_jayawardhana avatar SAMITHA avatar  avatar  avatar Qin Ruizhe avatar  avatar 程骏熊 avatar Anon avatar Sayanth avatar Pascal avatar

Watchers

 avatar Mercenário avatar

chroot-distro's Issues

I have newbie doubts

Screenshot_20240331-024519_Termux.jpg

to be able to use the chroot-distro commands. I have to do it from your. and when I do it. It won't let me download the distribution.

Sudo not working in chroot on P7P

When attempting to use sudo inside chrooted system (notably archlinux), sudo command is broken, complaining about

effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

I guess this has to do something with the way Android mounts /data? The device is Pixel 7 Pro.

Error installing distribution

When installing the distribution I received these errors:

.../files/home # chroot-distro install kali
grep: warning: stray \ before /
mount: /data/local/chroot-distro/kali/dev: mount point does not exist.
       dmesg(1) may have more information after failed mount system call.
mount: /data/local/chroot-distro/kali/sys: mount point does not exist.
       dmesg(1) may have more information after failed mount system call.
mount: /data/local/chroot-distro/kali/proc: mount point does not exist.
       dmesg(1) may have more information after failed mount system call.
mount: /data/local/chroot-distro/kali/dev/pts: mount point does not exist.
       dmesg(1) may have more information after failed mount system call.
/system/bin/chroot-distro[844]: can't create /data/local/chroot-distro/kali/etc/resolv.conf: No such file or directory
/system/bin/chroot-distro[844]: can't create /data/local/chroot-distro/kali/etc/hosts: No such file or directory
chroot: failed to run command ‘/bin/su’: No such file or directory
.../files/home #

I mounted the system partition with write permissions, but this did not change nothing.

No distro.tar.xz

Screenshot_20240331-102359_Termux.png

How to fix this? How to download this file? Or is there any steps i missed?

distribution download error

Connecting to github.com (20.201.28.151:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
Failed to download the Debian Rootfs.
rm: /data/local/chroot-distro/.rootfs/debian.tar.xz: No such file or directory

Can't download anything

Rooted. Installed busybox module

Installed your magisk modual.

I run this and get this error for every distro.
Screenshot_20240312-113950_Termux

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.