View previous topic :: View next topic |
Author |
Message |
o5gmmob8 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 17 Oct 2003 Posts: 507
|
Posted: Sun Mar 27, 2011 4:59 pm Post subject: programmatically set proxy (gnome system proxy) |
|
|
Hi all,
I want to set the system proxy whenever I enable/disable Tor. I would like it to be integrated so I can just do:
rc tor
/etc/init.d/tor start
set location (tor)
And, voila, tor is automatically started along with polipo as well as gnome made aware to use the tor location which specifies the given proxy to use.
How do I set the system proxy for gnome programmatically?
Thanks,
Walter |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gimpel Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/129086950243c7024511c31.jpg)
Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Thu Mar 31, 2011 10:07 am Post subject: |
|
|
gconftool is your friend. You have to run it as user, so "su <username> -c ..."
This lists the proxy settings:
Code: | gconftool-2 --all-entries /system/http_proxy |
With "gconftool --set .." you can change them. _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
o5gmmob8 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 17 Oct 2003 Posts: 507
|
Posted: Fri Apr 01, 2011 1:14 pm Post subject: |
|
|
Cool, that will help out perfectly.
Thanks,
Walter |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|