What is Debian?
Debian, also known as Debian GNU/Linux, is a GNU/Linux distribution composed of free and open-source software. It was developed by the community-supported Debian Project, which was established by Ian Murdock on August 16, 1993.
Installation
To install Debian on your device, you can follow these steps:
1. Install Termux
First, install Termux from F-Droid or Google Play Store.
2. Update & upgrade
Open Termux and run the following command to update and upgrade the package lists and install the necessary applications:
pkg update && apt upgrade -y && apt install proot-distro
3. Install Debian
Install Debian by executing the following command in Termux:
proot-distro install debian
4. Log in to Debian
log in to the Debian:
proot-distro login debian --bind /dev/null:/proc/sys/kernel/cap_last_last --shared-tmp
Installing a Desktop Environment
You can install lightweight desktop environments like XFCE4, LXDE, LXQt, or Mate Desktop. For a minimal installation, XFCE is recommended.
sudo apt-get update && apt upgrade && apt install mate* tigervnc* -y
Setting up the GUI
To start the VNC server, use the following command:
tigervncserver -geometry 2264x1080 -xstartup /usr/bin/mate-session -listen tcp :1
You can customize the desktop environment by changing the resolution in the geometry flag. To close the session, use the following command:
vncserver -kill :*
For xRDP, start the service using the command:
sudo service xrdp start
Connect to localhost:3389 and use xvnc to log in with your username and password.
Setting up Sound
To set up sound, use the following commands in Termux:
pulseaudio --start --exit-idle-time=-1
pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
In the VNC terminal, before running a program, use the following command to set the pulse server:
export PULSE_SERVER=127.0.0.1
With these steps, you can install Debian and set up a desktop env with Termux. Enjoy Debian on your device!