Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

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

  • 1 odpověď
  • 1 má tento problém
  • 1 zobrazení
  • Poslední odpověď od 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?

Upravil uživatel ratul.dasgupta dne

Zvolené řešení

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.

Přečíst dotaz v kontextu 👍 0

Všechny odpovědi (1)

more options

Zvolené řešení

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.