1. 网络配置
1.1 临时网络配置
1 ifconfig eth0 //查看eth0网卡信息
2 route add -net 192.168.0.0/24 gw 192.168.40.1 eth0 //添加路由
3 route -n //显示路由表
4 netstat -nr //显示路由表
1.2 编辑网络配置文件
1 vi /etc/network/interfaces //编辑网络配置文件
1 auto eth0
2 iface eth0 inet static //静态IP地址
3 address 192.168.40.200 //IP地址配置
4 netmask 255.255.255.0 //掩码配置
5 network 192.168.40.0 //网络号配置
6 broadcast 192.168.40.255 //广播地址配置
7 gateway 192.168.40.1 //网关配置
8 dns-nameservers 61.177.7.1 8.8.8.8 //dns配置
9 up route add-net 172.16.0.0/24 gw 192.168.40.1 eth0 //启动时自动添加路由
10 down route del-net 172.24.0.0/24 //关闭时自动删除路由
1 /etc/init.d/networking restart //重启网络
2. 更新升级
2.1 添加国内源
1 vi /etc/apt/sources.list //vi编辑器编辑源列表
- 添加以下更新源,并将Kali自带源注释掉(Kali自带源速度较慢)
#中科大
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://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
#163源
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
1 apt-get update //获取更新软件包列表信息
2 apt-get update --fix-missing //获取更新时去除失效的索引
3 apt-get upgrade //升级软件包
4 apt-get dist-upgrade //系统大版本更新时可用此命令升级
5 apt-get clean //删除已经下载的安装包
6 reboot //重启
2.2 安装谷歌浏览器
- 去官网下载:google-chrome-stable_current_amd64.deb安装包
1 cd 下载 //cd到下载目录
2 ls //查看下载文件夹中的内容
3 dpkg -i google-chrome-stable_current_amd64.deb //本地安装google chrome
4 apt-get -f install //出现依赖问题可运行此命令
5 google-chrome //打开谷歌浏览器
- root账户下需要更改谷歌浏览器属性才能打开(在命令字段中输入--no-sandbox)
2.3 常见Firefox浏览器插件安装