Installing Kali Linux

Source: Internet
Author: User
Tags kali linux xming

1.4.1 mounting to the hard drive

Installing to a hard disk is one of the most basic operations. The implementation of this work allows users to run Kali Linux without using DVDs. Before you install this new operating system, you need to do some preparatory work. For example, where to get Linux? What are the requirements for computer configuration? ...... These requirements are listed below.

    • The minimum amount of disk space for Kali Linux installation is 8GB. For ease of use, it is recommended to have at least 25GB to save additional programs and files.
    • The best memory is more than 512MB.
    • Kali Linux http://www.kali.org/downloads/

Figure 1.1 Download Kali Linux interface

The official website provides 32-bit and 64-bit ISO files. This book takes 32 bits as an example to illustrate installation and use. After you download the ISO file, burn the image file to a DVD disc. You can then proceed to install the Kalilinux to the hard drive.

(1) Insert the installation CD DVD into the CD-ROM of the user's computer and reboot the system and you will see the interface shown in 1.2.

Figure 1.2 Launch interface

(2) This interface is the Kali boot interface, select the installation mode in this interface. Here you select graphical Install (graphical interface installation), which will display the interface shown in 1.3.

Figure 1.3 Choosing a language

(3) In this interface select the installation system default language is Chinese (Simplified), and then click the Continue button, will display the interface shown in 1.4.

Figure 1.4 Selecting your region

(4) Select the area in the interface as "China", then click "Continue" button, will show the interface shown in 1.5.

Figure 1.5 Configuring the keyboard

(5) Select the keyboard mode as "Chinese" in the interface, then click the "Continue" button, the interface shown in 1.6 will be displayed.

Figure 1.6 Configuring the network

(6) This interface is used to set the host name of the system, which uses the default hostname kali (the user can also enter their own system name). Then click the "Continue" button and the interface shown in 1.7 will be displayed.

Figure 1.7 Configuring the network

(7) This interface is used to set the domain name used by the computer, in this case the domain name entered is kali.secureworks.com. If the current computer is not connected to the network, you can not fill out the domain name, directly click the "Continue" button, will show the interface shown in 1.8.

Figure 1.8 Setting up users and Passwords

(8) In this interface set the root user password, and then click the "Continue" button, will show the interface shown in 1.9.

Figure 1.9 Disk Partitioning

(9) This interface is for users to select partitions. Here, select "Use entire Disk" and click the "Continue" button to display the interface shown in 1.10.

Figure 1.10 Disk Partitioning

(10) This interface is used to select the disks to be partitioned. There is only one disk in the system, so it is possible to use the default disk here. Then click the "Continue" button and the interface shown in 1.11 will be displayed.

Figure 1.11 Selected to partition

(11) This interface requires the selection of a partitioning scheme, which provides three options by default. Here, select "Place all files in the same partition (recommended for Beginners)" and click the "Continue" button to display the interface shown in 1.12.

Figure 1.12 Disk Partitioning

(12) Select "Partition settings end and write changes to disk" in the sector, and then click the "Continue" button to display the interface shown in 1.13. If you want to modify the partition, you can select "Undo changes to the partition settings" in this interface to repartition.

Figure 1.13 Disk Partitioning

(13) Select the "Yes" checkbox in the interface and click the "Continue" button to display the interface shown in 1.14.

Figure 1.14 Installing the system

(14) Start installing the system now. Some information needs to be set during installation, such as setting up a network image, as shown in 1.15. If the computer on which the Kali Linux system is installed is not connected to the network, select the No check box in the interface, and then click the Continue button. This selects the "Yes" check box, which displays the interface shown in 1.16.

Figure 1.15 Configuring the Package Manager

Figure 1.16 Setting up an HTTP proxy

(15) Set the HTTP proxy information in this interface. If you do not need to connect to the external network through an HTTP proxy, click the Continue button directly and the interface shown in 1.17 will be displayed.

Figure 1.17 Scanning a mirrored site

(16) After the scan mirror site is complete, the interface shown in 1.18 will be displayed.

Figure 1.18 the country in which the image is located

(17) In this interface select the country where the image is located, select "China", and then click the "Continue" button, will show the interface shown in 1.19.

Figure 1.19 Selecting a mirror

(18) The interface provides 7 mirror sites by default, where a mirror site is selected as the system. Select Mirrors.163.com here and click the "Continue" button to display the interface shown in 1.20.

