update-firefox proxy authorization

Post here if you are a new Porteus member and you're looking for some help.
rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

update-firefox proxy authorization

Post#1 by rych » 11 Mar 2017, 05:05

3.2.2 62 XFCE
I have proxy environment variables set up in bash, with authorization, but update-firefox picks up only the name of the proxy server. Ok, then I supply the name and a password:

Code: Select all

root@porteus:~# update-firefox -pauth=name:passw
Checking internet ...
Downloading: update-firefox-live  DONE

 Getting latest firefox version ... 
HTTP: Proxy authorization required.
       Use the -pauth=id:pw parameter.
So, when it says "Use the -pauth=id:pw parameter." how do I actually do it?

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Re: update-firefox proxy authorization

Post#2 by jssouza » 14 Mar 2017, 16:09

Hi rych,

This error message is not coming from the update scripts, but from "lynx" which the update script internally calls. Try the following and check if it helps:
As root, run:

Code: Select all

update-firefox 
Wait till the script exits with the same failure.
Now, open /usr/local/bin/update-firefox-live with a text editor and add the " -pauth=id:pw" option with your userid and password, to both the places in the script where "lynx" is called.

You might also have to add your proxy server information to the "wget" command in /usr/share/porteus/porteus-functions file (also called by the update script).

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

update-firefox proxy authorization

Post#3 by rych » 04 Mar 2019, 07:16

I've ended up using a wrapper script `lynx` which reads the credentials off the environment proxy variable and feeds them to the actual lynx: https://unix.stackexchange.com/question ... horization

Post Reply