How to install Debian On Android | No Root Required !

 


Hello friends, Today we will see how we can install and use Debian 11 On android with desktop even without rooting our device.

Debian is free and open-source Linux Distro community-supported Debian Project. It is one of the most popular Linux distro. Many popular distro like Ubuntu, Kali are based on Debian. 

Prerequisite


Installation

First of all update your termux repositories and install proot distro.

pkg update && pkg install proot-distro


Then, Install debian via proot-distro.

proot-distro install debian


Once Debian is installed then login to debian and update its repsitories.

proot-distro login debian & apt update


Now we have to add a user to our distro because you may harm your system if you use root user.

adduser <username>


Next we have configure sudoers file so that we can have superuser access to our user.

nano /etc/sudoers

Now you we see a line starting with root just copy that line and just after that line paste the text that you copied and replace root with your username.






Once you have done that just save it by  ctrl  +  o and exit by  ctrl  +  x

Now login to your temporary user.

su {username}

Next we have to install gnome desktop.

sudo apt install task-gnome-desktop


Once gnome is installed then, install vncserver amd gnome flashback.

sudo apt install gnome-session-flashback tightvncserver


Once it has installed then start vncserver and setup your password for vnc.

vncserver
 


Now we have to configure xstartup file.

nano .vnc/xstartup

clear all the line in it and paste the following

#!/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 &

Now stop vnc server.

vncserver -kill :1

Now start vncserver again.

vncserver -geometry 1920x1080

You can change 1920x1080 according to  your device .

Now open VNC viewer app and create a connection with localhost:1 and connect.

Here is the complete video tutorial for you :-




Post a Comment (0)
Previous Post Next Post