Figure 1.20 Installing the Grub boot loader onto the master boot record (MBR)

(19) Select the "Yes" checkbox in the interface and click the "Continue" button to display the interface shown in 1.21.

Figure 1.21 Installing grub to the hard drive

(20) The installation will continue and the interface shown in 1.22 will be displayed after the installation process is finished.

Figure 1.22 ending the installation process

(21) Click the "Continue" button in the interface to return to the installation system procedure. After the installation is complete, the system will be restarted automatically.

1.4.2 Installing to a USB drive

Kali Linux USB drives provide the ability to permanently save system settings, permanently update and install packages on USB devices, and allow users to run their own personalized Kali Linux. Create a bootable Live USB drive on a Linux distribution on the WIN32 Disk Imager, which includes persistent storage for Kali Linux. This section describes the steps to install Kali Linux to a USB drive.

Installing an operating system onto a USB drive is a bit different from installing to a hard drive. Therefore, you need to do some preparatory work before installing. For example, where to get Linux? What is the format of the USB drive? What is the size of the USB drive? ...... These requirements are listed below.

    • A FAT32-formatted USB drive with a minimum of 8GB of space.
    • A Kali Linux ISO image.
    • Win32 Disk Imager (image write USB drive).
    • Download Kali Linux from http://www.kali.org/downloads/.

Once the preparation is complete, you can install the system. The steps to install Kali Linux on a USB drive are as follows.

(1) Insert a formatted and writable USB drive into the Windows system. After inserting, the display is shown in interface 1.23.

Figure 1.23 Removable devices

(2) Start Win32 Disk Imager, as shown in the Start interface 1.24. In the image file location, click the icon to select the location of the Kali Linux DVD ISO image, select the USB device that will install Kali Linux, and the device in this example is K. After you select the ISO image file and the USB device, click the Write button to write the ISO file to the USB drive.

Figure 1.24 Win32 Disk Imager Initial interface

(3) Use the UNetbootin tool to make the device k a USB boot disk. Starting the UNetbootin tool, the interface shown in 1.25 will be displayed.

Figure 1.25 Selecting a disc image

(4) Select the "Disc mirroring" checkbox in this interface, then select the location of the ISO file and set the space used to preserve files across reboots to 4096MB.

(5) Select the USB drive, the USB drive in this example is K, and then click the OK button to start creating a bootable USB drive.

(6) When the creation is complete, the interface shown in 1.26 will be displayed.

Figure 1.26 UNetbootin Installation Complete

(7) At this point, the USB drive is created successfully. Click the "Restart Now" button in this interface and go to the BIOS boot menu and select USB boot to install the Kali Linux operating system.

1.4.3 Install to Raspberry Pi

Raspberry Pi (named "Raspberry Pi", abbreviated as RPI) is an arm-based micro-computer motherboard with an SD card as a memory drive. For portability, installing Kali Linux on a Raspberry Pi is a good choice. This section describes installing the Kali Linux operating system on a Raspberry Pi.

(1) Download the image file of the Raspberry Pi from the http://www.offensive-security.com/kali-linux-vmware-arm-image-download/website, Its file name is KALI-LINUX-1.0.6A-RPI.IMG.XZ.

(2) The downloaded image file is a compressed package that needs to be decompressed using the 7-zip compression software. After decompression, its name is kali-linux-1.0.6a-rpi.img.

(3) Use the Win32 Disk Imager tool to write the extracted image file to the Raspberry Pi SD card. Starting the Win32 Disk Imager tool, the interface shown in 1.27 will be displayed.

Figure 1.27 WIN32 Disk Imager Launch interface

(4) In the interface click the icon, select Kali-linux-1.0.6a-rpi.img, will show the interface shown in 1.28.

Figure 1.28 Adding an image file

(5) When you click the Write button in the interface, the interface shown in 1.29 is displayed.

Figure 1.29 confirming the disk to which the data is written

(6) is the interface prompt to confirm that you want to write input to the G device? Select Yes here to display the interface shown in 1.30.

Figure 1.30 Start writing data

(7) From this interface, you can see that you are writing data. When the write is complete, the interface shown in 1.31 is displayed.

Figure 1.31 completing the Write data

(8) From this interface you can see that the write data is successful. Clicking the OK button returns you to the interface shown in Figure 1.28. Then click the Exit button to close the Win32 Disk Imager tool.

