Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

How to configure firefox 3.6 proxy through ssh terminal on ubuntu 8.04

  • 1 resposta
  • 1 tem este problema
  • 1 visualização
  • Última resposta por ratul.dasgupta

more options

I am trying to configure Firefox proxy through an ssh terminal (putty) on Ubuntu 8.04. There in no GUI for the terminal, so am using xvfb to simulate the display. However Firefox cannot open any website because the proxy is not set correctly Here's what I tried.Edited a loadcustom.js file in /usr/lib/firefox-3.6x/defaults/prefs and added the lines // tell firefox to load customized config file pref("general.config.obscure_value", 0); pref("general.config.filename", "firefox.cfg");

Then created a firefox.cfg file in /usr/lib/firefox3.6x and added the lines // Lock specific preferences in Firefox so that users cannot edit them lockPref("app.update.enabled", false); lockPref("network.proxy.http", "my-proxy.in-my-domain.com"); lockPref("network.proxy.http_port", 8080); lockPref("network.proxy.type", 1); lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 192.168.1.0/24"); lockPref("network.proxy.share_proxy_settings", true); lockPref("browser.startup.homepage", "http://www.google.com/");

This did not work for me. Any suggestions?

I am trying to configure Firefox proxy through an ssh terminal (putty) on Ubuntu 8.04. There in no GUI for the terminal, so am using xvfb to simulate the display. However Firefox cannot open any website because the proxy is not set correctly Here's what I tried.Edited a loadcustom.js file in /usr/lib/firefox-3.6x/defaults/prefs and added the lines // tell firefox to load customized config file pref("general.config.obscure_value", 0); pref("general.config.filename", "firefox.cfg"); Then created a firefox.cfg file in /usr/lib/firefox3.6x and added the lines // Lock specific preferences in Firefox so that users cannot edit them lockPref("app.update.enabled", false); lockPref("network.proxy.http", "my-proxy.in-my-domain.com"); lockPref("network.proxy.http_port", 8080); lockPref("network.proxy.type", 1); lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 192.168.1.0/24"); lockPref("network.proxy.share_proxy_settings", true); lockPref("browser.startup.homepage", "http://www.google.com/"); This did not work for me. Any suggestions?

Modificado por ratul.dasgupta a

Solução escolhida

Never mind. I got it working now, I was editing at the wrong place I guess.

I had to add the settings in /usr/lib/firefox-3.6.17/defaults/pref/firefox.js and then restart Firefox. Here's what I added pref("network.proxy.type", 4); to have Firefox auto-detect proxy settings.

Ler esta resposta no contexto 👍 0

Todas as respostas (1)

more options

Solução escolhida

Never mind. I got it working now, I was editing at the wrong place I guess.

I had to add the settings in /usr/lib/firefox-3.6.17/defaults/pref/firefox.js and then restart Firefox. Here's what I added pref("network.proxy.type", 4); to have Firefox auto-detect proxy settings.