新手ubuntu安装后必须做的几件事

简介

刚把我VM里的ubuntu升级到了ubuntu 22,然后需要配置的系统环境还是比较多的,我把配置记录如下,做个

记,方便爱好者和新手入门使用

 

配置

修改ubuntu的apt源

vi /etc/apt/sources.list

这个是我ubuntu 22的apt配置,用的是阿里云的源,速度快,注释部分的是源码

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted
# deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted
# deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal universe
# deb-src http://mirrors.aliyun.com/ubuntu/ bionic universe
deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe
# deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates universe
deb http://mirrors.aliyun.com/ubuntu/ focal multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ bionic multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

更新源库并更新所有软件

apt update
apt upgrade
apt autoremove

python更换pip源

pip install pip -U
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

Ruby更换国内源

gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
gem sources -l
# https://gems.ruby-china.com

npm更换国内源

npm config set registry https://registry.npm.taobao.org

gnome插件,下载gnome管理神器,tweak

apt-get update
apt-get install gnome-tweak-tool
apt-get install gnome-shell-extensions

- QQ%E5%9B%BE%E7%89%8720221216184628

上一篇 Evoxt:新年促销充值活动,充就送,活动时间有限,美国/英国/马来西亚VPS低至2.99美元/月
下一篇 解决软件包依赖关系的问题"无法修正错误,因为您要求某些"

投稿邮箱:
ivpsr888@gmail.com (投稿详情)

TG订阅频道:
t.me/ivpsr_news 网站最新内容推送

TG交流群:
(点击加入) 用户交流

文章列表
1
buyvm:拉斯维加斯机房测评,[2023]buyvm是否如初,1Gbps带宽不限流量/带DDOS防御,请品鉴测评数据
buyvm:拉斯维加斯机房测评,[2023]buyvm是否如初,1Gbps带宽不限流量/带DDOS防御,请品鉴测评数据
2
linode日本大阪ntt线路深度测评,linode实测数据告诉你它到底如何?
linode日本大阪ntt线路深度测评,linode实测数据告诉你它到底如何?
3
vultr日本东京ntt线路简单测评,线路有所改善,vultr怎么样直接看实测数据
vultr日本东京ntt线路简单测评,线路有所改善,vultr怎么样直接看实测数据
4
Cloudflare遭遇数据中心断电后恢复服务
Cloudflare遭遇数据中心断电后恢复服务
5
madcityservers美国VPS $3.15/月起,最高5折优惠,单核AMD Ryzen/100GB NVMe/10Gbps带宽不限流量,洛杉矶/纽约/迈阿密/盐湖城机房
madcityservers美国VPS $3.15/月起,最高5折优惠,单核AMD Ryzen/100GB NVMe/10Gbps带宽不限流量,洛杉矶/纽约/迈阿密/盐湖城机房
6
Nvidia声称新的软件库使H100 GPU上的LLM推理速度提高一倍
Nvidia声称新的软件库使H100 GPU上的LLM推理速度提高一倍
7
VinaHost:VPS GPU活动优惠最低1折,数量有限,先到先得,泰国/越南VPS
VinaHost:VPS GPU活动优惠最低1折,数量有限,先到先得,泰国/越南VPS
8
在升级wordpress时遇到的“这通常是因为存在不一致的文件权限”的报错处理方法
在升级wordpress时遇到的“这通常是因为存在不一致的文件权限”的报错处理方法
9
RAKsmart:五一特惠活动,洛杉矶新品秒杀E3-1230仅30美金限量秒杀,新增洛杉矶+韩国站群,爆款VPS仅$ 1.99
RAKsmart:五一特惠活动,洛杉矶新品秒杀E3-1230仅30美金限量秒杀,新增洛杉矶+韩国站群,爆款VPS仅$ 1.99
10
oulucloud新加坡优惠VPS六折2.99美元每月起,全场VPS八折3.99美元每月起,可选香港、日本、美国、加拿大机房
oulucloud新加坡优惠VPS六折2.99美元每月起,全场VPS八折3.99美元每月起,可选香港、日本、美国、加拿大机房