{"id":24213,"date":"2024-01-31T14:05:52","date_gmt":"2024-01-31T14:05:52","guid":{"rendered":"https:\/\/linuxways.net\/?p=24213"},"modified":"2024-01-31T14:05:52","modified_gmt":"2024-01-31T14:05:52","slug":"install-kali-linux-android","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/kali-linux\/install-kali-linux-android\/","title":{"rendered":"How to Install Kali Linux on Android"},"content":{"rendered":"<p><strong>Kali Linux <\/strong>is a robust operating system used by the developers for hacking purposes and penetration testing. You can install <strong>Kali Linux <\/strong>on multiple platforms, no matter which device you are using, including your Android phone as well. Installing <strong>Kali Linux<\/strong> on Android may not be a simple task compared to installing it on other devices like Laptop, Chromebox, or Raspberry Pi. The reason is you will need to root your device to use the operating system on your Android phone. However, rooting the device can impact your phone warranty or destroy your operating system. Thus, it is generally avoided to protect the phone from any damage.<\/p>\n<p>Follow this guide to learn the easy way for installing <strong>Kali Linux <\/strong>on an Android phone without rooting the device. Together with <strong>Kali Linux<\/strong> and Android, you can develop a portable hacking environment where you can execute several important tasks useful for beginning your ethical hacking adventures.<\/p>\n<h2><strong>Outline<\/strong><\/h2>\n<ul>\n<li><a href=\"#post-24213-_8ta1mn4n569y\"><strong>Prerequisites for Installing Kali Linux on Android<\/strong><\/a><\/li>\n<li><a href=\"#post-24213-_g35u315rnjkr\"><strong>How to Install Kali Linux on Android<\/strong><\/a><\/li>\n<li><a href=\"#post-24213-_sku9whf441uz\"><strong>How to Access Kali Linux Desktop with NetHunter on Android<\/strong><\/a><\/li>\n<li><a href=\"#post-24213-_4z5slithsa8v\"><strong>How to Keep Kali Linux Session Running on Android<\/strong><\/a><\/li>\n<li><a href=\"#post-24213-_r0iuoyuz2wn2\"><strong>How to Fix Repository Update Problem in Kali Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-24213-_fjspplhl2trj\"><strong>Bonus Method: How to Install Kali Linux on Android with Root<\/strong><\/a><\/li>\n<li><a href=\"#post-24213-_84t4ucwu90bt\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-24213-_8ta1mn4n569y\"><\/a><strong>Prerequisites for Installing Kali Linux on Android<\/strong><\/h2>\n<p>To install <strong>Kali Linux <\/strong>on Android, you will require following prerequisites:<\/p>\n<ul>\n<li>Fdroid Application (Optional)<\/li>\n<li>Termux Emulator (Compulsory)<\/li>\n<li>NetHunter (Optional)<\/li>\n<li>LADB Connect (Compulsory)<\/li>\n<li>VNC Client (Optional if want to access Kali Linux Desktop)<\/li>\n<\/ul>\n<h2><a id=\"post-24213-_g35u315rnjkr\"><\/a><strong>How to Install Kali Linux on Android<\/strong><\/h2>\n<p>You can install <strong>Kali Linux<\/strong> on Android phone using the following steps:<\/p>\n<p><strong>Step 1: Download and Install Fdroid on Android <\/strong><\/p>\n<p><strong>Fdroid <\/strong>is an open-source platform similar to Google Play Store that allows you to download Android supported applications on mobile. You can download and install this tool on your Android phone, this can be done by downloading the <strong>apk<\/strong> file from <a href=\"https:\/\/f-droid.org\/\"><strong>here<\/strong><\/a> and installing it on your device.<\/p>\n<p><strong>Step 2: Install Termux Emulator on Android<\/strong><\/p>\n<p>You should also require a <strong>Termux emulator <\/strong>on your Android phone that allows you to perform <strong>Kali Linux<\/strong> installation on mobile. You can download the <strong>Termux emulator<\/strong> on Android by opening the <strong>Fdroid<\/strong> application and searching for <strong>Termux<\/strong> emulator with package option. Then, select the<strong> Install<\/strong> button for installing the <strong>Termux emulator<\/strong> on your Android phone.<\/p>\n<p>You can also download and install <strong>Termux emulator<\/strong> on Android by downloading the <strong>apk<\/strong> file from <a href=\"https:\/\/github.com\/termux\/termux-app\/releases\"><strong>GitHub website<\/strong><\/a> and installing it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"965\" height=\"346\" class=\"wp-image-24273\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-1.png 965w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-1-300x108.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-1-768x275.png 768w\" sizes=\"auto, (max-width: 965px) 100vw, 965px\" \/><\/p>\n<p><strong>Step 3: Download NetHunter Application<\/strong><\/p>\n<p>You may also download and install the <strong>NetHunter<\/strong> application on your Android phone from the apk file through <a href=\"https:\/\/store.nethunter.com\/en\/\"><strong>here<\/strong><\/a><strong>. <\/strong>This application will manage a VNC supported application that allows you to use the <strong>Kali Linux<\/strong> desktop interface on your Android phone using the <strong>keyx<\/strong> command-line utility.<\/p>\n<p><strong>Note: <\/strong>The <strong>NetHunter<\/strong> application will help update the VNC supported applications.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"459\" class=\"wp-image-24282\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-2.png 763w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-2-300x180.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-2-501x300.png 501w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/p>\n<p><strong>Step 4: Setup Environment for Kali Linux on Termux<\/strong><\/p>\n<p>Now, open <strong>Termux<\/strong> on your Android phone and allow it to access your Android phone storage for installing packages on your device, you can do this using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">termux-setup-storage<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1160\" height=\"476\" class=\"wp-image-24301\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-3.png 1160w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-3-300x123.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-3-1024x420.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-3-768x315.png 768w\" sizes=\"auto, (max-width: 1160px) 100vw, 1160px\" \/><\/p>\n<p>A pop-up window will appear once you execute the above command, select the <strong>Allow<\/strong> option to ensure <strong>Termux<\/strong> has access to your device storage.<\/p>\n<p>Now, run the following command after that to update the packages repository for <strong>Termux<\/strong>:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">pkg update <span class=\"sy0\">&amp;&amp;<\/span> pkg upgrade <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1183\" height=\"454\" class=\"wp-image-24317\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-4.png 1183w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-4-300x115.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-4-1024x393.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-4-768x295.png 768w\" sizes=\"auto, (max-width: 1183px) 100vw, 1183px\" \/><\/p>\n<p><strong>Note:<\/strong> If you experience any error while updating the package, you can use the following command to set or change the repository for <strong>Termux<\/strong>:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">termux-change-repo<\/div><\/div>\n<p>Then go with the default option for the <strong>Termux<\/strong> repository changing process.<\/p>\n<p><strong>Step 5: Install wget Command Line Utility on Termux<\/strong><\/p>\n<p>You may require installing the <strong>wget <\/strong>command line utility on <strong>Termux<\/strong>, since you will need it later on for downloading the script, this can be done using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">pkg <span class=\"kw2\">install<\/span> <span class=\"kw2\">wget<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"925\" height=\"199\" class=\"wp-image-24329\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-5.png 925w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-5-300x65.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-5-768x165.png 768w\" sizes=\"auto, (max-width: 925px) 100vw, 925px\" \/><\/p>\n<p><strong>Step 6: Download Kali Linux Installation Script<\/strong><\/p>\n<p>Now, download the<strong> Kali Linux<\/strong> installation script on <strong>Termux <\/strong>using the below-given wget command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> https:<span class=\"sy0\">\/\/<\/span>gitlab.com<span class=\"sy0\">\/<\/span>kalilinux<span class=\"sy0\">\/<\/span>nethunter<span class=\"sy0\">\/<\/span>build-scripts<span class=\"sy0\">\/<\/span>kali-nethunter-project<span class=\"sy0\">\/<\/span>raw<span class=\"sy0\">\/<\/span>master<span class=\"sy0\">\/<\/span>nethunter-rootless<span class=\"sy0\">\/<\/span>install-nethunter-termux<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1370\" height=\"448\" class=\"wp-image-24345\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-6.png 1370w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-6-300x98.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-6-1024x335.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-6-768x251.png 768w\" sizes=\"auto, (max-width: 1370px) 100vw, 1370px\" \/><\/p>\n<p><strong>Step 7: Allow Execute Permission to Script<\/strong><\/p>\n<p>You should also provide execute permission to the downloaded<strong> Kali Linux <\/strong>script file on <strong>Termux<\/strong> using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">chmod<\/span> +x install-nethunter-termux<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"140\" class=\"wp-image-24354\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-7.png 1012w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-7-300x42.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-7-768x106.png 768w\" sizes=\"auto, (max-width: 1012px) 100vw, 1012px\" \/><\/p>\n<p><strong>Step 8: Execute the Script<\/strong><\/p>\n<p>Then run the <strong>Kali Linux<\/strong> installation script file on <strong>Termux<\/strong> from the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">.<span class=\"sy0\">\/<\/span>install-nethunter-termux<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1399\" height=\"482\" class=\"wp-image-24367\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-8.png 1399w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-8-300x103.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-8-1024x353.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-8-768x265.png 768w\" sizes=\"auto, (max-width: 1399px) 100vw, 1399px\" \/><\/p>\n<p>During the installation, you will be provided with several options to choose from, you can go with the default one by simply typing <strong>N <\/strong>on the command prompt. At the final stage of installation, you may be asked to delete downloaded <strong>rootfs <\/strong>file, do it by entering <strong>y <\/strong>in the option box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1379\" height=\"484\" class=\"wp-image-24378\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-9.png 1379w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-9-300x105.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-9-1024x359.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-9-768x270.png 768w\" sizes=\"auto, (max-width: 1379px) 100vw, 1379px\" \/><\/p>\n<p><strong>Step 9: Select Kali Linux Version<\/strong><\/p>\n<p>After the execution of the script file, you will be provided with three <strong>Kali Linux <\/strong>options to choose from:<\/p>\n<p><strong>Nethunter ARM64 (full): <\/strong>It offers a complete <strong>Kali Linux<\/strong> distribution for 64-Bit amd architecture with several tools for ethical hacking. It is suitable for advanced users since it includes core toolsets of the <strong>Kali Linux<\/strong> system.<\/p>\n<p><strong>Nethunter ARM64 (minimal): <\/strong>It only includes a limited set of tools providing users to start their ethical hacking journey, it is useful for resource-constrained users.<\/p>\n<p><strong>Nethunter ARM64 (nano): <\/strong>It is the most lightweight OS for Android that includes a few tools that usually focus on specific tasks like wireless attacks.<\/p>\n<p>Here, I have chosen the <strong>NetHunter ARM64 (full), <\/strong>once selected, the installation will begin that can take some time because of the large image size.<\/p>\n<p>The process will begin installing <strong>Kali Linux <\/strong>on your Android storage after the above step.<\/p>\n<p><strong>Step 10: Launch Kali Linux on Android<\/strong><\/p>\n<p>Once the above step is completed, <strong>Kali Linux<\/strong> will be installed on your Android phone, and you can launch it by running the following command on Termux:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">nethunter<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1397\" height=\"496\" class=\"wp-image-24404\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-11.png 1397w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-11-300x107.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-11-1024x364.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-11-768x273.png 768w\" sizes=\"auto, (max-width: 1397px) 100vw, 1397px\" \/><\/p>\n<p>You can confirm the success of<strong> Kali Linux<\/strong> installation on your Android phone by running the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">cat<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>os-release<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1057\" height=\"462\" class=\"wp-image-24419\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-12.png 1057w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-12-300x131.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-12-1024x448.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-12-768x336.png 768w\" sizes=\"auto, (max-width: 1057px) 100vw, 1057px\" \/><\/p>\n<h2><a id=\"post-24213-_sku9whf441uz\"><\/a><strong>How to Access Kali Linux Desktop with NetHunter on Android<\/strong><\/h2>\n<p>To access <strong>Kali Linux<\/strong> desktop with <strong>NetHunter <\/strong>on your Android phone, you should install <a href=\"https:\/\/store.nethunter.com\/en\/packages\/com.iiordanov.bVNC\/\"><strong>bVNC Pro<\/strong><\/a> or <a href=\"https:\/\/store.nethunter.com\/en\/packages\/com.offsec.nethunter.kex\/\"><strong>NetHunter Keyx <\/strong><\/a>application on your device.<\/p>\n<p><strong>Note: <\/strong>Here, we have installed <strong>bVNC Pro<\/strong> on Android.<\/p>\n<p>After you have completed the installation, run the following command to generate a session for the <strong>Kali Linux <\/strong>desktop on <strong>Termux<\/strong>.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">kex<\/div><\/div>\n<p>Initially, you will have to set the password that you will use when accessing the <strong>Kali Linux<\/strong> on VNC-based application:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1165\" height=\"390\" class=\"wp-image-24424\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-13.png 1165w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-13-300x100.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-13-1024x343.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-13-768x257.png 768w\" sizes=\"auto, (max-width: 1165px) 100vw, 1165px\" \/><\/p>\n<p>After setting the password, start the <strong>NetHunter <\/strong>session using the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">kex start<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1209\" height=\"260\" class=\"wp-image-24428\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-14.png 1209w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-14-300x65.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-14-1024x220.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-14-768x165.png 768w\" sizes=\"auto, (max-width: 1209px) 100vw, 1209px\" \/><\/p>\n<p>Then open the<strong> bVNC Pro <\/strong>on Android and set the:<\/p>\n<ul>\n<li><strong>Connection type<\/strong> as <strong>Basic VNC<\/strong><\/li>\n<li><strong>Connection Name <\/strong>according to your choice<\/li>\n<li><strong>VNC Server <\/strong>as local host<\/li>\n<li><strong>Port Number <\/strong>as 5901<\/li>\n<li><strong>VNC username<\/strong> leave it as empty<\/li>\n<li><strong>VNC Password <\/strong>you set previously<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1386\" height=\"554\" class=\"wp-image-24431\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-15.png 1386w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-15-300x120.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-15-1024x409.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-15-768x307.png 768w\" sizes=\"auto, (max-width: 1386px) 100vw, 1386px\" \/><\/p>\n<p>Save the session using the<strong> save<\/strong> button and tap on the created session to access the <strong>Kali Linux<\/strong> desktop on Android:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1449\" height=\"620\" class=\"wp-image-24438\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-16.png 1449w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-16-300x128.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-16-1024x438.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-16-768x329.png 768w\" sizes=\"auto, (max-width: 1449px) 100vw, 1449px\" \/><\/p>\n<h2><a id=\"post-24213-_4z5slithsa8v\"><\/a><strong>How to Keep Kali Linux Session Running on Android<\/strong><\/h2>\n<p>The <strong>Kali Linux<\/strong> session may only run for a few seconds, however, you can keep it running on your device for a longer run using the following steps:<\/p>\n<p><strong>Step 1: Install LADB Connect on Android<\/strong><\/p>\n<p>First, install <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=app.ladb.connect&amp;pli=1\"><strong>LADB Connect<\/strong><\/a> on Android from Play Store.<\/p>\n<p><strong>Step 2: Enable Developer Mode on Android<\/strong><\/p>\n<p>Then enable <strong>Developer<\/strong> mode on your Android phone from the <strong>About <\/strong>section in the system settings. The settings could be different on different mobile models, you should check the manual guide to enable developer mode on your Android phone.<\/p>\n<p><strong>Step 3: Run LADB Connect on Android<\/strong><\/p>\n<p>Now, run <strong>LADB Connect<\/strong> on your Android phone:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1168\" height=\"611\" class=\"wp-image-24441\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-17.png 1168w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-17-300x157.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-17-1024x536.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-17-768x402.png 768w\" sizes=\"auto, (max-width: 1168px) 100vw, 1168px\" \/><\/p>\n<p>Then enable Floating Window, USB debugging first, Wi-Fi Debugging. After that, enter the Wi-Fi debugging option to check for the pairing code and port number associated with that code in the<strong> Pair device with pairing code <\/strong>option. You must enter the provided information to pair your device with the<strong> LDB Connect<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"292\" height=\"408\" class=\"wp-image-24442\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-18.png 292w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-18-215x300.png 215w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><\/p>\n<p>Once done, click the \u201c<strong>Connect<\/strong>\u201d button to establish connection with Android phone:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1130\" height=\"610\" class=\"wp-image-24444\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-19.png 1130w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-19-300x162.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-19-1024x553.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-19-768x415.png 768w\" sizes=\"auto, (max-width: 1130px) 100vw, 1130px\" \/><\/p>\n<p>Then execute the below-given command in the<strong> LADB<\/strong> shell to complete the process:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"sy0\">\/<\/span>system<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span>device_config put activity_manager max_phantom_processes <span class=\"nu0\">2147483647<\/span><\/div><\/div>\n<p><strong>Step 4: Run the Kali Linux Session<\/strong><\/p>\n<p>After, you perform the above steps, re-run the <strong>Kali Linux<\/strong> session using the <strong>keyx start<\/strong> command and access the system. It will run the session in the background and will remain saved for you.<\/p>\n<h2><a id=\"post-24213-_r0iuoyuz2wn2\"><\/a><strong>How to Fix Repository Update Problem in Kali Linux<\/strong><\/h2>\n<p>While running the apt command to update or install applications on <strong>Kali Linux<\/strong>, you will get <strong>Temporary failure resolving..<\/strong> Error.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1377\" height=\"384\" class=\"wp-image-24448\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-20.png 1377w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-20-300x84.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-20-1024x286.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-20-768x214.png 768w\" sizes=\"auto, (max-width: 1377px) 100vw, 1377px\" \/><\/p>\n<p>This type of error occurs because of a network-related issue, and it prevents you from performing any activity on the terminal, you can fix it using the following steps:<\/p>\n<p><strong>Step 1:<\/strong> <strong>Login as a Root User in Terminal<\/strong><\/p>\n<p>First, give root permission to your current user using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"re5\">-i<\/span><\/div><\/div>\n<p><strong>Step 2: Remove the resolv.conf File<\/strong><\/p>\n<p>Then remove the <strong>resolv.conf <\/strong>file from your system using the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">rm<\/span> <span class=\"re5\">-rf<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>resolv.conf<\/div><\/div>\n<p><strong>Step 3: Add Server Information<\/strong><\/p>\n<p>Add the server information inside the <strong>resolv.conf<\/strong> file using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">echo<\/span> <span class=\"st0\">&quot;nameserver 8.8.8.8&quot;<\/span> <span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>resolv.conf<\/div><\/div>\n<p><strong>Step 4: Save the Changes<\/strong><\/p>\n<p>Now, save the configuration file using <strong>CTRL+X<\/strong>, adding<strong> Y<\/strong> for approving the changes and pressing the<strong> Enter<\/strong> button to close the file.<\/p>\n<p>After you perform the above steps, you will be able to run apt commands and install packages on the terminal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1136\" height=\"662\" class=\"wp-image-24451\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-21.png 1136w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-21-300x175.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-21-1024x597.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24213-21-768x448.png 768w\" sizes=\"auto, (max-width: 1136px) 100vw, 1136px\" \/><\/p>\n<p>This completes your installation with <strong>Kali Linux<\/strong> on the Android phone.<\/p>\n<h2><a id=\"post-24213-_fjspplhl2trj\"><\/a><strong>Bonus Method: How to Install Kali Linux on Android with Root<\/strong><\/h2>\n<p>It is strictly advised not to install <strong>Kali Linux <\/strong>on Android with root if you don\u2019t have proper understanding. However, if you are professional and have sound knowledge of the <strong>Kali Linux <\/strong>system, you can put your device at risk and can install <strong>Kali Linux<\/strong> on Android with root from <a href=\"https:\/\/www.kali.org\/docs\/nethunter\/installing-nethunter\/\"><strong>here<\/strong><\/a>. There, you will find the installation procedure of <strong>Kali Linux<\/strong> on different phone models.<\/p>\n<h2><a id=\"post-24213-_84t4ucwu90bt\"><\/a><strong>Conclusion<\/strong><\/h2>\n<p>Installing <strong>Kali Linux <\/strong>on Android allows you to use the operating system anywhere and it can be installed on your phone with and without root. If you want to install <strong>Kali Linux <\/strong>on Android with root, you have to use <strong>Termux <\/strong>and <strong>NetHunter<\/strong> tools. We have provided the step-by-step details to install and use these tools for installing Kali Linux on Android. Further, we have also provided you with steps to access the Kali Linux desktop, keep the session up and running for a longer time. Besides that, you will also find a guide on how to fix the repository error to seamlessly install applications on your <strong>Kali Linux<\/strong> system installed through <strong>Termux<\/strong> on Android.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can install Kali Linux on Android by using the Termux emulator and NetHunter without rooting the device. Read this guide for more details.<\/p>","protected":false},"author":116,"featured_media":24460,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1054],"tags":[],"class_list":["post-24213","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kali-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/116"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=24213"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24213\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/24460"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=24213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=24213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=24213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}