Coder Social home page Coder Social logo

debian-noroot's Introduction

Run Debian on top of Android with a single click.

No root required! Should work on any high-end device! Unleash full unrestricted desktop environment onto your mobile device! Instant frustration guaranteed! (unless you're using mouse or stylus).

This app is NOT full Debian OS - it is a compatibility layer, which allows you to run Debian applications. Your phone is NOT rooted during installation. Also, this is NOT official Debian.org release.

There are several limitations:

  • It cannot mess up your Android device, because it's a regular well-behaved Android app, which does not need root access.
  • No audio support. Some time ago PulseAudio was somewhat supported, but now it's broken.
  • No OpenGL support. It's possible to add it but it's a huge chunk of work, and I will not be doing that.
  • No access to the device hardware. That means you cannot re-partition SD card, you cannot burn CD-Roms, you cannot run ping or sniff your network etc.
  • No ability to move app to SD card, so you will need a lot of internal storage.
  • Most servers such as SSH or Apache won't start, because they all need root features. You can use tightvncserver instead of SSH, and wbox instead of Apache as a simple file sharing web server,

How does that work.

The Debian graphical shell is launched using PRoot, the ultimate Linux virtualization solution: http://proot.me/ Then it launches XSDL X server to render it to screen.

Development.

You'll need Android SDK and following packages:

sudo apt-get install autoconf automake debhelper build-essential libtool qemu-user-static debootstrap emdebian-archive-keyring realpath pxz
echo deb http://www.emdebian.org/debian/ unstable main | sudo tee /etc/apt/sources.list.d/emdebian.list
sudo apt-get update
sudo apt-get install g++-4.7-arm-linux-gnueabihf
mkdir ~/bin
cd ~/bin
ln -s /usr/bin/arm-linux-gnueabihf-gcc-4.7 arm-linux-gnueabihf-gcc
ln -s /usr/bin/arm-linux-gnueabihf-g++-4.7 arm-linux-gnueabihf-g++

Run

git submodule update --init --recursive
./build.sh

That should compile PRoot, libandroid-shmem.so used to speed up drawing speed, and libdisableselinux.so used to prevent Debian from messing up with Android security features.

Busybox is precompiled, taken from this repository: https://github.com/pelya/busybox-android

The scripts for creating Debian images are located in directory "img". To prepare image, run these scripts:

cd img
sudo ./img-debian-jessie-x86.sh
sudo ./img-debian-jessie-armhf.sh
sudo ./img-debian-jessie--prepare-obb.sh

The XSDL X server is in an external repository - to compile it, follow instructions here: https://github.com/pelya/commandergenius/tree/sdl_android/project/jni/application/xserver-debian then install resulting .apk file on your Android device, and run it.

There are two patched Debian packages in directory pkgs with their patches, used to improve GIMP drawing speed and fix a crash at start in Inkscape, you will need to create Debian chroots for armhf and i386 arhitecture, and build these packages from inside these chroots.

debian-noroot's People

Contributors

pelya avatar atondwal avatar olaurino avatar

Watchers

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