Giter Site home page Giter Site logo

debian-on-termux's Introduction

debian-on-termux

what is it

  • a shell script to install Debian 9 (stretch) via debootstrap in a Termux environment
  • supported Debian versions include: stable (stretch), testing (buster), unstable
  • supported architectures include: armel, armhf, arm64, i386, amd64

how to use it

  • install Termux

  • download debian_on_termux.sh from debian-on-termux into your termux home directory

      cd /data/data/com.termux/files/home
      apt update
      apt install wget
      hash -r
      wget https://raw.githubusercontent.com/sp4rkie/debian-on-termux/master/debian_on_termux.sh
    
  • optionaly check the configuration lines near the top of the script.

  • execute the script

      sh debian_on_termux.sh
    
  • to watch the installation process type

      tail -F $HOME/deboot_debian/debootstrap/debootstrap.log
    
  • if all went well (takes about 30min on the hardware below) a script is created to enter the debian guest system

      $HOME/bin/enter_deb
    
      Usage: enter_deb [options] [command]
      enter_deb: enter the installed debian guest system
    
        -0 - mimic root (default)
        -n - prefer regular termux uid (termux-uid)
    
  • sample usage: debian shell (stay in chrooted debian)

      bash-4.4$ enter_deb
      root@localhost:~#
    
  • sample usage: debian one-shot command (execute in chrooted debian and return to the host environment)

      bash-4.4$ enter_deb -n id\; hostname\; pwd\; cat /etc/debian_\*
      uid=10228(u0_a228) gid=10228(u0_a228) groups=10228(u0_a228),3003,9997,50228
      localhost
      /home/u0_a228
      9.1
      bash-4.4$
    
  • for suggestions or in the unlikely event of a problem just raise an issue here:-)

alternatives

reference

How to install Debian 9.2 chroot termux? #1645

debian-on-termux's People

Contributors

sp4rkie avatar dmole avatar bruno-m- avatar alexozer avatar

Watchers

James Cloos 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.