重启之后以下设置被重置。
自动获得IP地址
手动分配IP地址
指定网关,指定一条缺省的默认路由。
编辑网卡的配置文件(/etc/network/interfaces),指定固定的IP地址
iface eth0 inet static
address 114.213.68.14 //ip 地址
netmask 255.255.252.0 //子网掩码
gateway 114.213.68.1 //网关地址
dns-nameservers 210.29.64.28 114.114.114.114 //DNS服务器地址
network 192.168.0.0 //网络地址
broadcast 192.168.0.255 //广播地址
up route add -net 172.16.5.0/24 gw 192.168.10.10 eth1
//当网卡启动执行时,写入配置文件
down route del -net 172.24.0.0/24 //关机后,将配置删除
kali Linux 经常对软件进行更新,保证系统是最新版本,强烈建议将各个软件升级为最新版本
apt-get update //更新的是软件包的索引文件,获取更新地址
apt-get upgrade //更新软件包文件
apt-get upgrade --fix-missing // 更新过时的索引文件
因为更新源在国外,下载速度会有所限制
可以使用国内官方更新源
#
#deb cdrom:[Debian GNU/Linux 2018.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20180412-10:55]/ kali-last-snapshot contrib main non-free
#deb cdrom:[Debian GNU/Linux 2018.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20180412-10:55]/ kali-last-snapshot contrib main non-free
#This system was installed using small
#官方源
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
#阿里云
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://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#重庆大学
#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
#中科大学
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
#执行以下后续命令
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
#linux内核更新
apt-get install linux-headers-$(uname -r)
apt-get clean //清除缓存索引
apt-get update //更新索引文件
apt-get upgrade //更新实际的软件包文件
apt-get dist-upgrade //根据依赖关系更新 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20190719153129498.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQwODgzODA0,size_16,color_FFFFFF,t_70)
apt-get install mplayer ibus ibus-pinyin flashplugin-nonfree gdebi amule qbittorrent geany stardict meld ttf-wqy-microhe kchmviewer freemind netspeed mtr filezilla-common chromium monodevelop mono-gmcs-y
apt-get install smplayer
apt-get install ibus
apt-get install ibus-pinyin
apt-get install flashplugin-nonfree
apt-get install gdebi
apt-get install amule //电驴下载器
apt-get install qbittorrent //BT下载器
apt-get install geany
apt-get install stardict
apt-get install meld
apt-get install ttf-wqy-microhei
apt-get install kchmviewer
apt-get install freemind
apt-get install netspeed
apt-get install mtr
apt-get install filezilla-common
apt-get install chromium
apt-get install monodevelop
apt-get install mono-gmcs-y
flashgot,autoproxy,Tamper Data,cookie importer,Cooides Manager,User Agent Switcher,HackBar, Live hhtp header,Firebug Download YouTube Videos as MP4,Flagfox,hashr xss-me,sql-inject-me