(9) The SD card is ejected from the Windows system and inserted into the Raspberry Pi. Then connect to the monitor, plug in the network cable, mouse, keyboard and power, and a few seconds later the Kali Linux operating system will start. Log in with Kali Default user name and password, with the default username and password as root and Toor.

If users find it troublesome to plug some devices back and forth using the Kali on the Raspberry Pi, you can use the Putty attack to telnet to Kali's command line. Because the SSH service is started by default in Linux, users can remotely connect to Kali Linux using the 22 port of the SSH service in putty. Putty not only connects remotely to the Kali operating system on the Raspberry Pi, it can connect to the Kali operating system installed on any device. The following describes the use of the Putty tool to remotely connect to the Kali Linux operating system.

(1) Download the Putty version of Windows.

(2) Start the Putty tool and the interface shown in 1.32 will be displayed.

Figure 1.32 Putty Tools

(3) In this interface, enter the IP address of the Kali system in the text box corresponding to the Host Name (or IP address), and connection type select SSH. Then click the Open button to display the interface shown in 1.33. If you do not know the Kali system IP, execute the ifconfig command to view.

Figure 1.33 Warning message

(4) The interface displays a warning message, which is to safely confirm whether you want to connect to the server. This dialog box only pops up when you first connect to a host computer. Click the "Yes" button here and the interface shown in 1.34 will be displayed.

Figure 1.34 Logging into the Kali system

(5) In this interface enter Kali system default user life and password to log on to the system. Now you can run any command under the system.

If users do not like to operate under the command line, they can also connect remotely to the Kali Linux GUI. The following describes the graphical interface for connecting to the Kali operating system under putty by installing the Xming software.

(1) Download the Xming software from the http://sourceforge.net/projects/xming/website.

(2) Starting the downloaded Xming software, the interface shown in 1.35 will be displayed.

Figure 1.35 Welcome Interface

(3) This interface shows the welcome information of Xming. When you click the Next button, the interface shown in 1.36 is displayed.

Figure 1.36 Selecting the installation location

(4) Select the installation location of the xming in this interface. Using the default location here, click the Next button and the interface shown in 1.37 will be displayed.

Figure 1.37 Selecting components

(5) Select the installed components in the interface. Here you select the Install an SSH client component, and then click the Next button to display the interface shown in 1.38.

Figure 1.38 Selecting the Boot Menu folder

(6) Select the Boot Menu folder in the interface. The default is xming, if you want to use a different folder, click the Browse button to select a new folder. If you use the default, clicking the Next button will display the interface shown in 1.39.

Figure 1.39 Selecting additional Tasks

(7) Select the shortcut created by xming in the interface. Here, select the Create a desktop icon for Xming (creating a shortcut on the desktop) check box, and then click the Next button to display the interface shown in 1.40.

Figure 1.40 Preparing to install Xming

(8) The xming is configured by the previous steps. Now that you are ready to install, click the Install button and the interface shown in 1.41 will be displayed.

Figure 1.41 Installation Complete

(9) From this interface can be seen xming software installation completed. Click the Finish button to exit the setup, and Xming will run. If you do not want xming to start, launch xming the check box in front of you.

(10) Now open the Putty tool and enter the IP address of the Kali system, as shown in 1.32. Then select connection| in the Putty left column category ssh| The X11 command will display the interface shown in 1.42.

Figure 1.42 Configuring putty

(11) Select the Enable X11 forwarding check box in this interface and enter localhost:0 in the text box corresponding to the X display location. Then click the Open button to start the Putty session (make sure that xming is running in the background). The user name and password for the Kali system are then output and successfully connected to the Kali operating system, as shown in 1.43.

Figure 1.43 Successful remote connection

(12) From this interface you can see the successful connection to the Kali operating system. You can now connect remotely to the graphical interface of the Kali, and the following commands are shown:

[email protected]:~# xfce4-session

After executing the above command, telnet to the desktop of the Kali system.

Note: Under Putty, the STARTX command cannot be run.

1.4.4 Installation to VMware Workstation

VMware Workstation is a powerful desktop virtual computer software. It allows users to run different operating systems at the same time on a single desktop. Where users can develop, test, and deploy new applications. Currently the latest version is 10.0.1, the official https://my.vmware.com/cn/web/vmware/downloads. This section describes installing the Kali Linux operating system on the VMware workstation.

(1) Start the VMware Workstation and the interface shown in 1.44 will be displayed.

