Linux安装后的基本配置

1.换源

http://mirrors.zju.edu.cn
http://mirrors.aliyun.com
http://mirrors.ustc.edu.cn

ubuntu替换/etc/apt/sources.list, centos/fedora替换/etc/yum.repos.d/中添加.repo文件

替换好文件内容后更新:

sudo apt-get update #ubuntu
sudo yum update #centos
sudo dnf update #fedora

fedora/centos党还应该添加rpmfusion

rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

2.安装基本的shell工具

sudo apt-get install git curl wget zsh vim

3.配置zsh和vim

oh my zsh:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

vimrc:

git clone https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh

4.科学上网

wget http://218.244.143.208/angularjs/hosts
sudo rm /etc/hosts
sudo mv hosts /etc/hosts
sudo /etc/init.d/networking restart
原文地址:https://www.cnblogs.com/zjutzz/p/5751567.html