A-ads

How to install debian on Android without root | Both CLI ang GUI version

 Hallow friends welcome to our another useful blog post here I am going to explain you that how we can install and use Debian in our Android operating system without rooting the device.

Debian is a Unix-like computer operating system that is composed entirely of free software. It was first released in 1993 by Ian Murdock, co-founder of the Progeny Linux Systems company. The Debian project is managed by the Debian Project Leader and governed by the Debian Constitution. As of July 2016, the project had 12,372 Packages in its distribution archive, making it the largest collection of free software packages in use worldwide.

There are several ways to install Debian on Android on the Internet are available and most of them will require root access to the phone. But we all know that rooting the phone is not a good thing, if you are going to root your device then you are challenging the security of your phone and the warranty of your device will end when you root your phone.So in this tutorial I will tell you the safest and easiest way to install Debian on Android.

Install debian on Android using termux no root

Prerequisites

You should know the prerequisites before installing Debian on Android

Termux 

As we are going to install debian on Android with a safe method(without root) so we will need the termux application to execute commands on Android. Download termux application from F-Droid.

VNC viewer 

vnc viewer can remotely control a desktop anywhere in the world from Android device.
VNC viewer application is available on Google play store ,so go and download it first.

2GB free space

minimum 2GB free space of your device will be requiredl.

1 GB high speed data

A large 800 MB file and many other necessary files will be downloaded during the process so a minimum of 1 GB of high speed data will be required.

~Install Mr. Robot Fsociety tool in termux~

Installation of Debian CLI version in termux

StepI

Open your termux application and use the command pkg update && pkg upgrade to keep your packages up to date.

StepII

We will install proot-distro package in termux which is used for Installing and managing Linux distributions in termux.Like Debian, also other Linux distributions can be installed in termux easily with the help of proot-distro.

StepIII

Now we can install the CLI version of debian on our termux with the help of proot-distro package. Copy paste the command given below

After entering the above command it will take 2-3 minutes to install debian in your Termux application .

StepIV

After Debian is installed ,use the command given below launch Debian in your Termux application.

This is the CLI version of Debian that we installed in termux without root.

~ How to run java program on Android~

How to launch debian in termux with one command

After installing Debian in termux you will need to use the command "proot-distro login debian" everytime whenever you want to launch Debian in termux. Actually which is not a convenient way.To make this easier, we will use a simple two-line command in our Tarmux that will help us launch Debian with a single command everytime time.

echo "proot-distro login debian" > $PREFIX/bin/debian

Then

chmod +x $PREFIX/bin/debian

Now you can launch Debian by just typing debian in your Termux.

How to install GUI version of Debian on Android

Step1

Launch Debian on your Termux with the command debian and then use the command given below to update all packages

Step2

Now, we have to install gnome-desktop in our Debian environment with the command given below

After entering the above command approximately a 800mb file will be start downloading then installing in your termux .So it can take hours ,be patience and don't minimize the termux application.

Step3

Once gnome is installed in Debian then we have to  install vncserver , gnome flashback and vi editor.

Step4

After installing the two packages start vncserver and setup your password for vnc. And remember the password you enter because it will be required in the future.

To start vnc server type vncserver and hit Enter.
 

And again stop it with the command

Step5

Now we have to configure the xstartup file .use the command given below 👇
Then press the i button and clear the codes and paste all the lines written below

#!/bin/sh
 autocutsel -fork
 xrdb $HOME/.Xresources
 gnome-control-center "$VNCDESKTOP Desktop" &
 xsetroot -solid grey
 export XKL_XMODMAP_DISABLE=1
 export XDG_CURRENT_DESKTOP="GNOME-Flashback:Unity"
 export XDG_MENU_PREFIX="gnome-flashback-"
 unset DBUS_SESSION_BUS_ADDRESS
 gnome-session --session=gnome-flashback-metacity --disable-acceleration-check --debug &

And save the file by pressing ESC+:wq!+ENTR

Step6

Now start vncserver again using the given command

here -geometry is used to adjust the window according to the screen size of the mobile.I am using 1508x720 according to my mobile screen size you can change it according to your mobile screen size.

Step7

After starting the vncserver minimize the termux application and open the VNC Viewer application.click on the plus icon and set a connection by entering Address as localhost:1 and you can choose a name Debian or anything else.

Install debian on Android using termux no root

Press on the connect button and it will ask you to enter the password. Remember, here you have to enter the Same password which we have entered at step4. And then press on the ok button 

After connected successfully, you’ll see the GUI version of your Debian in your VNC Viewer.

Conclusion

This is how we can install Install the GUI and CLI version of Debian in our Android device with the help of Termux application and obviously without root .If you're stuck somewhere, you can watch the full practical video uploaded to YouTube.


Post a Comment

3 Comments