Figure 1.44 VMware Workstation 10

(2) Click the "Create New virtual Machine" icon in the interface and the interface shown in 1.45 will be displayed.

Figure 1.45 New Virtual Machine Wizard

(3) The interface chooses the type of virtual machine installed, including the "typical" and "custom" two types. It is recommended to use the "typical" approach, and then click the "Next" button, which will show the interface shown in 1.46.

Figure 1.46 Installing the guest operating system

(4) This interface is used to choose how to install the guest operating system. Here, select "Install operating system later" and click the "Next" button to display the interface shown in 1.47.

Figure 1.47 Selecting the guest operating system

(5) Select the operating system and version to install in this interface. Here you choose the Linux operating system, the version of the other Linux 2.6.X kernel, and then click the "Next" button, will show the interface shown in 1.48.

Figure 1.48 naming a virtual machine

(6) Create a name for the virtual machine in this interface and set the installation location for the virtual machine. When the settings are complete, click the Next button to display the interface shown in 1.49.

Figure 1.49 Specifying disk capacity

(7) Set the capacity of the disk in this interface. If you have a large enough disk, it is recommended that you set a larger disk size to avoid running out of disk capacity. This is set to 50GB, and then click the Next button to display the interface shown in 1.50.

Figure 1.50 ready to create a virtual machine

(8) The interface shows the details of the virtual machine that was created, and you can create the operating system at this point. Then click the "Finish" button and the interface shown in 1.51 will be displayed.

Figure 1.51 Creating a virtual machine

(9) The interface shows the details of the newly created virtual machine. Now you are ready to install Kali Linux. Before installing Kali Linux, you need to set up some information, click "Edit Virtual machine settings" in the VMware Workstation window and the interface shown in 1.52 will be displayed.

Figure 1.52 Virtual machine settings

(10) Select the "CD/DVD (IDE)" option in this interface, then select the "Use ISO image file" checkbox on the right, click the "Browse" button and select the Kali Linux image file. Then click the OK button to return to the interface shown in Figure 1.51.

(11) In the figure 1.51 interface, select the "Turn on this virtual machine" command, a new window will be displayed, as shown in 1.53.

Figure 1.53 Installation Interface

(12) The next installation process is the same as that described in section 1.4.1, which is not covered here.

1.4.5 installing VMware Tools

VMware Tools is an enhanced tool that comes with VMware virtual machines. It is a driver for VMware's enhanced virtual graphics and hard disk performance, as well as for synchronizing virtual machines with host clocks. File sharing between hosts and VMs can be achieved only when VMware Tools is installed in a VMware virtual machine, while supporting free-drag functionality, and the mouse can move freely between the virtual machine and the host (no more pressing the Ctrl+alt key combination). This section describes the installation of VMware Tools programs.

(1) in the VMware Workstation menu bar, select virtual Machine | Install the VMware Tools ... command, as shown in 1.54.

Figure 1.54 Installing VMware Tools

(2) Mount the VMware Tools installer to the/mnt/cdrom/directory. The execution commands are as follows:

[email protected]:~# mkdir /mnt/cdrom/               #创建挂载点[email protected]:~# mount /dev/cdrom /mnt/cdrom/ #挂载安装程序mount: block device /dev/sr0 is write-protected, mounting read-only

Seeing the above output information indicates that the VMware Tools installer was mounted successfully.

(3) switch to mount location, unzip the installer vmwaretools. The execution commands are as follows:

[email protected]:~# cd /mnt/cdrom/                          #切换目录[email protected]:/mnt/cdrom# ls                          查看当前目录下的文件manifest.txt VMwareTools-9.6.1-1378637.tar.gz vmware-tools-upgrader-64run_upgrader.sh vmware-tools-upgrader-32[email protected]:/mnt/cdrom# tar zxvf VMwareTools-9.6.1-1378637.tar.gz -C / #解压VMwareTools安装程序

After executing the above command, the VMware tools program will be extracted to the/directory and generated with a folder named Vmware-tools-distrib.

(4) switch to the directory of VMware Tools and run the Setup program. The execution commands are as follows:

[email protected]:/mnt/cdrom# cd /vmware-tools-distrib/      #切换目录[email protected]:/vmware-tools-distrib# ./vmware-install.pl #运行安装程序

After executing the above command, there are some problems. Then press the "enter" key to accept the default value.

(5) Restart the computer.

Installing Kali Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.