Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > VectorLinux
User Name
VectorLinux This forum is for the discussion of VectorLinux.


Search this Thread
Old 08-18-2005, 10:36 AM   #1
Registered: Nov 2003
Location: china
Distribution: Linux Mint
Posts: 49

Rep: Reputation: 15
howto use slapt-get with a proxy


I`m using Vector linux 5.1 Standard edition and trying to use slapt-get to update my system and install extra programs. I connect to the Internet through my School`s proxy server. I have this working perfectly for access through firefox.

Where do I add proxy settings for slapt-get? The configuration file (slapt-getrc) has no options to add proxies. I added the proxy to wget.rc, but this was no help. I know .netrc is involved in routing, but it does not exist on my system and I do not know what to put in it.

Could you please help? I also have a router (netgear mr814 v3), but this does not seem to have an option for adding proxies. It does have port forwarding, but that has not been any help.

My wget.rc is below

Thanks for helping.


### Sample Wget initialization file .wgetrc

## You can use this file to change the default behaviour of wget or to
## avoid having to type many many command-line options. This file does
## not contain a comprehensive list of commands -- look at the manual
## to find out what you can put into this file.
## Wget initialization file can reside in /usr/local/etc/wgetrc
## (global, for all users) or $HOME/.wgetrc (for a single user).
## To use the settings in this file, you will have to uncomment them,
## as well as change them, in most cases, as the values on the
## commented-out lines are the default values (e.g. "off").

## Global settings (useful for setting up in /usr/local/etc/wgetrc).
## Think well before you change them, since they may reduce wget's
## functionality, and make it behave contrary to the documentation:

# You can set retrieve quota for beginners by specifying a value
# optionally followed by 'K' (kilobytes) or 'M' (megabytes). The
# default quota is unlimited.
#quota = inf

# You can lower (or raise) the default number of retries when
# downloading a file (default is 20).
#tries = 20

# Lowering the maximum depth of the recursive retrieval is handy to
# prevent newbies from going too "deep" when they unwittingly start
# the recursive retrieval. The default is 5.
#reclevel = 5

# Many sites are behind firewalls that do not allow initiation of
# connections from the outside. On these sites you have to use the
# `passive' feature of FTP. If you are behind such a firewall, you
# can turn this on to make Wget use passive FTP by default.
#passive_ftp = off

# The "wait" command below makes Wget wait between every connection.
# If, instead, you want Wget to wait only between retries of failed
# downloads, set waitretry to maximum number of seconds to wait (Wget
# will use "linear backoff", waiting 1 second after the first failure
# on a file, 2 seconds after the second failure, etc. up to this max).
waitretry = 10

## Local settings (for a user to set in his $HOME/.wgetrc). It is
## *highly* undesirable to put these settings in the global file, since
## they are potentially dangerous to "normal" users.
## Even when setting up your own ~/.wgetrc, you should know what you
## are doing before doing so.

# Set this to on to use timestamping by default:
#timestamping = off

# It is a good idea to make Wget send your email address in a `From:'
# header with your request (so that server administrators can contact
# you in case of errors). Wget does *not* send `From:' by default.
#header = From: Your Name <username@site.domain>

# You can set up other headers, like Accept-Language. Accept-Language
# is *not* sent by default.
#header = Accept-Language: en

# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
http_proxy =
ftp_proxy =

# If you do not want to use proxy at all, set this to off.
use_proxy = on

# You can customize the retrieval outlook. Valid options are default,
# binary, mega and micro.
#dot_style = default

# Setting this to off makes Wget not download /robots.txt. Be sure to
# know *exactly* what /robots.txt is and how it is used before changing
# the default!
#robots = on

# It can be useful to make Wget wait between connections. Set this to
# the number of seconds you want Wget to wait.
#wait = 0

# You can force creating directory structure, even if a single is being
# retrieved, by setting this to on.
#dirstruct = off

# You can turn on recursive retrieving by default (don't do this if
# you are not sure you know what it means) by setting this to on.
#recursive = off

# To always back up file X as X.orig before converting its links (due
# to -k / --convert-links / convert_links = on having been specified),
# set this variable to on:
#backup_converted = off

# To have Wget follow FTP links from HTML files by default, set this
# to on:
#follow_ftp = off
Old 08-18-2005, 11:43 AM   #2
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
24. How do I specify proxy settings?

slapt-get takes advantage of the normal http_proxy and ftp_proxy shell
variables. Here are some examples:

# setting the env variables for the entire session
$ export http_proxy=http://host: port
$ export ftp_proxy=ftp://host: port
# just setting them for the current command invocation
$ http_proxy=http://host: port slapt-get --update

If you are using ~/.netrc, libcurl automatically picks up your preferences.
See the netrc(5) manpage for more information.
From the slapt-get site.

Last edited by ingvildr; 08-18-2005 at 11:44 AM.
Old 08-18-2005, 10:57 PM   #3
Registered: Nov 2003
Location: china
Distribution: Linux Mint
Posts: 49

Original Poster
Rep: Reputation: 15
it works


That works perfectly.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
slapt-get, howto pass username and passwd for http requests to our proxy !! Padmakiran Slackware 13 05-05-2010 10:05 AM
Howto ? Set-up Gateway proxy on my servers? psydoc Linux - Newbie 7 01-14-2005 11:40 AM
howto ckeck proxy type dred Linux - Networking 1 12-19-2004 01:44 PM
/etc/slapt-getrc modification fails to influence slapt-get timsch75 Slackware 1 04-07-2004 09:48 AM
Squid proxy - howto get SSL through? thincritter Linux - Software 0 03-29-2004 11:55 PM

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration