Hello everyone welcome to my Blog, in this Tutorial, I'm gonna show you how to install Debian with the LXDE desktop environment On your Android phone, I'm gonna take you through the Installation and setup procedures in this article so make sure you read till the end and watch the video at the end of the article to guide yourself and finally be able to do this yourself on your Android phone.
Prerequisites:
Procedures:
Launch your termux terminal and update Termux packages with the command
- Pkg update
After updating termux we're going to install a Package called proot-distro, proot-distro is a Linux package Used in installing Linux distro on Android phones, to install proot-distro use the command:
- apt install proot-distro
Now that proot-distro is installed, you can now install debian with the command:
- proot-distro install debian
Once debian is installed, the next thing you're going to do is login. You can login to ubuntu with the command:
- proot-distro login debian
Now we're going to update and upgrade Debian repositories, you can do that with the command:
- apt update && apt upgrade
After the update is complete, install sudo nano. You can install sudo nano with the command:
- apt install sudo nano
Now you can proceed with the LXDE desktop environment installation. To do that use the command
- apt install lxde lxde-core -y
The installation should take a while, after the installation has been finished, we're going to install some extra packages. Install Extra packages with the command:
- apt install qterminal dbus-x11 tigervnc-standalone-server
Now after the above packages has been installed, the next thing we're going to do is of course, login to our Desktop interface, due to lag I usually get from the usual vncserver method, I prefer connecting using another method that I call the TCP method that I'm gonna show you in the next step.
Logging In To desktop environment using (TCP method)
Open a new terminal to Termux and update Termux packages using the command
- pkg update
After updating packages, the next thing you'd do is install x11-repo. You can do that with the command
- pkg install x11-repo
Aftet installing x11-repo, you'd install tigervnc and an X server. To do that use the command
- pkg install tigervnc xorg-xhost
Now launch vncserver on Termux with the command
- vncserver -geometry 1600x700 -listen tcp :1
After launching the sever we're going to make it available for connection on any localhost server using the command
- DISPLAY=:1 xhost +
No switch back toy your Ubuntu Linux session and connect your LXDE to the local server using the command.
- DISPLAY=:1 dbus-launch lxsession
Now launch your Vnc Application and connect to your LXDE desktop the usual way. And if you have any question, feel free to let me know in the comments section below.