Re: How to set proxy authentication when installing?

2006-11-18 Thread Paul Stoeber
Jing Peng wrote:
> Hello everyone! I am a university student and I can't visit the web
> server outside of China. So ,I use proxy to install OpenBSD(the proxy
> need for authentication). When I get into the step bellow, I do not
> know how to set proxy authentication correctly. I tried for times, but
> failed.

Proxy authentication is not implemented in ftp(1).

You can work around this by creating a custom installation CD.

$ find OpenBSD -type f  # these files are on the ftp mirrors
OpenBSD/4.0/i386/base40.tgz
OpenBSD/4.0/i386/bsd
OpenBSD/4.0/i386/bsd.mp
OpenBSD/4.0/i386/bsd.rd
OpenBSD/4.0/i386/cdrom40.fs
OpenBSD/4.0/i386/comp40.tgz
OpenBSD/4.0/i386/etc40.tgz
OpenBSD/4.0/i386/game40.tgz
OpenBSD/4.0/i386/man40.tgz
OpenBSD/4.0/i386/misc40.tgz
OpenBSD/4.0/i386/xbase40.tgz
OpenBSD/4.0/i386/xetc40.tgz
OpenBSD/4.0/i386/xfont40.tgz
OpenBSD/4.0/i386/xserv40.tgz
OpenBSD/4.0/i386/xshare40.tgz
OpenBSD/4.0/packages/i386/expat-2.0.0.tgz
OpenBSD/4.0/packages/i386/gettext-0.14.5p1.tgz
OpenBSD/4.0/packages/i386/libiconv-1.9.2p3.tgz
OpenBSD/4.0/packages/i386/wget-1.10.2p0.tgz
$ mkisofs -l -r -b 4.0/i386/cdrom40.fs -o obsd.iso OpenBSD

When you have OpenBSD up and running, try wget's proxy authentication.

# mount /dev/cd0a /mnt  # replace cd0a with your CD device
# pkg_add /mnt/4.0/packages/i386/wget-1.10.2p0.tgz
# man wget

If you like OpenBSD, you could try to implement proxy authentication
in ftp(1).



Re: How to set proxy authentication when installing?

2006-11-18 Thread Matthew R. Dempsky
On Sat, Nov 18, 2006 at 09:13:36PM +0100, Joachim Schipper wrote:
> IIRC, the version of FTP built for the RAMDISK kernel does not support
> proxy authentication. If this is correct, what you are seeing is
> unsurprising.

I thought it only lacks HTTPS support?



Re: How to set proxy authentication when installing?

2006-11-18 Thread Joachim Schipper
On Sat, Nov 18, 2006 at 06:36:35PM +0800, Jing Peng wrote:
> Hello everyone! I am a university student and I can't visit the web
> server outside of China. So ,I use proxy to install OpenBSD(the proxy
> need for authentication). When I get into the step bellow, I do not
> know how to set proxy authentication correctly. I tried for times, but
> failed.
> 
> Let's install the sets! Location of sets? (cd disk ftp http or 'done') [cd] 
> ftp
> HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]
> 
> Supposing my proxy server use http protocol, and its IP address is
> *.*.0.9, and the username is abc.s34(please notice that it has a dot
> inside), the password is abc. So, what should I input for HTTP/FTP
> proxy URL?

IIRC, the version of FTP built for the RAMDISK kernel does not support
proxy authentication. If this is correct, what you are seeing is
unsurprising.

You might be able to order a CD, or download the install sets from the
net on another box and burn them to CD/serve them via some local server.
If you know what you are doing, you could use this box, too (there are
several ways to store data on disk; just dd'ing the install images to a
partition, keeping track of where they are stored, would allow you to
recover them easily - if I indeed remember correctly that the install
disk does contain dd, or getting more than one file on a partition might
be tricky. Still, you can boot with surprisingly few files - I'm fairly
certain that having bsd.rd and baseXY.tgz will be enough to allow you to
download the rest easily.)

Joachim



Re: How to set proxy authentication when installing?

2006-11-18 Thread Matthew R. Dempsky
On Sat, Nov 18, 2006 at 11:56:13PM +0800, Jing Peng wrote:
> I had tried it for times, but with no success.

Does your proxy support FTP?  Have you tried telling the installer to
use HTTP instead of FTP?



Re: How to set proxy authentication when installing?

2006-11-18 Thread Jing Peng

On 11/18/06, Matthew R. Dempsky <[EMAIL PROTECTED]> wrote:

On Sat, Nov 18, 2006 at 06:36:35PM +0800, Jing Peng wrote:
> Supposing my proxy server use http protocol, and its IP address is
> *.*.0.9, and the username is abc.s34(please notice that it has a dot
> inside), the password is abc. So, what should I input for HTTP/FTP
> proxy URL?

Looking at ftp(1)'s source code, I don't think the '.' should throw
off the username/password parsing, so try: http://abc.s34:[EMAIL PROTECTED]



I had tried it for times, but with no success.



Re: How to set proxy authentication when installing?

2006-11-18 Thread Matthew R. Dempsky
On Sat, Nov 18, 2006 at 06:36:35PM +0800, Jing Peng wrote:
> Supposing my proxy server use http protocol, and its IP address is
> *.*.0.9, and the username is abc.s34(please notice that it has a dot
> inside), the password is abc. So, what should I input for HTTP/FTP
> proxy URL?

Looking at ftp(1)'s source code, I don't think the '.' should throw
off the username/password parsing, so try: http://abc.s34:[EMAIL PROTECTED]



How to set proxy authentication when installing?

2006-11-18 Thread Jing Peng

Hello everyone! I am a university student and I can't visit the web
server outside of China. So ,I use proxy to install OpenBSD(the proxy
need for authentication). When I get into the step bellow, I do not
know how to set proxy authentication correctly. I tried for times, but
failed.

Let's install the sets! Location of sets? (cd disk ftp http or 'done') [cd] ftp
HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]

Supposing my proxy server use http protocol, and its IP address is
*.*.0.9, and the username is abc.s34(please notice that it has a dot
inside), the password is abc. So, what should I input for HTTP/FTP
proxy URL?

Thank you!