Site Overlay

Kali Linux Installation

Installing Kali Linux (Virtually – Stock Image)

This video tells you how to install Kali Linux virtually ready on your windows operating system without installing an external operating system on your existing computer.

https://www.youtube.com/watch?v=CU-x7PjtLOY
Kali Linux Installation

Installing Kali Linux (Virtually – From scratch)

The following article describes how to install " Kali Linux" virtually from scratch directly on your windows operating system without installing an external operating system onyour current computer.


1) Performing the Installation Configuration

In VMware Workstation, the steps "File > New Virtual Machine" are followed.

vmware workstation uzerinde kali linux kurulumu 04

The Create New Virtual Machine wizard starts.

vmware workstation uzerinde kali linux kurulumu 05

On the next screen, the "Installer disc image file (iso)" option is selected and the "Browse" button is clicked. The downloaded ISO file is selected.

vmware workstation uzerinde kali linux kurulumu 06

After ISO selection, the operations are continued.

vmware workstation uzerinde kali linux kurulumu 07

Operating system selection is performed.

vmware workstation uzerinde kali linux kurulumu 08

The virtual machine is named and the installation directory is specified.

vmware workstation uzerinde kali linux kurulumu 09

The disk size and file storage type for the virtual machine are specified.

vmware workstation uzerinde kali linux kurulumu 10

Summary information is examined. If the hardware is to be customized, these operations can be performed. After the process is completed, click on the "Finish" button.

vmware workstation uzerinde kali linux kurulumu 11

Now the setup stages can be started.

2) Realization of Installation

After the configuration settings, the virtual machine is started for setup.

vmware workstation uzerinde kali linux kurulumu 12

If a performance warning is generated, it can be ignored.

installing kali linux on vmware workstation virtualization environment 11

The warning that comes next is also ignored.

installing kali linux on vmware workstation virtualization environment 12

In the operating system that opens, the "Graphical Install" option is selected.

vmware workstation uzerinde kali linux kurulumu 13

The operating system language is selected.

vmware workstation uzerinde kali linux kurulumu 14

The campus is selected. The "other" option is selected for Turkey.

vmware workstation uzerinde kali linux kurulumu 15

The region of the campus ("Asia" for Turkey) is selected.

vmware workstation uzerinde kali linux kurulumu 16

Turkey is chosen as the country.

vmware workstation uzerinde kali linux kurulumu 17

Additional settings are performed.

vmware workstation uzerinde kali linux kurulumu 18

Turkish Q keyboard is selected.

vmware workstation uzerinde kali linux kurulumu 19

This automatically installs the components.

vmware workstation uzerinde kali linux kurulumu 20

The operating system is named.

vmware workstation uzerinde kali linux kurulumu 21

The domain name (if any) is entered.

vmware workstation uzerinde kali linux kurulumu 22

In this step, where the password of the user "root" is entered in older versions, a new user is created. The full name of the new account to be created is entered.

vmware workstation uzerinde kali linux kurulumu 23 2

The user name for the new account is entered.

vmware workstation uzerinde kali linux kurulumu 23 3

The password for the new account is entered.

vmware workstation uzerinde kali linux kurulumu 23 4

The setup process continues.

vmware workstation uzerinde kali linux kurulumu 24

Disk partitions are adjusted. LVM is enabled to make the disk size flexible.

vmware workstation uzerinde kali linux kurulumu 25

The disk on which the operating system will be installed is selected.

vmware workstation uzerinde kali linux kurulumu 26

The disk's partition scheme is configured.

vmware workstation uzerinde kali linux kurulumu 27

The disk configuration process is complete.

vmware workstation uzerinde kali linux kurulumu 28

A warning is accepted that the data in the disk will be deleted.

vmware workstation uzerinde kali linux kurulumu 29

A warning is encountered again.

vmware workstation uzerinde kali linux kurulumu 30

Disk formatting is performed. The setup files are copied to the disk and the setup process continues.

vmware workstation uzerinde kali linux kurulumu 31

Software selection is performed. Default settings can be preserved.

vmware workstation uzerinde kali linux kurulumu 35.2

Package update setup is performed.

vmware workstation uzerinde kali linux kurulumu 32

You will be asked if to install GRUB Boot Loader.

vmware workstation uzerinde kali linux kurulumu 33

The installation of GRUB Boot Loader is confirmed and the device on which it will be installed is selected.

vmware workstation uzerinde kali linux kurulumu 34

The setup process continues.

vmware workstation uzerinde kali linux kurulumu 35

The installation is complete.

vmware workstation uzerinde kali linux kurulumu 36

The installation is complete.

vmware workstation uzerinde kali linux kurulumu 37

The computer restarts automatically.

vmware workstation uzerinde kali linux kurulumu 38

3) Post-Installation Operations: Keyboard Setting

After setup is complete, you'll sign in. For this purpose, the previously entered user password is used.

vmware workstation uzerinde kali linux kurulumu 39 2

Many tools are ready to use.

vmware workstation uzerinde kali linux kurulumu 40 2

The keyboard can be changed if desired.

setxkbmap -v setxkbmap us
setxkbmap -v

setxkbmap
en setxkbmap en

vmware workstation uzerinde kali linux kurulumu 41

4) Post-Installation Operations: SSH Setting

Although not recommended, the SSH setting can be changed so that "root" can be SSH.

cat /etc/ssh/sshd_config | grep -i Permitroot nano /etc/ssh/sshd_config
cat /etc/ssh/sshd_config | grep -i Permitroot

vmware workstation uzerinde kali linux kurulumu 42

The SSH service then starts. In addition, if the SSH service is required to run automatically every time the machine stands up,

service ssh start
update-rc.d ssh enable
netstat -nlpt

vmware workstation uzerinde kali linux kurulumu 53

Note: Instead of SSH directly with the "root" user; It is recommended to create a new user and authorize the /etc/sudoers file to use the "sudo" command or switch to the "root" account with the expression "su –".

5) Post-Installation Operations: Updates

All packages are updated.

apt-get update
apt-get upgrade

vmware workstation uzerinde kali linux kurulumu 44

This means that the updates are initiated.

vmware workstation uzerinde kali linux kurulumu 45

Note: Package sources (repo) are used to update the operating system. If no repos can be found, the Kali repo is updated for the location of these resources on the internet.

locate sources.list cat /etc/apt/sources.list echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list cat /etc/apt/sources.list


vmware workstation uzerinde kali linux kurulumu 43

Note: During the Kali update, errors such as the following may be received.

  • The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository
  • W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirrors.ocf.berkeley.edu/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository
  • W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRele
  • W: Some index files failed to download. They have been ignored, or old ones used instead.

This is because Kali Linux checks for updates with the kernel key. The keys must be updated to resolve the error. For example;

gpg –keyserver hkp://keys.gnupg.net –recv-key 7D8D0BF6 gpg –fingerprint 7D8D0BF6 gpg -a –export 7D8D0BF6

| apt-key add –
apt update

6) Post-Installation Processes: VMware Tools installation

With Kali, it may be necessary to use VMware Tools for purposes such as file/command trasfer/copying on the physical machine, enlarging the screen, etc. For this purpose, installation is started by following the steps of "Install VMware Tools > VMware Tools" in the menu on VMware Workstation.

vmware workstation uzerinde kali linux kurulumu 46

The archive file that starts with "VMwareTools-" in the VMware Tools device that comes to Kali's desktop is opened with a tool such as "Archive Manager".

vmware workstation uzerinde kali linux kurulumu 47

The "vmware-tools-distrib" directory in the opened archive file is extracted to a directory such as /tmp or desktop.

vmware workstation uzerinde kali linux kurulumu 48

VMware Tools is then installed.

cd Desktop/vmware-tools-distrib/ls
./
vmware-install.pl -d

vmware workstation uzerinde kali linux kurulumu 49

After setup, the virtual machine restarts.

Reboot

vmware workstation uzerinde kali linux kurulumu 50

7) Post-Installation Operations: Snapshot Taking

After installations and months, the machine is stored in its final state by taking snapshots.

vmware workstation uzerinde kali linux kurulumu 51

Note: The virtual machine that restarted in the previous step is shut down, then the snapshot is taken. Thus, space is saved.

Snapshot retrieval is completed by naming the snapshot.

vmware workstation uzerinde kali linux kurulumu 52

Thus, Kali Linux is ready to be worked.

| to Install Kali Linux on VMware Workstation CYBER SECURITY PORTAL (siberportal.org)

image 3
Arif Akyüz Content Producer Cyber Security Expert

Arif Akyüz
Content Producer & Cyber Security Expert
[email protected]

© 2024 Arif Akyüz. Tüm Hakları Saklıdır. Gizlilik politikası
Yasal Uyarı: Bu sitede yer alan makaleler bilgi amaçlıdır ve hatalar içerebilir. Site sahibi, bu bilgilerin kullanımı sonucunda oluşabilecek zararlardan sorumlu tutulamaz.