總體配置策略
編輯NetworkManager的配置文件
root@time-Precision-T5600:/home/time# vim /etc/NetworkManager/NetworkManager.conf
編輯linux傳統(tǒng)的系統(tǒng)網(wǎng)絡(luò)配置文件
root@time-Precision-T5600:/home/time# vim /etc/network/interfaces
重新啟動兩種網(wǎng)絡(luò)服務(wù)使其生效
root@time-Precision-T5600:/home/time# /etc/init.d/network-manager restart
root@time-Precision-T5600:/home/time# /etc/init.d/networking restart
如果還是不行,刪除傳統(tǒng)的網(wǎng)絡(luò)配置文件,并重啟服務(wù)
root@time-Precision-T5600:/home/time# rm /etc/network/interfaces
shadoworks代理配置
終端使用代理的方法
設(shè)置參考了[http://droidyue.com/blog/2016/04/04/set-shadowsocks-proxy-for-terminal/index.html]
alias hp="http_proxy=http://localhost:8123"
以后需要執(zhí)行代理的命令前面加上hp
加速pip安裝速度
可以添加aliyun的源