FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 05-20-2010, 07:51 AM
 
Default Bootstrapping behind an HTTP proxy

The "Gentoo Prefix Use Cases" paper
(http://www.gentoo.org/proj/en/gentoo-alt/prefix/usecases.xml) has
scenarios where Gentoo Prefix is used in enterprise environments. It is
not unusual that machines in such environments have Internet access
through some kind of HTTP proxy.

I think it would be a good idea for the step-by-step instructions (e g
http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml) to
include recommendations on how to specify an HTTP proxy for the bootstrap
process. Perhaps it is not easy to cover all possible proxy
configurations, but probably it would go a long way to just indicate how
to do in a typical case.

Some time ago I found that putting proxy details in etc/wgetrc appeared to
solve the problem for me. Recently this doesn't work anymore
(http://bugs.gentoo.org/show_bug.cgi?id=320555).

Proxy info is also needed in ~/.subversion/servers; at least that is what
I have. It would be nicer if the subversion config files could be folded
into the prefix tree, I haven't looked into this.

Maybe there is more to it that I can't think of now. Anyway, if someone
adds instructions to the step-by-step page I volunteer to try them out.

--Rabbe Fogelholm
 
Old 05-20-2010, 10:24 AM
 
Default Bootstrapping behind an HTTP proxy

Hello Rabbe,

IMHO, proxy settings is a independent topic compared to bootstrap.
There are different ways to get a same result, and git, svn, wget, bash,
have different approaches. Including a discussion of setting up proxy is
a distraction to the bootstrap manual.

As you said, in enterprise environments, proxy is usual. So maybe we can
point to some metarials on using proxies in the bootstrap manual?

Cheers,
--
XU Benda
Research Center for Neutrino Science
Tohoku University
JAPAN

http://www.awa.tohoku.ac.jp/~benda
 
Old 05-20-2010, 03:44 PM
 
Default Bootstrapping behind an HTTP proxy

i just followed the proxy note from the gentoo handbook. i believe you
have to use what works for wget, curl, or lynx.


export http_proxy="http://proxy.server.comort"
export ftp_proxy="http://proxy.server.comort"

something like that should work depending on your shell.

matt

On Thu, 20 May 2010, rabbe@bahnhof.se wrote:


The "Gentoo Prefix Use Cases" paper
(http://www.gentoo.org/proj/en/gentoo-alt/prefix/usecases.xml) has
scenarios where Gentoo Prefix is used in enterprise environments. It is
not unusual that machines in such environments have Internet access
through some kind of HTTP proxy.

I think it would be a good idea for the step-by-step instructions (e g
http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml) to
include recommendations on how to specify an HTTP proxy for the bootstrap
process. Perhaps it is not easy to cover all possible proxy
configurations, but probably it would go a long way to just indicate how
to do in a typical case.

Some time ago I found that putting proxy details in etc/wgetrc appeared to
solve the problem for me. Recently this doesn't work anymore
(http://bugs.gentoo.org/show_bug.cgi?id=320555).

Proxy info is also needed in ~/.subversion/servers; at least that is what
I have. It would be nicer if the subversion config files could be folded
into the prefix tree, I haven't looked into this.

Maybe there is more to it that I can't think of now. Anyway, if someone
adds instructions to the step-by-step page I volunteer to try them out.

--Rabbe Fogelholm
 
Old 05-20-2010, 06:48 PM
Rabbe Fogelholm
 
Default Bootstrapping behind an HTTP proxy

Ideally it should be as simple as that; just set the http_proxy
environment variable.

Two concerns though--first of all, at certain times a workaround of mine
has been to put proxy info in etc/wgetrc (besides having http_proxy
defined). Bug 315421 has the story. I have not checked if the etc/wgetrc
workaround was needed only for a couple of days, or if it is still needed.

Second, the `emerge --sync' step causes subversion to be used. It seems
that subversion requires ~/.subversion/servers to be set up. Long ago I
wrote a helper script that tries `emerge --sync' once (causing the
~/.subversion directory to be set up), and on failure adds the proxy
info into the servers file, and retries `emerge --sync'. Quite kludgy
but it solves the problem.

So, if it can't be helped that an HTTP proxy requires non-trivial steps
to be taken then IMHO the webpage should provide advice. Otherwise there
will be mail threads like this one, and bugs filed, and worst of all,
potential enterprise users will ditch Gentoo Prefix because it does not
Just Work.

--Rabbe


mattmatteh@gmail.com wrote:
> i just followed the proxy note from the gentoo handbook. i believe you
> have to use what works for wget, curl, or lynx.
>
> export http_proxy="http://proxy.server.comort"
> export ftp_proxy="http://proxy.server.comort"
>
> something like that should work depending on your shell.
>
> matt
>
> On Thu, 20 May 2010, rabbe@bahnhof.se wrote:
>
>> The "Gentoo Prefix Use Cases" paper
>> (http://www.gentoo.org/proj/en/gentoo-alt/prefix/usecases.xml) has
>> scenarios where Gentoo Prefix is used in enterprise environments. It is
>> not unusual that machines in such environments have Internet access
>> through some kind of HTTP proxy.
>>
>> I think it would be a good idea for the step-by-step instructions (e g
>> http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml) to
>> include recommendations on how to specify an HTTP proxy for the bootstrap
>> process. Perhaps it is not easy to cover all possible proxy
>> configurations, but probably it would go a long way to just indicate how
>> to do in a typical case.
>>
>> Some time ago I found that putting proxy details in etc/wgetrc
>> appeared to
>> solve the problem for me. Recently this doesn't work anymore
>> (http://bugs.gentoo.org/show_bug.cgi?id=320555).
>>
>> Proxy info is also needed in ~/.subversion/servers; at least that is what
>> I have. It would be nicer if the subversion config files could be folded
>> into the prefix tree, I haven't looked into this.
>>
>> Maybe there is more to it that I can't think of now. Anyway, if someone
>> adds instructions to the step-by-step page I volunteer to try them out.
>>
>> --Rabbe Fogelholm
>
 
Old 05-20-2010, 06:53 PM
Fabian Groffen
 
Default Bootstrapping behind an HTTP proxy

On 20-05-2010 20:48:42 +0200, Rabbe Fogelholm wrote:
> Ideally it should be as simple as that; just set the http_proxy
> environment variable.
>
> Two concerns though--first of all, at certain times a workaround of mine
> has been to put proxy info in etc/wgetrc (besides having http_proxy
> defined). Bug 315421 has the story. I have not checked if the etc/wgetrc
> workaround was needed only for a couple of days, or if it is still needed.
>
> Second, the `emerge --sync' step causes subversion to be used. It seems
> that subversion requires ~/.subversion/servers to be set up. Long ago I

This is really old. Bootstraps no longer use a subversion-based tree,
but an rsync one. I don't know how rsync plays with a proxy setup, but
in the worst case it would mean to resort to webrsync, which uses plain
wget over http.

> So, if it can't be helped that an HTTP proxy requires non-trivial steps
> to be taken then IMHO the webpage should provide advice. Otherwise there
> will be mail threads like this one, and bugs filed, and worst of all,
> potential enterprise users will ditch Gentoo Prefix because it does not
> Just Work.

I have nothing against adding pointers how to use a proxy. We first
have to fix Portage though, because I don't like to document hacks
because of bugs in Portage.


--
Fabian Groffen
Gentoo on a different level
 
Old 05-21-2010, 01:47 AM
 
Default Bootstrapping behind an HTTP proxy

Some comments:

Fabian Groffen <grobian@gentoo.org> writes:

> This is really old. Bootstraps no longer use a subversion-based tree,
> but an rsync one. I don't know how rsync plays with a proxy setup, but
> in the worst case it would mean to resort to webrsync, which uses plain
> wget over http.

rsync behind an HTTP proxy can be accomplished with env variable

RSYNC_PROXY=$host:$port

of course the proxy server need to have CONNECT method on rsync port
enabled.

--
XU Benda
Research Center for Neutrino Science
Tohoku University
JAPAN

http://www.awa.tohoku.ac.jp/~benda
 
Old 05-21-2010, 06:50 AM
 
Default Bootstrapping behind an HTTP proxy

Great, I'll retire my emerge-sync wrapper script and see if a plain
`emerge --sync' does the job (once 320555 is resolved that is).

Which transport mechanism is it that gets used? The rsync manpage mentions
SSH as one possibility. If SSH is being used it might work without any
extra configuration from within my particular enterprise environment.

--Rabbe


> Some comments:
>
> Fabian Groffen <grobian@gentoo.org> writes:
>
>> This is really old. Bootstraps no longer use a subversion-based tree,
>> but an rsync one. I don't know how rsync plays with a proxy setup, but
>> in the worst case it would mean to resort to webrsync, which uses plain
>> wget over http.
>
> rsync behind an HTTP proxy can be accomplished with env variable
>
> RSYNC_PROXY=$host:$port
>
> of course the proxy server need to have CONNECT method on rsync port
> enabled.
>
> --
> XU Benda
> Research Center for Neutrino Science
> Tohoku University
> JAPAN
>
> http://www.awa.tohoku.ac.jp/~benda
>
>
 
Old 05-21-2010, 08:25 AM
Fabian Groffen
 
Default Bootstrapping behind an HTTP proxy

On 21-05-2010 08:50:36 +0200, rabbe@bahnhof.se wrote:
> Great, I'll retire my emerge-sync wrapper script and see if a plain
> `emerge --sync' does the job (once 320555 is resolved that is).
>
> Which transport mechanism is it that gets used? The rsync manpage mentions
> SSH as one possibility. If SSH is being used it might work without any
> extra configuration from within my particular enterprise environment.

It uses the rsync protocol, and that's the only way we allow access to
the rsync servers.


--
Fabian Groffen
Gentoo on a different level
 

Thread Tools




All times are GMT. The time now is 08:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org