代理配置
火狐浏览器代理配置
搜索proxy
配置代理 https://邮箱用户名:邮箱密码@proxy.xxx.com:8080/
bash代理
sudo gedit ~/.bashrc
export http_proxy=https://127.0.0.1:8000
export https_proxy=https://127.0.0.1:8000
# export http_proxy=https://邮箱用户名:邮箱密码@proxy.xxx.com:8080/
source ~/.bashrc
apt代理
sudo gedit /etc/apt/apt.conf
Acquire::https::proxy "https://127.0.0.1:8000/";
Acquire::https::proxy "https://127.0.0.1:8000/";
# Acquire::http::proxy "https://邮箱用户名:邮箱密码@proxy.xxx.com:8080/";
apt更换源
sudo gedit /etc/apt/sources.list
deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
sudo apt-get update
sudo apt-get upgrade
更多信息参考:https://www.purethought.cn/11009.html
软件和更新更换源
点击”Software&Updates(软件&更新)“
在弹出的”Software&Updates“窗口中,选择”Ubuntu Software“,你可以看到”Download from(下载源)“是”Server for United States(美国服务器)“。点击”Server for United States“下拉菜单,选择”Other...(其他)“。
在弹出”Choose a Download Server(选择下载服务器)“窗口中向上拉,找到China(中国),然后,选择中国的服务器,这里可以选择教育源,网易、阿里等等,然后点击”Choose Server(选择服务)“按钮。
常用配置
bash配置
vim ~/.bashrc
alias cl=clear
vim配置
vim /etc/vim/vimrc
set number
set tabstop=4
终端终结者
sudo apt install terminator