Skip to content

Installing Kali Linux Guide

Somebodyhura edited this page May 4, 2017 · 27 revisions

Installing

The best way to install Linux is to set a separate partition for it.

1_Insert your ram (atleast 16GB preferred class 10)

2_Install (Aparted) app for Android

3_Follow instructions and set atleast 8GB as ext4 for Linux installation and remain other for your own use (something like this: https://ibb.co/hSHYmQ)

4_then go into the Linux deploy, swipe right and go into settings

5_enable (lock screen), (wake lock), (CLI), (TELNET), (Localhost)

https://ibb.co/i2Ajt5

https://ibb.co/ex6URQ

6_tap REMOVE ENV and UPDATE ENV

7_head back and click on download icon and set options like this:

https://ibb.co/hq1URQ

https://ibb.co/iDMURQ

https://ibb.co/gLww6Q

https://ibb.co/m6Csfk

https://ibb.co/hcuSD5

Contain method: chroot (proot didn't work for me)

Distribution: Kali Linux

Architecture: Armhf

Distribution suite: Kali-rolling (It's better and newer)

Installation type: partition

Installation Path: /dev/block/mmcblk1p2 (if you set like me it's ok...if not and set ext4 in first row at Aparted app then replace p2 with p1, they mean partition number)

File system: ext4

Username: Android

User Password: (needed for vnc only)

Privileged user: root

DNS: Automatic

Localization: POSIX

INIT: (if you know how to work with, enable it...otherwise it's not needed, leave disabled)

MOUNTS: (Just like INIT)

SSH: enable (leave settings unaffected)

GUI: enable

Graphics subsystem: VNC (It's better than others)

GUI settings Depth: 24Bit

DPI: 75

width: 1600 height: 900 (I set them at this numbers because nowdays 16:9 is a good aspect ratio and native with many monitors and also you won't encounter problems with programs that are a bit large, so I recommend changing it from the default value, that resolution is not compatible for some apps they go out of border :/ )

VNC Options: (leave unaffected)

Desktop environment: LXDE (what you desire, but that's my recommendation)

8_now head back and click the three dot menu and tap on install and wait until installation finishes

9_now connect to 127.0.0.1 with your password in vnc viewer app (recommend com.realvnc.viewer.android)


TROUBLESHOOTING

1_Some packages cannot be retrieved/validated and get error/ignored, and thus Linux installed incomplete.

-check your Internet connection and make sure it is stable and fast

-Some packages are restricted or filtered (503), try this method: Install (Orbot) and go into options and enable (transparent proxy) and start the tor then start the installation

2_Linux fails to stop/unmount some items or Linux is still running after I hit stop button

-Just hit the stop button again after the first stop command finished and try it again until you get (the container is not mounted)

3_applications won't start by normally clicking on their icon

-Some applications require SU permission and some even don't respond if not in SU mode (for example synaptic package manager or Zenmap)

-Open a terminal and write "sudo" and type the application command (for example "synaptic") It should run now.

4_after formatting is done, my SD card is corrupt.

-Try making the "fat32" partition at first.

-eject SD card and inset it again, it should be known as a normal SD card now.

-remember to choose "use as a portable storage" so that the android won't reformat the SD card again back to it's default.

5_the mouse cursor icon is replaced by an (X) mark

-Open the menu (start button at windows) and go to perfences and click on "customize look and feel", it should be fixed.


FAQ

1_Contain method: Proot or chroot?

-proot is same as chroot but without the need of root access, however proot didn't worked for me so if you have root, just use the chroot then.

2_Architecture: wich one should I select?

-go to gsmarena.com and search your phone model and look for its cpu Architecture and select yours.

-ARMEL: for 32Bit devices at Armv4

-ARMHF: for 32Bit devices at Armv7 or higher.

-ARM64: for 64Bit devices with Arm chipset.

-i386: for 32Bit devices with Intel or AMD CPU.

AMD64: for 64Bit devices with Intel or AMD CPU.

3_Distribution suite: wich one should I select?

-If they are numbers, then higher is better and more stable

-If they are names, go to the distribution website and see what's their latest build codename and choose that.

-for example: Kali Linux new build name is "Kali-rolling" and Ubuntu new build name that is available in the app is "yakkety".

4_installation type: wich one should I select?

-I recommend installing as "partition" with the guide I provided above however I describe the others below

-FILE: Installs the Linux in an "image" file with ".Img" extention. Remember that fat32 SD cards won't allow a single file to be more than 4GB so that's the limit, unless you reformat your SD card to "exfat" if your phone supports.

-Directory: installs Linux in a directory. Just like how you install applications on Windows. Remember fat32 SD card won't allow a file path to be more than 260 characters so consider a short folder name in the root of your SD card

-Partition: installs Linux in a separate partition, away from being touched by Android system. Android can't mount ext4 as now and this way you can be sure that your Linux is free of any harm of Android and it's in an isolated place out of reach for Android. I recommend this way cuz some "Booster/cleaner" apps may delete Linux files cuz they thing that files are remains or residual files or temp files if you try installing as file or directory.

-RAM: Installs the Linux in your RAM. Remember you need a lot ram this way and I don't know if it's a good idea or not cuz I didn't tried it, sure it would be super fast, but, RAM is a temporary place for files...

5_File system: wich one should I select?

6_Desktop environment: wich one should I select?

7_Why WiFi pen-testing applications won't work? (aircrack-ng, fern, reaver etc...)

-These applications need to set WiFi driver on a special mode called "monitor" mode so that they can do debugging and thus allows them to do anything. However mobile device manufacturs usually don't put support for "monitor" mode in their WiFi modules and that's why they don't work. Check out this app, maybe your phone has "monitor" mode: https://play.google.com/store/apps/details?id=net.maxters.droid.airmon&hl=en&referrer=utm_source%3Dgoogle%26utm_medium%3Dorganic%26utm_term%3Dairmon&pcampaignid=APPU_1_qEILWb6MGIaqU5zwm6AL

Hope this helps Good luck and farewell---

---Somebodyhura

http://your_computer:3142/XXXX where XXXX is one of armdebian, armubuntu, or armkali

Clone this wiki locally