开发者

firefox proxy settings through terminal in Ubuntu 10.04

开发者 https://www.devze.com 2023-02-11 02:22 出处:网络
I switch from one proxy to another very frequently and needs to change my proxy settings of my browser very frequently. I am attempting towrite a scriptfile that changes pr开发者_如何学Pythonoxy of fi

I switch from one proxy to another very frequently and needs to change my proxy settings of my browser very frequently. I am attempting to write a script file that changes pr开发者_如何学Pythonoxy of firefox according to that value that i pass to the script. I went through the posts in stackoverflow but nothing seems to be very relevant to what i need.


I have a script in /etc/NetworkManager/dispatcher.d/ which determines which proxy to use for the current connections and then calls:

gconf --type string --set /system/proxy/mode "manual"
gconf --type bool --set /system/http_proxy/use_http_proxy "true"
gconf --type string --set /system/http_proxy/host $PROXY_HOST
gconf --type int --set /system/http_proxy/port $PROXY_PORT
gconf --type bool --set /system/http_proxy/use_same_proxy "true"  
gconf --type bool --set /system/http_proxy/use_authentication $AUTH_REQUIRED
gconf --type string --set /system/http_proxy/authentication_user $DOMAIN_USER
gconf --type string --set /system/http_proxy/authentication_password $DOMAIN_PWD


  1. Why not you set firefox to use System Proxy setting.
  2. Write script to change the proxy setting in your profile.
0

精彩评论

暂无评论...
验证码 换一张
取 消