- Install Kali Linux Tools Using Katoolin3 In Ubuntu 20.04 LTS
- Introduction to Katoolin3
- Features of Katoolin3
- Install Katoolin3 in Ubuntu 20.04 LTS
- Install Kali Linux Tools Using Katoolin3 In Ubuntu 20.04 LTS
- View categories
- Installing packages
- Uninstall packages
- Search Kali Linux repositories
- List installed packages
- List not installed packages
- Install Kali Menu
- Uninstall old katoolin
- Display Katoolin3 Help
- Exit Katoolin3
- Update Katoolin3
- Uninstall Katoolin3
- Conclusion
- Ubuntu Documentation
- Introduction
- Packages and Package Management
- What is a package?
- Source or Binary?
- Package Dependencies
- Package Managers
- Software Channels/Repositories
- Installing a Package
- Via your web browser
- Via a basic graphical method
- for Ubuntu: «Sofware Centre «
- for Kubuntu : «Add/Remove Programs»
- Via an advanced graphical method
- for Ubuntu/Xubuntu/Edubuntu : Synaptic
- Via a Text Based Methods
- Aptitude — the text-based method
- apt-get — the technical method
- Installing downloaded packages
- Using GDebi to install packages
- Using dpkg to install packages
- Getting a list of recently installed packages
- Automatic updates: Update Manager
- Installing packages without an Internet connection
- Use Keryx
- Use the Synaptic package download script
- Use Offline apt-get update
- Use apt-offline
Install Kali Linux Tools Using Katoolin3 In Ubuntu 20.04 LTS
This step by step guide explains what is Katoolin3 and how to install Kali Linux tools in Ubuntu, Debian and other DEB-based systems like Linux Mint and Pop_OS!.
Introduction to Katoolin3
As some of you might already know, Katoolin is a Python script to install Kali Linux tools in Ubuntu, Debian and other DEB-based systems.
If you’re a security researcher or enthusiast, Katoolin allows you to install any Kali Linux tools of your choice on top of your Ubuntu system in couple minutes.
It seems that Katoolin is not being updated regularly (the last commit was April, 2019) and it doesn’t work in recent Ubuntu versions. The Caveats started adding up due to lack of maintenance.
Fortunately, someone has taken up the torch and is keeping a very stable branch of katoolin. Say hello to Katoolin3, a fork of Katoolin, that helps you to get your favorite Kali Linux tools on Debian, Ubuntu and its derivatives like Linux Mint. Katoolin3 is completely free and open source program.
Important Warning: It looks like the Katoolin3 messes up the existing repositories. Many users have complained that Katoolin3 removes the GNOME DE, and other packages that are not even related to Katoolin when they try to uninstall Katoolin. So i strongly I suggest you to try it in a test machine for a while and see if it works perfectly.
Features of Katoolin3
Katoolin3 offers several improvements over katoolin as listed below.
- Katoolin3 is ported to Python 3. Katoolin is written in Python 2.x.
- It provides up-to-date packages. The old katoolin uses an outdated package list.
- The old katoolin breaks if a package isn’t available in the repositories anymore. Katoolin3 detects the missing packages and simply ignores them.
- Unlike old Katoolin, it is possible to remove all packages installed by Katoolin3. You can remove packages individually or all at once.
- Some user have complained that they can’t update or upgrade their Ubuntu OS after installed old Katoolin. This issue has been addressed and fixed in the newer Katoolin3 version. The upgrade won’t break your system, because the Kali repositories only get enabled during the runtime of katoolin3.
- The old katoolin modifies and even deletes important system configuration files. These potentially dangerous operations have been changed in Katoolin3.
- It is difficult to add new packages to package list in the old Katoolin. Not anymore! Maintaining the package list just got better and a lot easier with Katoolin3.
Install Katoolin3 in Ubuntu 20.04 LTS
I have tested Katoolin3 in Ubuntu 20.04 LTS server edition. However, It should work on other Ubuntu versions and derivatives.
Katoolin3 requires the following prerequisites in your Ubuntu system.
These packages comes preinstalled in latest Ubuntu 20.04 LTS, so you probably don’t need to install anything.
Also, make sure you have enabled [universe] repository.
Clone the Katollin3 GitHub repository using command:
Please make sure the repository name is correct. In the above URL, it should be two lower case “L” letters in the word «s-h-3-l-l».
The command will clone the contents of Katooolin3 repository in a local folder named «katoolin3» in the current directory.
Go to the katoolin3 directory:
Make the install.sh executable:
Then install Katoolin3 using command:
Upon successful installation, you will see the following message:
Please note: If you get the error «Please install the python3-apt package», please make sure katoolin3 runs with exactly the same python3 version as the python3-apt package. On modern distributions python3-apt is only for python3.7 and on older distributions python3-apt is only for python3.5. Katoolin3 has to be run accordingly with python3.7 or python3.5. In Ubuntu 20.04 LTS version, I don’t have any issues with Katoolin3 installation.
Install Kali Linux Tools Using Katoolin3 In Ubuntu 20.04 LTS
To run Katoolin3, enter the following command:
Katoolin3 will add necessary Kali Linux repositories on your Ubuntu machine and update the sources lists.
Once the repositories are added and the source lists are updated, you will see the Katoolin3 main menu.
Important note: Please note that you should not update your packages, upgrade your system or modify your package cache in any other way while katoolin3 is still running. Always close Katoolin3 before updating system or modifying package cache. Unlike the old Katoolin, the new Katoolin3 will not break the system while upgrading because the Kali repositories only get enabled during the runtime of katoolin3.
As you can see in the above screenshot, the Katoolin3 main menu has 9 sub-menus and each sub-menu performs different operations. To open a sub-menu, just enter the corresponding number.
View categories
Type 0 (zero) and press ENTER to view the list of available categories.
As you can see, there are 12 categories available. Each category may contain one or more packages. To go back to the previous menu, type 14 and hit ENTER.
To view the list of available packages in a category, simply type its corresponding number and press ENTER:
The above output shows the list of available packages under «Forensics Tools» category.
Installing packages
You can install all packages at once. However, it is not recommended and not necessary. To install a package, go to the category of your choice and enter the corresponding number.
For example, I am going to install «foremost» tool (number 7 ).
The selected package will be downloaded from Kali Linux repositories and installed in your Ubuntu system.
To install multiple packages at once specify a range like 3-5 , a list like 1,2,3 or combine them like 1,2,5-7,9 .
Uninstall packages
To uninstall all Kali Linux tool from your Ubuntu system, type 2 from main menu.
Search Kali Linux repositories
To search for a specific tool, enter number 3 from main menu and then enter a package name to get information about a package or enter a keyword to search for package. Here I am searching for «recovery» related tools.
List installed packages
To view all installed kali linux tools, enter number 4 from the Katollin3 main menu:
As you can see, I have installed «foremost» tool.
List not installed packages
To view all not installed packages, type number 5 from main menu.
Install Kali Menu
This option will install Kali Menu on your Ubuntu system. This will add a dedicated menu for all installed Kali Linux tools, so you can qucikly find and launch any tools from this menu.
To install Kali Menu, type number 6 from main menu and press ENTER.
Uninstall old katoolin
It removes the old Katoolin version if it is already installed.
Display Katoolin3 Help
Don’t know how to use Katoolin3? Just open the Help section by entering number 8 .
Exit Katoolin3
To quit Katoolin3, type number 9 and hit ENTER.
Update Katoolin3
Go to the directory where you have cloned Katoolin3:
Make the update script executable:
Run update script to update Katoolin3 to latest available version.
It would be better if the developer included an option to update Katoolin3 from the main menu.
Uninstall Katoolin3
Don’t use Katoolin3 anymore? Simply uninstall it as shown below.
Go to the directory where you have cloned Katoolin3:
Make the uninstall script executable:
Finally, remove Katoolin3 from your system using command:
Conclusion
In this guide, we discussed what is Katoolin3, and its features and then how to install Kali Linux tools using katoolin3 in Ubuntu, Debian and other DEB-based systems.
Источник
Ubuntu Documentation
Introduction
Note: The Main page is available in multiple languages.
Installing software in Ubuntu is easy, and this guide will show you how to do it.
By default, many useful programs are already installed when you put Ubuntu onto your computer. However, you may need a particular piece of software that serves a purpose not served by the default applications. You might just want to try an alternative program to one which is already installed. In other words, you need new software.
If you’d like to get some background information on what’s happening when you install software (which can sometimes be technical), read Packages and Package Management. If you just want to get started installing new programs, you can skip straight to Installing a Package.
Packages and Package Management
This section covers the basic concepts of packages and package management. You will learn about what a package is, the differences between different types of package and also how package management works on Ubuntu.
What is a package?
Software is a very broad term, and is generally taken to mean a program which you can run on your computer. However, such programs often need other resources to work. When you install software, thousands of files may be required just to let the program start! When you think that they all have to be put in exactly the right location, and some of those files may need to be changed depending on what type of computer you have, it can all get very complicated. Luckily, Ubuntu can look after this complexity.
Ubuntu uses packages to store everything that a particular program needs to run. A ‘package’, then, is essentially a collection of files bundled into a single file, which can be handled much more easily. In addition to the files required for the program to run, there will be special files called installation scripts, which copy the files to where they are needed (amongst other things).
Source or Binary?
Normally, when someone makes a package for a program, they put all of the source code for the program into that package. Source code is written by programmers and is essentially a list of instructions to a computer which humans are able to read and write. Computers can only understand this code if it is interpreted for them into a form that they can use directly. One such way of interpreting source code for a computer is by translating or compiling it into binary, which computers can understand.
So why don’t the people who make the package (called packagers) just convert it into binary from the start? Well, different computers use different types of binary, so if you make a binary package for one type (like an Intel PC), it won’t work on another (like a PowerPC).
Source packages are simply packages which just include source code, and can generally be used on any type of machine if the code is compiled in the right way. (For information on how to compile and install source packages, see CompilingEasyHowTo).
Binary packages are ones which have been made specifically for one type of computer, or architecture. Ubuntu supports the x86 (i386 or i686), AMD64 and PPC architectures. The correct binary packages will be used automatically, so you don’t have to worry about picking the right ones. To find out which one you are using, open Applications → Accessories → Terminal, type uname -m then hit the enter key.
Package Dependencies
Programs often use some of the same files as each other. Rather than putting these files into each package, a separate package can be installed to provide them for all of the programs that need them. So, to install a program which needs one of these files, the package containing those files must also be installed. When a package depends on another in this way, it is known as a package dependency. By specifying dependencies, packages can be made smaller and simpler, and duplicates of files and programs are mostly removed.
When you install a program, its dependencies must be installed at the same time. Usually, most of the required dependencies will already be installed, but a few extras may be needed, too. So, when you install a package, don’t be surprised if several other packages are installed too — these are just dependencies which are needed for your chosen package to function properly.
An example of dependencies
Package Managers
A package manager is an application which handles the downloading and installation of packages. Ubuntu includes a few package managers by default, and which one you use depends on how advanced the package management tasks are that you want to achieve. Most people will only need to use the most basic package manager, the Add/Remove tool, which is very easy to use.
Software Channels/Repositories
Where can you get packages from?
Ubuntu stores all of its packages in locations called software channels or repositories. A software channel is simply a location which holds packages of similar types, which can be downloaded and installed using a package manager. A package manager will store an index of all of the packages available from a software channel. Sometimes it will ‘re-build’ this index to make sure that it is up to date and knows which packages have been upgraded or added into the channel since it last checked.
There are four Ubuntu software channels for each architecture — Main, Restricted, Universe and Multiverse. Each has a different purpose. By default, only packages from Main and Restricted can be installed. If you would like to install packages from Universe or Multiverse, see the Repositories page for instructions on how to do this.
In addition to the official Ubuntu repositories, it is possible to use third party repositories. Be careful, though — some are not compatible with Ubuntu and using them may cause programs to stop working or may even cause serious damage to your installation. The page http://www.ubuntulinux.nl/source-o-matic (page removed — why) can help you to find extra repositories, and the Repositories page gives instructions on how to enable them.
Installing a Package
This section explains how to install packages using the various tools available in Ubuntu,Xubuntu,Edubuntu and Kubuntu.
Via your web browser
In the Ubuntu Documentation, you will sometimes find sentences like for example:
» To install this software in Ubuntu, install the following package: supertux. «
Click on the name of the package («supertux» in the example):
- if the apturl protocol is enabled on your computer, you will be proposed to install the package called «supertux».
if not, please follow instructions of the AptURL page to enable apturl protocol on your computer.
Via a basic graphical method
Note that some packages can’t be installed via this method, in this case please use another method.
for Ubuntu: «Sofware Centre «
In recent versions of Ubuntu, the «Add/Remove» option in the Applications menu has been replaced by the Ubuntu Software Center.
for Kubuntu : «Add/Remove Programs»
Kubuntu’s new and easy method of installing packages is to use the ‘Add/Remove Programs’ tool. Click K-Menu → Add/Remove Programs to start it.
Add/Remove Programs is a simple graphical way of installing and removing applications in Kubuntu. To launch Add/Remove Programs, choose K Menu → Add/Remove Programs from the desktop menu system.
To install new applications select the category on the left, then check the box of the application you want to install. When finished click Apply, then your chosen programs will be downloaded and installed automatically, as well as installing any additional applications that are required. The default selection is restricted to KDE suite, but GNOME applications can be installed simply by selecting from dropdown menu at the top. Alternatively, if you know the name of the program you want, use the Search tool at the top.
Software from additional repositories may be installed by enabling the Show: Unsupported and Show: proprietary software checkboxes if they are enabled in your repository list. For more information, see the Repositories page.
Once this has finished, click Close.Your new programs are installed, ready to use!
Via an advanced graphical method
for Ubuntu/Xubuntu/Edubuntu : Synaptic
The Synaptic Package Manager offers a more advanced way of installing packages. If you have problems finding a suitable package with the Add/Remove tool, try using the search in Synaptic. This searches all of the packages in the available repositories, even the ones which don’t contain programs.
For details on using Synaptic, see SynapticHowto.
Via a Text Based Methods
Text based methods can be used across Ubuntu, Kubuntu and Xubuntu, but require familiarity with the terminal. When helping users to install packages, you should consider using an AptURL instead of apt-get or aptitude.
Aptitude — the text-based method
Aptitude is a text-based package manager, which must be run from a Terminal. Read the AptitudeSurvivalGuide for more information on how to use Aptitude.
apt-get — the technical method
The apt-get program is a command-line package manager, which should be used if the Add/Remove tool and Synaptic ever run into problems. It provides an advanced interface to APT, the underlying package management system which Ubuntu uses, but is reasonably easy to operate. Power users may find that apt-get is quicker to use and more powerful than the graphical options above.
For details on how to use apt-get, read AptGet/Howto.
Installing downloaded packages
You may wish to install a package you have downloaded from a website, rather than from a software repository. These packages are called .deb files. Because they may have been created for a different Linux distribution, you might find that there’s dependency issues with Ubuntu, meaning that they may be uninstallable.
To find a package which you have previously downloaded using Synaptic, aptitude or apt-get, look in /var/cache/apt/archives
Using GDebi to install packages
GDebi is a simple tool to install .deb files. It has a graphical user interface but can also be used in your terminal. It lets you install local deb packages resolving and installing its dependencies.. It automatically checks packages for their dependencies and will try to download them from the Ubuntu software repositories if possible. You may first need to install GDebi — simply install the gdebi package using one of the package managers listed above, or open a Terminal and type sudo apt-get install gdebi.
Once you have installed GDebi, use the File Browser to find the package you wish to install. Package files will look similar to this:
Double-click the package to open it with GDebi. If all dependencies have been met for the selected package, simply click the ‘Install package’ button to install it. GDebi will warn you if there are unmet dependencies, which means that there’s dependencies that aren’t resolved in the repositories that you’re using.
Using dpkg to install packages
dpkg is a command-line tool used to install packages. To install a package with dpkg, open a Terminal and type the following:
Note: replace directory with the directory in which the package is stored and package_name with the filename of the package.
It is recommended that you read the dpkg manual page before using dpkg, as improper use may break the package management database. To view the manual page for dpkg, open a Terminal and type man dpkg.
Getting a list of recently installed packages
You can use the dpkg logs to discover recently installed packages; this is handy if you want to roll back some recent installations to a previous system state.
More detailed information on this can be found here.
Automatic updates: Update Manager
Ubuntu will automatically notify you when security updates and software upgrades are available. The Ubuntu Update Manager is a simple and easy to use application that helps users to keep their system software updated. Simply click the update icon (which will appear in the notification area), type in your super-user/administrator password and follow the instructions on-screen to download and install the updates.
Keeping up to date is important, as security fixes which protect your computer from harm are delivered in this way.
Installing packages without an Internet connection
Sometimes, an internet connection is unavailable to install programs.
It is possible to install programs without CDs or DVDs onto offline computers, using a simple USB key for example to transfer only the packages you need.
There are several methods to do this:
Use Keryx
Keryx is a portable, cross-platform package manager for APT-based (Ubuntu, Debian) systems. It provides a graphical interface for gathering updates, packages, and dependencies for offline computers. Keryx is free and open source. You can get Keryx here: https://launchpad.net/keryx
Use the Synaptic package download script
Short instructions:
- Launch Synaptic on the offline computer
- Mark the packages you wish to install
Select File->Generate package download script
Launch Synaptic and click on File->Add downloaded packages
Note: If you don’t have access to a PC with GNU/Linux or emulating/virtualizing GNU/Linux (Cygwin, VMware, VirtualBox, Qemu, etc), just open the script with a text editor and enter all the URLs you see in your browser to download the corresponding packages.
If you have all the necessary libraries and/or dependencies, the simplest way is of course to just download the .deb package you need, just as you would with a Windows installer, and double-click the package to install it with GDebi.
Use Offline apt-get update
If you can’t even select the packages on your offline PC because you can’t add the repository / update the package info, try this: AptGet/Offline/Repository
Basically, it consists in creating your own local repository, except that it won’t contain the packages themselves, only the dependency information.
The problem is that when you generate the package download list using this method, it will try to get the packages from your local repository and obviously fail.
The solution is to post-process the script by replacing the URLs with the correct one.
Assuming you created the local repository at «/home/username/repository» and got the different files from «http://archive.ubuntu.com/ubuntu/», this can easily be done with the following command:
or directly without creating a second script:
or simply with any text editor featuring search&replace.
Use apt-offline
apt-offline allows you to easily upgrade or install new packages on your offline PC, by using another online PC.
Источник