How to Install and Run Ubuntu in Android without Root
Ubuntu OS is another version of linux, and its main focus is on customization, feature enhancements and funcionality.Ubuntu is favourite among linux community as it has features of linux distros and you can say that it is styled version of linux.
In android, If you want to run ubuntu, You need to have root privileges but due termux now we can run it in android without root and get all features of ubuntu on your palm of your hands.
To run ubuntu in android, you need to install a distro called proot or you say it as fake root, Proot is chroot with userspace implementation, proot uses mount --bind and binfmt_misc by which users dont need to have setup arbitrary directory as the new root file system. which means proot uses ptrace system call to fake root privileges.
To start a session or execute one command from from fake chroot you can use Proot command.
Proot-Distro is an utility for managing installation of the linux distribution in Termux.
Requirements:
- Termux
- Bvnc Viewer
Method:
Installation of Apps and other files:
- Download and install above mentioned apps.
Setting up termux storage:
- Open the termux, type the following commands:
- Command:
- Command:
Installation of proot-distro and ubuntu:
- Now we need to install proot, inorder to install ubuntu, so type the following commands.
- Command:
- Command:
This command will install the latest version of ubuntu, This installation may take a while as it will download the ubuntu in compressed file and unpacking the file may take time.
- Command:
This command will be used to login in linux distro.
- Command:
Update the packages inside the linux distro by using this command.
Installation of udisk2:
- Command:
This command will install udisks2 package.
- Command:
This command will remove any udisk2 error.
Installation of Ubuntu theme and VNC:
- Command:
This commad will install the ubuntu kubuntu theme gui and vnc server for ubuntu.
Setting up vnc server:
- Command:
This command will start the vnc server.
- Command:
This command will end the vncserver session.
Fixing the browser:
- Command:
- Command:
This command will start the firefox browser.
Setting up audio in ubuntu:
- Command:
This command will install pulse audio in termux.
- Command:
This command will start the pulse audio in termux.
- Command:
This command will add pulse audio server to the above ip.
- Command:
This command will connect the pulse audio to the ubuntu using the above mentioned server.