KALI LINUX的安装和配置

 

 

 

一、安装(kali-linux-2021-W32-installer-amd64.iso)

1、选择 “Graphical install”

2、Select a language:  English

3、Select your location:  other -> Asia -> China

4、Configure locales:  United States - en_US.UTF-8

5、Configure the keyboard:  American English

6、Configure the network:  Do not configure the network at this time

7、Hostname:  kali

8、Set up users and passwords - Full name for the new user: novice

9、Set up users and passwords - Username for your account: novice

10、Set up users and passwords - choose a password for the new user: 2n

11、Partition disks: Guided - use entire disk and set up LVM

12、Partition disks - selected for partitioning: All files in one partition

13、Partition disks - Write the changes to disks and configure LVM?  Yes

14、Partition disks - write the changes to disks?  Yes

15、Installing the base system...

16、Software selection: default + large

 

 

二、网络配置

1、IP配置

┌──(novice㉿kali)-[~]

└─$ sudo vim /etc/network/interfaces

# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).

 

source /etc/network/interfaces.d/*

 

# The loopback network interface

auto lo

iface lo inet loopback

 

# date-2021-08-11

auto eth0

iface eth0 inet static

address 192.168.3.13

gateway 192.168.3.1

netmask 255.255.255.0

 

2、DNS配置

┌──(novice㉿kali)-[~]

└─$ sudo vim /etc/resolv.conf  

# Generated by NetworkManager

nameserver 114.114.114.114

nameserver 8.8.8.8

nameserver 192.168.3.1

 

 

三、ssh配置

1、开启ssh服务: sudo  systemctl  start  ssh

2、开机自启动ssh服务: sudo  systemctl  enable  ssh

 

 

四、Apt-get 源配置

        1、──(novice㉿kali)-[~]

            └─$ sudo vim /etc/apt/sources.list

deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contribdeb-src

https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

 

 

五、服务器开关机:

        1、重启:sudo   reboot  

 

        2、关机: sudo shutdown  -h  now