VMware kali virtual machine environment configuration method

VMware kali virtual machine environment configuration method

1|0 Compile the kernel

(1) Run the uname -r command to view the kernel version.

(2) Run the apt-cache search linux-headers command to check whether the kernel header files are installed.

(3) If the content displayed by uname -r is found in the kernel header file search, there is no need to install the kernel. If not, enter the following command to install it.

apt-get install linux-headers-$(uname -r)

2|0Install VMware Tools

tar zxpf VMwareTools-xxx-yyyy.tar.gz
cd vmware-tools-distrib
sudo ./vmware-install.pl
reboot

or

apt -y --reinstall install open-vm-tools-desktop-fuse
reboot

3|0 Update source

(Error in updating source may be caused by network problem)

leafpad /etc/apt/sources.list

#中科大deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
#Aliyundeb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#Tsinghua Universitydeb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
#浙大deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
#Official source deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

4|0 Update

apt-get update reports an error. Use apt-get update --fix-missing to update the index. apt-get upgrade to update. apt-get dist-upgrade to use when there is a major version.

Other commands

sudo apt-get autoclean cleans up system junk sudo apt-get clean cleans up old versions of software cache sudo apt-get autoremove cleans up all software caches sudo nautilus /boot deletes orphaned software that is no longer used by the system

5|0 Chinese input method

apt-get install fcitx
apt-get install fcitx-googlepinyin
reboot

6|0 Display network speed netspeed

https://extensions.gnome.org/#

7|0 Network Configuration

dhclient eth0 eth0 interface obtains IP address Configure temporary address (will be re-obtained after restart ifconfig eth0 192.168.1.1/24 ehh0 Configure IP address route add default gw 192.168.1.1 Set default route echo nameserver 192.168.1.1 > /etc/resolv.conf Write DNS server address Permanent configuration address (static address)
cat /etc/network/interface

• auto eth0
• iface eth0 inet static
• address 192.168.20.1
• netmask 255.255.255.0
• network 192.168.20.0
• broadcast 192.168.20.255
• gateway 192.168.20.2
• dns-nameservers 192.168.1.1 192.168.1.2
• up route add -net 172.16.5.0/24 gw 192.168.10.100 eth1 Network card startup write
• down route del -net 172.24.0.0/24 is deleted when it is closed

8|0ssh settings

vi /etc/ssh/sshd_config

(1) Add a line PermitRootLogin yes

(2) Delete the comment of PasswordAuthentication yes

(3) Start ssh /etc/init.d/ssh start

(4) Check whether the SSH service status is running normally etc/init.d/ssh status

Summarize

The above is the VMware kali virtual machine environment configuration method introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to install docker and portainer in kali
  • The latest super detailed graphic tutorial of installing Kali Linux on virtual machine VMware
  • Kali Linux installation VMware tools installation process and VM installation vmtools button gray
  • Detailed explanation of common files and command paths in Kali Linux
  • An article to help you understand Kali LAN attacks

<<:  25 advanced uses of JS array reduce that you must know

>>:  Implementation of Docker deployment of Tomcat and Web applications

Recommend

WePY cloud development practice in Linux command query applet

Hello everyone, today I will share with you the W...

Let's talk in detail about the direction of slow SQL optimization in MySQL

Table of contents Preface SQL statement optimizat...

Common repair methods for MySQL master-slave replication disconnection

Table of contents 01 Problem Description 02 Solut...

JavaScript to implement a simple shopping form

This article shares the specific code of JavaScri...

Advantages of MySQL covering indexes

A common suggestion is to create indexes for WHER...

Vue.js performance optimization N tips (worth collecting)

Table of contents Functionalcomponents Childcompo...

Vue.js implements the code of clicking the icon to zoom in and leaving

The previous article introduced how Vue can reali...

Vue uses dynamic components to achieve TAB switching effect

Table of contents Problem Description What is Vue...

Common scenarios and avoidance methods for index failure in MySQL

Preface I have read many similar articles before,...

Native JS music player

This article example shares the specific code of ...

One line of CSS code to achieve the integration of avatar and national flag

It’s National Day, and everyone is eager to celeb...

An article to teach you HTML

If you are not committed to becoming an artist, t...

What does mysql database do

MySQL is a relational database management system ...