当先锋百科网

首页 1 2 3 4 5 6 7

一、换源

1.以管理员身份进入配置文件:

sudo vim /etc/apt/sources.list

2.注释掉以前的镜像源,改为以下其中一种即可(“#”号为注释符号)

#中科大
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.ustc.edu.cn/kali kali-rolling main contrib non-free  

#阿里云
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://http.kali.org/kali kali-rolling main non-free contrib
#deb-src http://http.kali.org/kali kali-rolling main non-free contrib

3.清除旧的的软件包

sudo apt-get clean
sudo  apt-get autoclean

4.更新所有软件包

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade

二、设置root最高权限

1.以管理员身份进入

sudo passwd root

2.输入当前的密码,然后输入root密码即可

三、设置中文编码

(1)打开终端输入

sudo dpkg-reconfigure locales

在这里插入图片描述

(2)修改

1.空格:选择;
2.tab:切换;
3.*是选中

a.选中en_US.UTF-8 UTF-8和zh_CN.UTF-8 UTF-8 回车
b.将zh_CN.UTF-8 UTF-8选为默认 回车

(3)、安装中文字体

sudo apt-get install xfonts-intl-chinese
sudo apt-get install ttf-wqy-microhei

重启计算机

sudo reboot 

三、安装谷歌浏览器

1.使用wget命令下载安装包

sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

2.在文件目录下执行安装

sudo dpkg -i google-chrome-stable_*.deb

3.安装依赖i

sudo apt-get install google-chrome-stable

4.安装成功后,进入 vim /opt/google/chrome/google-chrome

exec -a “0""0""HERE/chrome” “$@”改为
exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox