Friday, 30 August 2013

How To Integrate Kali Linux Tools In Your Favorite Ubuntu Distro

kali linux integrated in ubuntu

In this tutorial, I am using ubuntu 13.04 raring ringtail for kali linux tools integration. You can use any of the following ubuntu distro.

Raring= 13.04
Quantal= 12.10
Precise= 12.04


These distros have been tested and working perfectly with kali linux tools.

Ok lets do it. Follow me step by step.

1- Copy following repositories of kali linux.

deb http://ppa.launchpad.net/wagungs/kali-linux2/ubuntu YOUR_UBUNTU_VERSION main
deb-src http://ppa.launchpad.net/wagungs/kali-linux2/ubuntu YOUR_UBUNTU_VERSION main
deb http://ppa.launchpad.net/wagungs/kali-linux/ubuntu YOUR_UBUNTU_VERSION main
deb-src http://ppa.launchpad.net/wagungs/kali-linux/ubuntu YOUR_UBUNTU_VERSION main

Note: Replace red text "YOUR_UBUNTU_VERSION" with your ubuntu version name i.e. for ubuntu 13.04 we have name raring , so these all four lines will be written like this:

deb http://ppa.launchpad.net/wagungs/kali-linux2/ubuntu raring main
deb-src http://ppa.launchpad.net/wagungs/kali-linux2/ubuntu raring main
deb http://ppa.launchpad.net/wagungs/kali-linux/ubuntu raring main
deb-src http://ppa.launchpad.net/wagungs/kali-linux/ubuntu raring main


2- Open terminal and open /etc/apt/sources.list in your favourite text editor.I am using nano in this tutorial. Your may use gedit, vi, vim or any other editor.
sudo nano /etc/apt/sources.list
"nano" editor will open sources.list file before you. Now paste these lines at the end of your file and press CTRL + X to save it.

kali linux repos
3- Now copy following pgp key and save it in a text file with any name i.e. kali.pgp

PGP Key:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.4
Comment: Hostname: keyserver.ubuntu.com

mI0ET324YwEEANbSlISrOlAGjxgFRxiN6jk0JIl/vxQ8lapRdxZ4DHDAQdXbX4AuigMBkP5e
sOxhMpDnkgMRtEVpaBMdQheA0/431pPQYqkr3jdeZw5JS5opiyJ4qr/QrcoSFHSluEkWkbZ6
RYOkA25vW31KK2FB2LQVRYk580llXAVgIUznm2ATABEBAAG0GExhdW5jaHBhZCBQUEEgZm9y
IHdhZ3VuZ4i4BBMBAgAiBQJPfbhjAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRAb
IuuNj9/bVxabBADSGN8cp+hqkdZqwq263wdz/UGsiuB1bCrH06/HznC/ZC5rjfH3aQ1Dwwag
zYCrSD3c0cKNAqD10009N76RMlzZBH8kKL9khH3zPL/k4/lYuVP7y6NKFbBsnawEUc0mWcCa
mH4ScTdWWPXP/mOQiUUjnQ1bZhzpcbQOb+hEUAqExg==
=fJ+8
-----END PGP PUBLIC KEY BLOCK-----

4- Now we need to add this pgp key in our apt. So add it using the following command.
 sudo apt-key add kali.pgp
At successful addition of key, you will see written OK.

5- Now update your apt-get repositories using following command.
sudo apt-get update
6- Now you need some package manager to install all kali linux tools at once. I am using synaptic package manager for this tutorial. If you don't have it, then you may install it using the following command.
sudo apt-get install synaptic
7- Open synaptic package manager and click on origin button in lower left side pane. You will see two kali linux repositories with following names.

LP-PPA-wagungs-kali-linux/raring
LP-PPA-wagungs-kali-linux2/raring

Click on first repository and come on right side where all tools are being shown. There press CTRL + A which will select all tools.

kali_linux_repository_in_synaptic

8- Right click and click on Mark For Installation. Now find the tools which show you red "!" . These marked packages with red sign of exclamation are broken packages which can't be installed right now. Right click on them and unmark these packages. Now do the same thing with second repository (mark all tools). Now click on apply button which will begin your installation.

Wait for its completion and enjoy kali linux tools on your favorite ubuntu distro.