VMware kali Virtual Machine Environment Configuration Method
- 2021-06-28 14:40:31
- OfStack
1|0 Compile Kernel
(1) Execute the command uname-r to view the kernel version.
(2) Execute the command apt-cache search linux-headers to see if the kernel header file is installed.
(3) If the contents of uname-r appear in the search kernel header file, then there is no need to install the kernel, if not, enter the following instructions to install.
*
apt-get install linux-headers-$(uname -r)
2|0 Install VMware Tools
tar zxpf VMwareTools-x.x.x-yyyy.tar.gz
cd vmware-tools-distrib
sudo ./vmware-install.pl
reboot
perhaps
apt -y --reinstall install open-vm-tools-desktop fuse
reboot
3|0 Update Source
(Error updating source may be a network problem)
leafpad /etc/apt/sources.list
# CUHK
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
# Ali Yun
deb 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 University
deb 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
# Zhejiang university
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 Error Use apt-get update --fix-missing Update Index
apt-get upgrade To update
apt-get dist-upgrade Use with larger versions
Other Commands
sudo apt-get autoclean Clean up system waste
sudo apt-get clean Clean up old software caches
sudo apt-get autoremove Clean up all software caches
sudo nautilus /boot Remove orphaned software executions that are no longer used by the system
5|0 Chinese Input Method
apt-get install fcitx
apt-get install fcitx-googlepinyin
reboot
6|0 shows network speed netspeed
https://extensions.gnome.org/#
7|0 Network Configuration
dhclient eth0 eth0 Interface acquisition IP address
Configure temporary address (retrieved after restart)
ifconfig eth0 192.168.1.1/24 ehh0 To configure IP address
route add default gw 192.168.1.1 Set Default Route
echo nameserver 192.168.1.1 > /etc/resolv.conf Write in 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
&8226;up route add - net 172.16.5.0/24 gw 192.168.10.100 eth1 Network Card Boot Write
&8226;down route del - net 172.24.0.0/24 Deleted on shutdown
8|0ssh Settings
vi /etc/ssh/sshd_config
(1) Add 1 line PermitRootLogin yes
(2) Delete the comment number of PasswordAuthentication yes
(3) Start ssh/etc/init.d/ssh start
(4) Check if SSH service status is running properly etc/init.d/ssh status
summary