Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
programmatically set proxy (gnome system proxy)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 507

PostPosted: Sun Mar 27, 2011 4:59 pm    Post subject: programmatically set proxy (gnome system proxy) Reply with quote

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
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Thu Mar 31, 2011 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 507

PostPosted: Fri Apr 01, 2011 1:14 pm    Post subject: Reply with quote

Cool, that will help out perfectly.


Thanks,

Walter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum