Установка kali linux ubuntu

Установка kali linux ubuntu

Installing Kali Linux alongside another Linux installation can be quite useful. However, you need to exercise caution during the setup process. First, make sure that you’ve backed up any important data on your Linux installation. Since you’ll be modifying your hard drive, you’ll want to store this backup on external media. Once you’ve completed the backup, we recommend you peruse our Kali Linux Hard Disk install guide, which explains the normal procedure for a basic Kali Linux install.

In our example, we will be installing Kali Linux alongside an installation of Ubuntu (Server 18.04), which is currently taking up 100% of the disk space in our computer. We will start by resizing our current Linux partition to occupy less space and then proceed to install Kali Linux in the newly-created empty partition.

Installation Prerequisites

This guide will make the following assumptions:

  • You have read our single boot Kali Linux install guide, as this has the same Installation Prerequisites (System requirements & setup assumptions).
  • When downloading Kali Linux, pick the live image, rather than the installer option.
  • A single disk to install to (rather than a dedicated disk per operating system).

We need to use a different image from the single boot Kali Linux install guide, as we need the live image. This is because we need to edit the disk structure without mounting any partitions (otherwise they would be in-use). After we have finished altering the disk layout, we can still install Kali Linux using the live image, but there will be a few differences such as:

Both of these can be addressed post installation, as it saves swapping to the installer image (as you will need either multiple CD/DVD/USBs or to re-image half way though).

This installation has the potential to go wrong very easily as it involves editing existing partitions. Be aware of what partitions you are modifying and where you are installing Kali Linux to.
Having a backup of your Linux files available is a good idea in the event something goes wrong.

Resize Linux Procedure

Before we can install Kali Linux, there needs to be room on the hard disk. By booting into a live Kali Linux session with your chosen installation medium, we can resize the partition to our desired size, as the disk will not be in use because Kali Linux will all be in memory.

  1. To start resizing, make sure you insert your Kali Linux installation medium and power on the device. If needed, press any keyboard shortcuts for a “boot order menu” (depends on each manufacture) or boot into BIOS/UEFI and change the boot order to point to the installation medium first.
  2. When the boot menu/options appears, you should see at least one new option. Depending on the manufacture, hardware, how the system is configured and install medium, you may see more options (e.g. Can you boot into non-UEFI?).

You may need to try a few different options in order to find success.

  1. You should be greeted with the Kali Linux boot screen. Select Live, and you should be booted into the Kali Linux default desktop.
Читайте также:  Linux on dex 2022

  1. Now launch GParted, which we’ll use to shrink the existing Linux partition to give us enough room to install Kali Linux in the free space.

  1. Once GParted has opened, select your Linux partition ( /dev/sda1 ) & resize it leaving enough space (we recommend at least 20 GB) for the Kali Linux installation.

Depending on your setup, the disk structure may be different to include:

You often just want to select the largest partition (commonly the data/home directory)

If you are moving past into any non-white in the partition then you are editing a section that is in use.
Only remove from the area of the partition that is not in use.

If you wish to organize the partition to group all the Linux partitions together, placing the free space at the end, you may do so.

  1. Once you have resized your Linux partition, ensure you “Apply All Operations” on the hard disk. Exit gparted and reboot.

Kali Linux Installation Procedure

  1. The installation procedure from this point onwards is similar to a Kali Linux Hard Disk install, until the point of the partitioning. At this point, you need to select “Guided — use the largest continuous free space(rather than “Guided — the entire disk”) which got created earlier with gparted.

  1. You can carry on following the single boot Kali Linux install guide, expect you will not have the option to select desktop environment or metapackages as you are using the live image. Once the installation is done, reboot.

You should be greeted with a GRUB boot menu, which will allow you to boot either into Kali Linux or the other Linux operating system.

Post Installation

Now that you’ve completed installing Kali Linux, it’s time to customize your system.

The General Use section has more information and you can also find tips on how to get the most out of Kali Linux in our User Forums.

Updated on: 2023-Mar-06
Author: gamb1t

Источник

Как установить все инструменты Kali в Ubuntu

Как вы знаете, Kali Linux — это известный дистрибутив для хакеров, пентестеров, криминалистов и исследователей безопасности, который поставляется с предварительно настроенными уже установленными инструментами взлома, которые вы можете использовать. Но Kali не так удобна для пользователя, как Ubuntu, а также среда Kali по умолчанию не рекомендуется для новичков. Поэтому, если вы используете Ubuntu в качестве операционной системы по умолчанию, нет необходимости устанавливать Kali Linux в качестве другого дистрибутива. И Kali Linux, и Ubuntu основаны на debian, поэтому вы можете установить все инструменты Kali на Ubuntu, а не устанавливать совершенно новую операционную систему.

Katoolin

Katoolin (установщик Kali Tools ) — это скрипт Python, который может устанавливать инструменты, доступные в Kali Linux в любом дистрибутиве Debian. Мы попытаемся установить его на машине с Ubuntu, но вы можете использовать его в любом дистрибутиве на основе Debian. Он доступен на github, для его установки введите следующее.

Читайте также:  Отключить пользователя root linux

Установка

[защита электронной почты]: ~ $ sudo apt-get install python git -y
[электронная почта защищена]: ~ $ wget -q -O — archive.kali.org/archive-key.asc | sudo apt-key add —

вышеупомянутый шаг необходим, потому что Katoolin устарел, и иногда вам нужно вручную добавить ключ для репозиториев Kali Linux. Теперь введите следующее

[электронная почта защищена]: ~ $ git clone https://github.com/LionSec/katoolin.git
[email protected] : ~ $ sudo su
root @ ubuntu:/home # cp katoolin/katoolin.py/usr/bin/katoolin
root @ ubuntu:/home # chmod + x/usr/bin/katoolin

Использование

Теперь запустите katoolin и добавьте репозитории Kali Linux.

Приведенная выше опция автоматически добавит репозитории Kali в ваш файл «sources.list» находится в каталоге «/etc/apt», поэтому вам не придется делать это вручную. Теперь введите 2, чтобы обновить вашу систему репозиториями Kali.

Предупреждение: необходимо удалить репозитории Kali перед запуском «apt-get upgrade», это может вызвать ошибки в вашей системе или привести к сбою ядра Ubuntu.

Теперь вернитесь в главное меню, используя команду «назад» или «gohome», а затем введите 2 для просмотра категорий инструментов

Теперь вы можете либо просматривать категории одну за другой, либо вы можете установить все инструменты, нажав« 0 », здесь мы установим инструменты в качестве быстрой демонстрации

Установка займет некоторое время, после чего вы можно проверить установку «zzuf» с помощью команды «which».

Использование этого скрипта «Katoolin» автоматизирует процесс и упростит вам задачу.. Таким образом вы можете установить все инструменты или только некоторые выбранные инструменты, которые вам нужны, в зависимости от ваших требований.

Предупреждения:

  • После установки инструментов обязательно удалите все репозитории Kali из файла «sources.list» перед обновлением системы. Обновление Ubuntu с помощью репозиториев Kali может вызвать Kernel Panic.
  • Если вы используете Ubuntu KDE, рекомендуется не устанавливать Metasploit Framework, поскольку это может вызвать ошибки в среде вашего рабочего стола. Обязательно прочтите надлежащую документацию, чтобы избежать ошибок.

Заключение

Kali — отличный дистрибутив для этического взлома, тестирования на проникновение и других видов безопасности и поставляется с предустановленными инструментами и утилитами, но Ubuntu — это дистрибутив общего назначения, который отлично подходит для новичков и имеет множество удобных для пользователя приложений, таких как snap. Если вы не хотите переключаться на Kali и хотите сохранить свой Ubuntu, вы можете установить все инструменты, включая Metasploit Framework, Burp Suite и другие утилиты тестирования безопасности, тогда вы можете сделать это, добавив репозитории Kali в Ubuntu и установив все инструменты, используя Katoolin. Это позволит автоматизировать весь процесс и упростить его.

Источник

How to install all Kali Tools in Ubuntu

As you know, Kali Linux is a famous distribution for Hackers, Pentesters, Forensics Investigators and Security Researchers that comes pre-configured with already installed hacking tools that you can use. But Kali is not that user friendly as Ubuntu, also Kali’s default environment is not recommended for beginners. So if you use Ubuntu as your default Operating System, there’s no need to install Kali Linux as another distro. Both Kali Linux and Ubuntu are based on debian, so you can install all of the Kali tools on Ubuntu rather than installing a whole new Operating system.

Читайте также:  Buy laptop with linux

Katoolin

Katoolin (Kali Tools Installer) is a python script that can install tools that are available in Kali Linux on any Debian distribution. We’ll try to install it on Ubuntu machine, but you can use this on any distribution based on Debian. It is available on github, type the following to install it.

Installation

ubuntu@ubuntu:~$ sudo apt-get install python git -y
ubuntu@ubuntu:~$ wget -q -O — archive.kali.org / archive-key.asc | sudo apt-key add —

The above step in necessary because Katoolin is out of date and sometimes you have to add the key manually for Kali Linux repositories. Now type the following,

ubuntu@ubuntu:~$ git clone https: // github.com / LionSec / katoolin.git
ubuntu@ubuntu:~$ sudo su
root @ ubuntu: / home # cp katoolin/katoolin.py /usr/bin/katoolin
root @ ubuntu: / home # chmod +x /usr/bin/katoolin

Usage

Now, start katoolin and add Kali Linux repositories.

The above option will automatically add Kali’s repositories to your “sources.list” file located in “/etc/apt” directory, so you won’t have to do it manually. Now type 2 to update your system with Kali repositories.

Warning : It is necessary to remove Kali repositories before running “apt-get upgrade”, it can run your system into errors or can cause your Ubuntu Kernel to crash.

Now go back to the main menu using “back” or “gohome” command and then type 2 to view tools categories

Now you can either browse the categories one by one or you can install all the tools by pressing “0”, here we’ll install a tools as a quick demo

It’ll take some time to install, after that you can verify “zzuf” installation using “which” command.

Using this “Katoolin” script will automate the process and will make this easier for you. In this way you can install all tools or just some selected tools you want depending upon your requirements.

  • After installing tools, make sure to remove all Kali repositories from your “sources.list” file before upgrading your system. Upgrading Ubuntu with Kali repositories can cause Kernel Panic.
  • If you’re using Ubuntu KDE, it is recommended not to install Metasploit Framework because it can cause errors in your Desktop environment. Make sure to read proper documentation to avoid errors.

Conclusion

Kali is great distribution for Ethical Hacking, Penetration testing and other types of security stuff and comes with pre-installed tools and utilities but Ubuntu is a general purpose distro & is great for beginners and has many user friendly applications like snap. If you don’t wanna switch to Kali and want to keep your Ubuntu, you can install all the tools including Metasploit Framework, Burp Suite and other security testing utilities then you can do it by adding Kali’s Repositories to Ubuntu and installing all the tools using Katoolin. It’ll automate the whole process and make it simpler.

About the author

Usama Azad

A security enthusiast who loves Terminal and Open Source. My area of expertise is Python, Linux (Debian), Bash, Penetration testing, and Firewalls. I’m born and raised in Wazirabad, Pakistan and currently doing Undergraduation from National University of Science and Technology (NUST). On Twitter i go by @UsamaAzad14

Источник

Оцените статью
Adblock
detector