VMware kali virtual machine environment configuration

Compile the kernel

(1) execute the command uname -r to see the kernel version.

(2) execute the command apt-cache search linux-headers to see if the installation kernel headers.

  (3)  If the content that appears in the Find uname -r kernel headers in there, then do not install kernel, and if not, enter the following command to install.

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

Install VMware Tools

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

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

Update Source

(Update error may be the source of network problems)

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 #阿里云 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 #清华大学 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 #浙大 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 #官方源 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

 Update

APT- GET APT- Update error using the GET Update --fix- Missing update the index 
APT - GET upgrade update 
APT - GET when there are big dist-upgrade version uses 

other command
sudo apt-get autoclean clean common system junk
sudo apt-get clean clean up old version of the software cache
sudo apt-get autoremove clean up all of the software cache
isolated software sudo nautilus / boot execute delete the system no longer in use

 Chinese input method       

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

Display network speed netspeed

https://extensions.gnome.org/#

Network Configuration

dhclient eth0 eth0 interface to obtain an IP address 
configuration temporary address (after the restart will re-acquire 
ifconfig eth0   192.168 . 1.1 / 24-    ehh0 configure the IP address of the 
route the Add default gw 192.168 . 1.1 default route settings 
echo nameserver 192.168 . 1.1 > / etc / resolv.conf write dns server address into the 
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 
• route up the Add -net 172.16 . 5.0 / 24- gw 192.168 . 10.100 eth1 card to start the writer 
• Down route del -net 172.24 . 0.0 / 24    deleted when you close

ssh settings

vi / etc / SSH / sshd_config 
( 1 ) add a line yes PermitRootLogin 
( 2 ) the number of deleted comments PasswordAuthentication yes 
( 3 ) /etc/init.d/ start SSH SSH Start 
( 4 ) to see if the SSH service status function properly etc /init.d/ssh status

 

Guess you like

Origin www.cnblogs.com/littlemood/p/11532637.html