pminstaller.sh and proxy

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Andys

pminstaller.sh and proxy

Unread post by Andys » 2015-06-05, 08:49

Hi, how do I force the script to use system's proxy server?
I ran "export http_proxy=xxx" in terminal, checked by "wget www.google.com" that it was properly working and then ran the script (from same terminal) which hangs on retrieving PM's files.
I am new to Linux so maybe I am doing it wrong?

Funkster

Re: pminstaller.sh and proxy

Unread post by Funkster » 2015-09-24, 14:29

Hi,

The problem is that sudo doesn't inherit your http_proxy environment variable. It's not the script's fault as such.

To fix:

"sudo visudo"

find the section with a bunch of

Code: Select all

Defaults    env_keep += "blablabla"
and add this to the end:

Code: Select all

Defaults    env_keep += "http_proxy"
and save and exit (esc, :wq).

then, do export http_proxy="http://yourproxy:port"; ./pminstaller.sh

and you should be golden!

hth.

Locked