So a few months back (Sept. 2016) I wrote a piece here about installing Kali Linux on an Android device. Unfortunately that guide is no longer valid, as Kali Sana the branch of Kali on which it was based has been deprecated and removed from the official repositories and is only available on backup repositories and is set to be removed from those too in the near future. So a new challenge appeared. The obvious route was to check if Linux Deploy's out of the box method was working this time. But again there were a few quirks prohibiting a smooth installation and execution. So this is an updated guide as of Feb. 2017 on how to install and lunch Kali Linux on an Android mobile device. You will notice that a lot of the steps are the same, that's because the base approach is the same it's a few details that had to be changed.
The Requirements
- A ROOTED android smartphone (Tested on Android 4.4.4, MTK6752)
- A 16 GB class 10 SD card (It should work with internal storage somehow but haven't tested)
- Linux Deploy
- Terminal Emulator
- BusyBox
- Link2SD
- (Optional) An ssh app (I used ConnectBot)
Preparation
- Partition the SD and format each partition (THIS WILL DELETE YOUR DATA). You'll need:
- 1st Partition 512 MB formatted in FAT32
- 2nd Partition the rest of the SD formatted in EXT2
- Install the APPs listed above
- Open Link2SD
- You should be greeted by this screen
- Select ext2 and press ok
- When prompted reboot your device
- Open BusyBox
- Press INSALL
Installation
- Open Linux Deploy (From here on ensure constant Wifi connection and power)
- Press your phone's menu button
- Press status
- Under Available mount point there should be something like /data/sdext2, make note of that.
- Press the button on the right (looks like a download icon)
- In Distribution select Kali Linux
- In Distribution Suite select kali-rolling
- In Architecture select armhf
- In Installation type select Directory
- In Installation Path type in the path you took note of before
- (Optional) Change Username & Password
- Set DNS server to 8.8.8.8 (Google's Public DNS server) since the default tends to fail
- Set Localization to en_US.UTF-8
- Under the Init Menu check enable
- Under Init System choose sysv
- Under SSH check enable
- Under SSH Settings > SSH options write the following
- ServerAliveInterval 15
- This will ensure the connection doesn't timeout during the installation of packets that can take up to hours.
- (Optional) Enable GUI options like VNC (won't get into it here)
- Press Menu > Install
- This might take a while ...
- When you see "<<<install" on Linux Deploy's logs the installation has finished
- Press Menu > Configure
- (If there was no error your system is now ready to boot).
- Here's where things change. DON'T PRESS START!
- Exit Linux Deploy by pressing the App's menu button and then Exit.
- Open Terminal Emulator
su
/data/data/ru.meefik.linuxdeploy/bin/linuxdeploy shell
service ssh start
exit
exit
- This should Start Kali
- After every restart of the mobile device Kali has to start as demonstrated in the previous step (will provide automation script in following article)
- I have yet to find how to stop Kali without rebooting the device (which is what Linux Deploy does when you press stop). If anyone has any ideas feel free to drop a comment
- Now from ConnectBot ssh to yourusername@localhost
sudo apt-get update
sudo apt-get dist-upgrade
- (if prompted)
sudo apt-get autoremove
sudo apt-get install kali-linux-full
- PATIENCE, since this will download around 4GB of data
- The above is the most error prone part of the process. Ensure CONSTANT internet access and UNINTERRUPTED power to the mobile device.
- If everything went right you should now have a working setup of Kali Linux on your Android phone
- (Optional) If you don't need to SSH into you mobile's Kali from another device, consider limiting SSH access only from localhost.
Disclaimer: Make sure you understand what you are doing and follow the above AT YOUR OWN RISK. I had no problem during the above procedure, carried out multiple times on a couple devices, this isn't to say that problems cannot occur.
If the ball lands in a quantity or color the place you positioned a guess previous to the spin, you win. Heads-Up Hold’Em is a Texas Hold’Em variant thecasinosource.com designed for all table sport pits. Players recognize the traditional Texas Hold’Em betting patterns along with unique enhancements that supply additional benefits. If the dealer doesn't qualify, he returns every player's ante and all different bets obtain motion. Hands that comprise more flush playing cards than the dealer mechanically win. For instance, a player’s 4-card flush will beat a dealer’s 3-card flush.
ReplyDelete