Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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

  • 1 件の返信
  • 1 人がこの問題に困っています
  • 56 回表示
  • 最後の返信者: 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?

この投稿は ratul.dasgupta により に変更されました

選ばれた解決策

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.

この回答をすべて読む 👍 0

すべての返信 (1)

more options

選ばれた解決策

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.