update slackware behind a proxy

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg

Question: I have a terminal access to slackware 13 machine.
where to insert the proxy host and user and password to run update or install packges normally from internet  ?

 

Answer:

 

Add these lines to your /etc/profile (if you want to have the proxy settings system wide) or in ~/.profile (if you want these proxy settings for you alone):

Code:
export http_proxy="http://your.proxy.server.ip:8080/"
export ftp_proxy="http://your.proxy.server.ip:8080/"
export HTTP_PROXY="http://your.proxy.server.ip:8080/"
export FTP_PROXY="http://your.proxy.server.ip:8080/"

Some applications need the variables in upper case, others need the lower case.

If your proxy requires authentication, or uses another port than 8080, use a URL of the form:

Code:"http://username:password@your.proxy.server.ip:portnumber/"

 

 

 

 

 

root@unixmen-host:~# slackpkg update

Updating the package lists...
Downloading...
Downloading ChangeLog.txt...
--2009-10-08 15:37:35--  http://ftp.belnet.be/packages/slackware/slackware-13.0/ChangeLog.txt
Resolving proxy-*************.com... 10.120.114.194
Connecting to proxy-*********.com|10.120.114.194|:8082... connected.
Proxy request sent, awaiting response... 200 OK
Length: 222034 (217K) [text/plain]
Saving to: `/tmp/slackpkg.FoU5Ah/ChangeLog.txt'

100%[======================================>] 222,034     --.-K/s   in 0.02s

2009-10-08 15:37:35 (12.9 MB/s) - `/tmp/slackpkg.FoU5Ah/ChangeLog.txt' saved [222034/222034]


No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)?

ENJOY

 

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg