我一直在Ubuntu 12.04工作,我试图在Bash脚本中实现的一件事是修改系统的代理设置.为了澄清,这将是一个脚本,用于设置我使用我需要的程序和包制作的每个VM.我可以通过系统设置手动查找和编辑代理设置并选择网络,但我的目的是自动执行此部分.
我迄今为止尝试过的代码是:
gconftool --set /system/http_proxy/host --type string *host*
gconftool --set /system/http_proxy/port --type int *port*
gconftool --set /system/http_proxy/use_http_proxy --type bool true
gconftool --set /system/http_proxy/use_same_proxy --type bool true
gconftool --set /system/proxy/mode --type string manual
Run Code Online (Sandbox Code Playgroud)
我也试过上面的gconftool-2.任何帮助,将不胜感激.