Giter Club home page Giter Club logo

debianguionandriod's Introduction

DebianGUIOnAndriod

This repository is to record how to setup debian GUI on Android system using Termux and Termux X11.

Background

Termux is a Linux environment terminal emulator that developed for Andriod system. It doesn't require root privilege and offers a lot of additional Linux packages. It's system is very similar to Linux's. Therefore, we can achieve many things with Termux. The full description of Termux can be found in wikipedia.

  • Termux X11 is a Termux add-on app providing Android frontend for Xwayland. Termux X11 uses Wayland display protocol. a modern replacement and the predecessor of the X.org server.

Chroot is a command on Unix and Unix-like operating systems. The chroot system call was introduced during development of Version 7 Unix in 1979. One source suggests that Bill Joy added it on 18 March 1982, 17 months before 4.2BSD was released, in order to test its installation and build system. Chroot 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 cannot access) files outside the designated directory tree. This is usually done for security, containerization, or testing, and is often called a "chroor jail". Chroot can be used build up a container because it provides an isolated environment for running applications and can limit access to the rest of the file system. Therefore, we can build a Linux system in Termux using chroot.

  • PRoot is a user-space implementation of chroot, mount --bind, and binfmt_misc. This means that users don't need any privileges or setup to do things like using an arbitrary directory as the new root filesystem, making files accessible somewhere else in the filesystem hierarchy, or executing programs built for another CPU architecture transparently through QEMU user-mode.

    • PRoot Distro is a Bash script wrapper for utility proot for easy management of chroot-based Linux distribution installations. It does not require root or any special ROM, kernel, etc. Everything you need to get started is the latest version of Termux application. PRoot Distro is not a virtual machine, neither a traditional chroot. It shares the same kernel as your Android system. PRoot supports many Linux distributions, such as Alpine Linux (edge), Arch Linux/Arch Linux 32/Arch Linux ARM, Debian (stable),Ubuntu (22.04), etc.

Using Termux and chroot, in theory, we can bulid up a complete linux system in Andriod. Further, with Termux X11, Linux graphic user interface (GUI) could be achieved. There are many successful cases of Linux GUI online. This repository is hinted by a vedio uploaded by 武丑兄 in Bilibili.

debianguionandriod's People

Contributors

yaolei-leo avatar

Watchers

 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.