Linux

Ultimate Guide: Installing Kali Linux in Termux with Proot Distro



Looking to install Kali Linux in Termux using the Proot Distro method? Follow this step-by-step tutorial to get started:

Step 1: Update and Install Dependencies
To update and install dependencies, you can run the following commands in Termux:

pkg update && pkg upgrade -y
pkg install x11-repo
pkg install termux-x11-nightly pulseaudio proot-distro wget git nano -y

Step 2: Install Debian and Set Up Kali Linux
To install Debian and set up Kali Linux, follow these steps:

1. Install Debian:

proot-distro install debian

2. Login to the Debian environment:

proot-distro login debian

3. Update Debian and install necessary packages:

apt update -y && apt install sudo nano gnupg adduser -y

4. Add a new user named “kali”:

adduser kali

5. Edit the sudoers file to grant sudo access to the user “kali”:

visudo

Add the following line to the file:

kali ALL=(ALL:ALL) ALL

6. Verify the current user:

sudo whoami

7. Login to the Debian environment as the user “kali” with shared temporary directory:

proot-distro login debian –user kali –shared-tmp

After following these steps, you should have Debian and Kali Linux set up in Termux.

After executing the provided commands, the Kali Linux repositories will be added to the sources.list file.
This will allow you to install Kali Linux packages on your Debian system.
To add the Kali Linux repositories, you need to open the sources.list file using the nano text editor.

You can do this by running the following command:
nano /etc/apt/sources.list

Once the file is open, add the following lines to the end of the file:
deb kali-rolling main contrib non-free non-free-firmware
deb kali-last-snapshot main contrib non-free non-free-firmware

To save the changes, press Ctrl+O, hit enter, and then press Ctrl+X to exit the nano editor.

If you encounter any error problems, you can try importing the GPG key for the Kali Linux repositories. Run the following commands:
gpg –keyserver pgpkeys.mit.edu –recv-key ED444FF07D8D0BF6
gpg -a –export ED444FF07D8D0BF6 | sudo apt-key add –

Password: sudo password

sudo apt-key adv –keyserver hkp://keys.gnupg.net –recv-keys ED444FF07D8D0BF6

After importing the key, update the package list and install the XFCE desktop environment by running the following commands:
sudo apt update -y
sudo apt install kali-desktop-xfce -y

Once the installation is complete, you can exit the current user session by running the exit command.

Next, you need to set up the XFCE desktop environment. Download the necessary script by running the following command:

startxfce4_debian.sh : To see this related this file you can join oathanrexyt telegram channel

Make the script executable by running:
chmod +x startxfce4_debian.sh

Open the script using the nano text editor:
nano startxfce4_debian.sh

Replace the –droidmaster username with your own username. Once done, save the changes by pressing Ctrl+O, hit enter, and then press Ctrl+X to exit the nano editor.

Rename the script to xfce.sh by running the following command:
mv startxfce4_debian.sh xfce.sh

To create a shortcut command for starting the XFCE desktop environment, create kex file using the nano editor:
nano /usr/bin/kex

Enter the following line:
bash xfce.sh

Save the changes by pressing Ctrl+O, hit enter, and then press Ctrl+X to exit the nano editor.
Make the kex file executable by running the following command:
chmod +x /usr/bin/kex

Now run kex command to start G.U.I mode.

Finally, you can start the XFCE desktop environment by running the kex command.

Don’t forget to subscribe for more tutorials and updates!

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button