为系统设置全局网路代理
三种方式:
1.在gnome 环境下可以使用命令:
gnome-network-properties
?
2.在命令行中添加:
export http_proxy="http://username:password@host:port/"
?
3.修改文件/etc/environment或/root/.bashrc,添加一行
export http_proxy="http://username:password@host:port/"
?
参考自:
http://ubuntuforums.org/showthread.php?t=1575