6

Hi, I want to open Firefox from the terminal with SOCKS proxy setting enabled. I would like to define it in terminal while opening.

Can this be done? and obviously if it can does anyone know how?

Cant find info on this anywhere thanks

3
  • IS there any specific reason, that you'd open this from the terminal? Mar 18, 2013 at 15:05
  • IS there any specific reason, that you'd want to know? i am building a small android app that would require this feature but have been stuck on this part im writing oon linux then migrate
    – ufun2
    Mar 18, 2013 at 15:35
  • 2
    Web browsers on Ubuntu all get their proxy settings from the network settings manager, so the proxy settings are independent of the individual browsers. You should check out this question for help on setting a proxy from the terminal askubuntu.com/questions/158557/setting-proxy-from-terminal
    – user2405
    Mar 18, 2013 at 15:59

1 Answer 1

4

Normally Web browsers such as Firefox take their proxy settings from the system through the http_proxy environment variable but this can be changed from the menu: "Edit" > "Preferences"

one

two

If from a terminal you enter firefox -ProfileManager you can create a separate profile for each of the proxies you want to use.

You can then open firefox with a specific profile with

firefox -P "profile1"

replacing profile1 with the profile for the proxy server you want.

That said the better way to do this is to use the http_proxy variable.

See here for more information on http_proxy

1

Not the answer you're looking for? Browse other questions tagged .