加入收藏 | 设为首页 | 会员中心 | 我要投稿 南京站长网 (https://www.025zz.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Linux 操作系统修改源的方法总结【持续更新】

发布时间:2022-10-14 17:30:21 所属栏目:Linux 来源:互联网
导读: 有时候CentOS默认的yum源不一定是国内镜像,导致yum在线安装及更新速度不是很理想。这时候需要将yum源设置为国内镜像站点。国内主要开源的开源镜像站点应该是网易和阿里云了。
一、centos系

有时候CentOS默认的yum源不一定是国内镜像,导致yum在线安装及更新速度不是很理想。这时候需要将yum源设置为国内镜像站点。国内主要开源的开源镜像站点应该是网易和阿里云了。

一、centos系统

修改CentOS默认yum源为mirrors.163.com

1、首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo

[root@localhost?~]#?mv?/etc/yum.repos.d/CentOS-Base.repo?/etc/yum.repos.d/CentOS-Base.repo.backup

2、进入yum源配置文件所在的文件夹

[root@localhost?~]#?cd?/etc/yum.repos.d/

3、下载163的yum源配置文件到上面那个文件夹内

CentOS7

[root@localhost?yum.repos.d]#?wget?http://mirrors.163.com/.help/CentOS7-Base-163.repo

4、运行yum makecache生成缓存

[root@localhost?yum.repos.d]#?yum?makecache

5、这时候再更新系统就会看到以下mirrors.163.com信息

[root@localhost?yum.repos.d]#?yum?-y?update
已加载插件:fastestmirror,?refresh-packagekit,?security
设置更新进程Loading?mirror?speeds?from?cached?hostfile

*?base:?mirrors.163.com
*?extras:?mirrors.163.com
*?updates:?mirrors.163.com

二、kali(ubuntu)系统

步骤如下:

vim  /etc/apt/sources.list
删除原来的内容
10 dd
拷贝下面内容
#163网易 Kali源
deb http://mirrors.163.com/debian wheezy main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy main non-free contrib 
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 

deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib 
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib

下面执行更新操作

执行 apt-get update 命令即可更新源
执行 apt-get upgrade 更新软件
然后安装下载更新,使用如下命令
apt-get dist-upgrade
#linux内核更新
apt-get install linux-headers-$(uname -r)
 

修改kali 字体重叠

apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy

全局最大化 ---- 安装vmware-tools

(编辑:南京站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!