configure proxy for pkgin

1,615 views
Skip to first unread message

Heiko

unread,
Oct 1, 2010, 8:46:50 AM10/1/10
to minix3
Hi

Is it possible to configure proxy for pkgin.
I've searched the archives and found queries, but no answers to this.

Do I need to replace urlget with wget ? Where/how do I do this ?

Or is there a default config file that urlget looks at, or environment
variables ?

I saw there was a urlget patch, but not sure if it has been applied,
nor how to configure this - if applied.

tnx, h.

pikpik

unread,
Oct 1, 2010, 4:49:33 PM10/1/10
to minix3
Hi,

On Oct 1, 8:46 am, Heiko <h.ris...@gmail.com> wrote:
>
> Is it possible to configure proxy for pkgin.
> I've searched the archives and found queries, but no answers to this.
>

I'm not certain, but it looks like pkgin should use pkgsrc's FTP
settings: http://www.netbsd.org/docs/pkgsrc/faq.html#fetch-behind-firewall

>
> Or is there a default config file that urlget looks at, or environment
> variables ?
>

You can set these as environment variables.

Example from the above pkgsrc FAQ:

[Using "orpheus.amdahl.com" as an example,] the proxy environment
variables are:

ftp_proxy=ftp://orpheus.amdahl.com:80/
http_proxy=http://orpheus.amdahl.com:80/


I haven't tried this from behind a firewall, so I'm not sure if it
works on MINIX.

I hope this helps,
pikpik

r0ller

unread,
Oct 2, 2010, 5:51:45 AM10/2/10
to minix3
I'm using minix behind a firewall and pkgin works after applying the
patch to urlget and setting the environment variables mentioned above.

r0ller

Arun Thomas

unread,
Oct 2, 2010, 6:27:19 AM10/2/10
to min...@googlegroups.com
On 10/02/2010 11:51 AM, r0ller wrote:
> I'm using minix behind a firewall and pkgin works after applying the
> patch to urlget and setting the environment variables mentioned above.

Pkgin uses fetch(1) to download packages. Urlget is no longer used, so
there's no need to apply that patch. If you set ftp_proxy/http_proxy,
that should be enough.

Best,
Arun

Heiko

unread,
Oct 8, 2010, 9:27:52 AM10/8/10
to minix3
thanx ;) Not 100% sure if works since both connections work (with and
without proxy) - but proxy connection a lot faster.
tried something like TCPStat to figure out which connection is being
used but that also doesn't help - considering its the route I'll need
to determine.

Though I did set the proxy port to something else (invalid), and the
download still worked.

.H
Reply all
Reply to author
Forward
0 new messages