freebsd fetch variables

xyyz

Diamond Member
Sep 3, 2000
4,331
0
0
i'm having limited success at work with getting fetch to do anything (get the package vuneribility database, or ports). i'm pretty sure it has something to do with either running in passive mode (although, this might be the default) or becasue i need to utilize a proxy.

the following has the variables: http://www.freebsd.org/cgi/man...ry=fetch&sektion=3

but what do i do with them? where do i put them?
 

djdrastic

Senior member
Dec 4, 2002
441
0
0
Can you describe your network for us ?



Do you have any Proxy's on your network etc ..
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
ENVIRONMENT
FETCH_BIND_ADDRESS Specifies a hostname or IP address to which sockets
used for outgoing connections will be bound.

FTP_LOGIN Default FTP login if none was provided in the URL.

FTP_PASSIVE_MODE If set to anything but `no', forces the FTP code to
use passive mode.


FTP_PASSWORD Default FTP password if the remote server requests
one and none was provided in the URL.

FTP_PROXY URL of the proxy to use for FTP requests. The docu-
ment part is ignored. FTP and HTTP proxies are sup-
ported; if no scheme is specified, FTP is assumed.
If the proxy is an FTP proxy, libfetch will send
`user@host' as user name to the proxy, where `user'
is the real user name, and `host' is the name of the
FTP server.

If this variable is set to an empty string, no proxy
will be used for FTP requests, even if the HTTP_PROXY
variable is set.

ftp_proxy Same as FTP_PROXY, for compatibility.


HTTP_AUTH Specifies HTTP authorization parameters as a colon-
separated list of items. The first and second item
are the authorization scheme and realm respectively;
further items are scheme-dependent. Currently, only
basic authorization is supported.

Basic authorization requires two parameters: the user
name and password, in that order.

This variable is only used if the server requires
authorization and no user name or password was speci-
fied in the URL.

HTTP_PROXY URL of the proxy to use for HTTP requests. The docu-
ment part is ignored. Only HTTP proxies are sup-
ported for HTTP requests. If no port number is spec-
ified, the default is 3128.

Note that this proxy will also be used for FTP docu-
ments, unless the FTP_PROXY variable is set.

http_proxy Same as HTTP_PROXY, for compatibility.


HTTP_PROXY_AUTH Specifies authorization parameters for the HTTP proxy
in the same format as the HTTP_AUTH variable.

This variable is used if and only if connected to an
HTTP proxy, and is ignored if a user and/or a pass-
word were specified in the proxy URL.

HTTP_REFERER Specifies the referrer URL to use for HTTP requests.
If set to ``auto'', the document URL will be used as
referrer URL.

HTTP_USER_AGENT Specifies the User-Agent string to use for HTTP
requests. This can be useful when working with HTTP
origin or proxy servers that differentiate between
user agents.

NETRC Specifies a file to use instead of ~/.netrc to look
up login names and passwords for FTP sites. See
ftp(1) for a description of the file format. This
feature is experimental.

EXAMPLES
To access a proxy server on proxy.example.com port 8080, set the
HTTP_PROXY environment variable in a manner similar to this:

HTTP_PROXY=http://proxy.example.com:8080

If the proxy server requires authentication, there are two options avail-
able for passing the authentication data. The first method is by using
the proxy URL:

HTTP_PROXY=http://<user>:<pwd>@proxy.example.com:8080

The second method is by using the HTTP_PROXY_AUTH environment variable:

HTTP_PROXY=http://proxy.example.com:8080
HTTP_PROXY_AUTH=basic:*:<user>:<pwd>

They look like environment variables to me.
 

xyyz

Diamond Member
Sep 3, 2000
4,331
0
0
i wish i could describe it for you... unfortunately since this is a rather large company, i dont know the full details.

helpdesk told me to try entering some proxy information, now i'll give that a try.

where's the best place to put these variables? i was hoping i could use a default config file, instead of put them in the root .cshrc

 

xyyz

Diamond Member
Sep 3, 2000
4,331
0
0
alright here's another one thta i need right fast.

i can't believe i forgot the first command,

but on a freebsd system what is the command to take you to single user mode?

i thought it was "shutdown" or "shutdown -s" but neither of these are working.

next, for some reason i'm having an issue setting the HTTP_PROXY variable.

when i do:

setenv HTTP_PROXY proxy.company.com:80

and follow it with an:

echo $HTTP_PROXY

i get an empty line.

what am i doing wrong here?

EDIT:

VERY STRANGE.

i had to assign this variable in the root .cshrc, and after that i was able to change it and crap.

so what's going on? why wouldn't it take before...

also, anyone have that shutdown command :D

EDIT 2

Is it "boot -s"?
 

xyyz

Diamond Member
Sep 3, 2000
4,331
0
0
okay so "init 1" is one way. it sucks how you overlook things when you're in a rush. i did a "man init" about 3 times, but scanned right over the option all 3 times.