You are not logged in.
Pages: 1
Topic closed
Hey,
how do I configure pacman to work with a http proxy?
Example:
http proxy: proxy.hello-world.com:8888
user: iloveyou42
password: h4xx
The wget wiki (https://wiki.archlinux.org/index.php/Wget) tells me that it uses the standard environment settings. But that doesn't work... So I tried:
wget --proxy-user "proxy.hello-world.com\iloveyou42" --proxy-password "h4xx" proxy.hello-world.com:8888
and without port:
wget --proxy-user "proxy.hello-world.com\iloveyou42" --proxy-password "h4xx" proxy.hello-world.com
Dosnt work as well...
Is it possible to make this work (if possible without wget)?
Thx 4 help
SOLUTION:
PROXY='http://iloveyou42:h4xx@proxy.hello-world.com:8888'
export HTTP_PROXY="$PROXY"
export http_proxy="$PROXY"
Last edited by GNA (2011-05-12 10:07:33)
Offline
You have to set the environment variables each time for every terminal in which you run 'pacman' (that's how my setup works and I also use 'wget').
Offline
so i tried:
export http_proxy="http://user:password@proxy.domain:8888/"
export ftp_proxy=same as above
what was returned:
Resolving proxy.domain.de... 193.196.64.2
Connecting to proxy.domain.de|193.196.64.2|:8888... connected.
Proxy request sent, awaiting response... 403 Forbidden
2011-04-19 13:57:40 ERROR 403: Forbidden.
Offline
Unfortunately, I cannot assist with this further. I am using wget successfully with this advice: https://wiki.archlinux.org/index.php/Proxy_settings
Offline
An alterative method? Don't know if this would work but I don;t see why it wouldn't. You could try piping pacman through proxychains? you could even set it up to work with tor.
I like pie. Especially with a side of Arch.
Offline
How about setting the proxy details in your ~/.wgetrc or /etc/wgetrc file?
A temporary file is just a pipe with an attitude and a will to live.
Offline
I second xxxspuddy's post.
On my servers I've configured wget in /etc/wgetrc to always download through the proxy*. In /etc/pacman.conf you would have to specify /usr/bin/wget as the XferCommand.
____
*) actually, there are two proxies: one local proxy (cntlm) and the company ISA proxy that cntlm helps to authenticate against.
musician & coder
http://elephly.net
http://github.com/rekado
Offline
You don't *have* to use wget to use a proxy with pacman. I use the following script successfully, called from my .bashrc:
if [ -n "$1" ] ; then
HN=$1
else
HN=`hostname -f`
fi
case $HN in
*.archserver.org)
PROXY=''
;;
*.company.com.au)
PROXY='http://proxy.company.com.au:3128'
BYPASS='192.168.0.0/16,127.0.0.0/8,localhost'
;;
*.fukawi2.pvt)
PROXY='http://proxy.fukawi2.pvt:3128'
BYPASS='192.168.0.0/16,127.0.0.0/8,localhost'
;;
*)
PROXY=''
;;
esac
# clean, then export the environment vars
unset HTTP_PROXY http_proxy FTP_PROXY ftp_proxy no_proxy
if [ -n "$PROXY" ] ; then
export HTTP_PROXY="$PROXY"
export http_proxy="$PROXY"
export HTTPS_PROXY="$PROXY"
export https_proxy="$PROXY"
export FTP_PROXY="$PROXY"
export ftp_proxy="$PROXY"
export no_proxy="$BYPASS"
fi
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
thx fukawi2
this works for me:
PROXY='http://iloveyou42:h4xx@proxy.hello-world.com:8888'
export HTTP_PROXY="$PROXY"
export http_proxy="$PROXY"
Offline
Well, if you were kind enough to tell us where you put the lines that solved the problem. I have exactly the same. Greetings and thanks for the help
Hey,
how do I configure pacman to work with a http proxy?Example:
http proxy: proxy.hello-world.com:8888
user: iloveyou42
password: h4xxThe wget wiki (https://wiki.archlinux.org/index.php/Wget) tells me that it uses the standard environment settings. But that doesn't work... So I tried:
wget --proxy-user "proxy.hello-world.com\iloveyou42" --proxy-password "h4xx" proxy.hello-world.com:8888
and without port:
wget --proxy-user "proxy.hello-world.com\iloveyou42" --proxy-password "h4xx" proxy.hello-world.com
Dosnt work as well...Is it possible to make this work (if possible without wget)?
Thx 4 help
SOLUTION:
PROXY='http://iloveyou42:h4xx@proxy.hello-world.com:8888'
export HTTP_PROXY="$PROXY"
export http_proxy="$PROXY"
Offline
Atreyu94,
Welcome to the forums. I would point out that you have responded to an eight year old thread.
I doubt whatever problem you are having is the same as the one from 2011. Even if it is, I doubt the original poster is still fighting it.
I am going to close this thread, and invite you to start a new thread detailing your problem which you will own. If you think this thread relevant, go ahead and link back to it.
Thanks
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed