总体配置策略
编辑NetworkManager的配置文件
root@time-Precision-T5600:/home/time# vim /etc/NetworkManager/NetworkManager.conf
编辑linux传统的系统网络配置文件
root@time-Precision-T5600:/home/time# vim /etc/network/interfaces
重新启动两种网络服务使其生效
root@time-Precision-T5600:/home/time# /etc/init.d/network-manager restart
root@time-Precision-T5600:/home/time# /etc/init.d/networking restart
如果还是不行,删除传统的网络配置文件,并重启服务
root@time-Precision-T5600:/home/time# rm /etc/network/interfaces
shadoworks代理配置
终端使用代理的方法
设置参考了[http://droidyue.com/blog/2016/04/04/set-shadowsocks-proxy-for-terminal/index.html]
alias hp="http_proxy=http://localhost:8123"
以后需要执行代理的命令前面加上hp
加速pip安装速度
可以添加aliyun的源
网友评论