How to install and run Ubuntu in Android offline using Linux deploy - Root Method

    Hello guys, In this post, I will guide you through how you can install and run ubuntu OS in android using linux deploy.


Ubuntu OS is a derivative of linux like android but it is for PC system. 
Ubuntu is one of the popular OS for its design and capabilities and most of the linux users prefer it for working in linux environment.
It is like fresh feel of linux as it has more design and features than any other linux OS.


Disclaimer:
This method only works in smartphones which are rooted.

Requirements:

  • Rooted android Phone
  • Rar App
  • Es file explorer apk
  • Busy Box apk
  • Linux Deploy apk
  • Termius apk
  • Vnc viewer apk
  • Ubuntu img file


Method:


Installation of Required apps:




Downloading Ubuntu file:




Extraction of Ubuntu File:

  • After downloading the ubuntu img file,Open Es file explorer App.
  • In Es file, Open your download folder.
  • Extract the Zip file which you have downloaded and extract it using  Rar App.
  • Select both the file and click on extract.
  • Wait for the extraction to complete, Extracting usually takes about 4-5 minutes to complete as it is large file.
  • After extracting, Click on extracted folder and rename it to Ubuntu.
  • Move the Ubuntu folder outside of download folder.



Configuring of Busy Box:

  • Now open Busy box app and wait for the installation to complete.




Configuring of Linux Deploy app:

  • Now open, Linux deploy app, Wait for updation to complete.

  • Click on download  ↓  icon below, it will open properties window.
  • Follow the option given below:
  • Containerization method   => chroot
  • Distribution  => Ubuntu
  • Architecture  => armhf
  • Distribution suite  => xenial
  • Source path  => http://ports.ubuntu.com/
  • Installation type  => file
  • Installation path  => Copy and paste ubuntu img file path
  • Image size(MB) => automatic calculation
  • File system  => ext4
  • Username  => android
  • Password  => ubuntu
  • Privileged users  => root
  • DNS  => automatic detection
  • Enable:Allow to use initialization system  => tick to enable
  • Enable:Allow to use SSH server  => tick to enable
  • Enable:Allow to use a graphical environment  =>tick to enable
  • After following above options go back and select the three dots in the upper right corner.
  • Click on configure option and click OK to start configuration.
  • Wait for the configuration to complete which can take upto 4-5 minutes.
  • After the configuration process finishes, Click on Start option below to the start the container process.



Configuration of Termius App:

  • After the process of container is finished, minimise the app and open the termius app.
  • Click on Hamburger button  ≡  and select Hosts option.


  • Click on "+" icon and select New host option.
  • Now follow the option given below:
  • Hostname  => localhost
  • SSH  => tick to enable
  • port  => 22
  • Username  => android
  • Password  => ubuntu
  • After following all the options, click on tick mark in the upper right corner to apply changes.
  • It will create host, Click on it.
  • After that clicking the host you will get pop of RSA key confirmation, Click on connect.
  • After connecting, It will direct to the terminal.
  • Type the command in the terminal.
  • Command:
su
  • Type the password as toor
  • type the below command to star the vnc server.
  • Command:
vncserver
You will get address as localhost:01, where 01 is the session number which changes whenever you open thetermius.



Configuration of VNC:

  • Now go to Vnc viewer app, Click on "+" sign.

  • Type the following options:
  • Address  => localhost:01
  • Name      => Ubuntu
  • After typing the following option press done button.
  • Click on connect and press Ok to continue.
  • It will ask for password, Type it as ubuntu, Enable the remembr the password and press continue



Ubuntu on your Screen:

  • And there you Ubuntu in android with all the features
  • To close the ubuntu, Just press X symbol in upper right corner and close the app and go to the linux deploy app and press Stop to stop the container.


Here you go Ubuntu in android with root method.


Tutorial: