Google Plus

update slackware behind a proxy

Written by Mel Kham on . Posted in Frequently Asked Questions

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

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Snake

|

Wow, great. That’s what i’m waiting for too. I want to make DC with LDAP ( Active Directory alternative) and SAMBA on Ubuntu. :-)

Blawer

|

Thanks!!!!!!!!!!!!!!!!!! you rules!!! all the other “help” in google are useless… yours was very helpful. Thanks again

piCool

|

Great ! we have another another master trick :-)

Yilmaz Ulugtekin

|

Just delete the space after the slash (/) it will work.

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .