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

JavaScript file loading and blocking issues: performance optimization case study

Let me start with a question: When writing an HTM...

In-depth explanation of the impact of NULL on indexes in MySQL

Preface I have read many blogs and heard many peo...

How to automatically number the results of MYSQL query data

Preface In fact, I have never encountered this ki...

Linux Check the installation location of the software simple method

1. Check the software installation path: There is...

Datagrip2020 fails to download MySQL driver

If you cannot download it by clicking downloadlao...

Design: A willful designer

<br />Years of professional art design educa...

The difference and usage of LocalStorage and SessionStorage in vue

Table of contents What is LocalStorage What is Se...

Vue project realizes paging effect

The paging effect is implemented in the vue proje...

Vue keeps the user logged in (various token storage methods)

Table of contents How to set cookies Disadvantage...

Docker deploys mysql remote connection to solve 2003 problems

Connecting to MySQL Here I use navicat to connect...

Vue uses echarts to draw an organizational chart

Yesterday, I wrote a blog about the circular prog...