You are not logged in.
Pages: 1
I've installed arch on a pc which is behind a proxy. No problem after using
export http_proxy=...
the point is that if I enter the system as root (or su) I can use pacman but, if I give a sudo pacman (as a user) I can not access the network.
Sudo works fine, the problem is that I can not manage the proxy as a simple user...as a SU everuthing is fine
I've also repated the export http(ftp)_proxy command as a user but without success
Offline
What do you mean by "Can't use pacman"? Does it spit out an error, or simply not open?
Last edited by cesura (2010-04-19 23:09:26)
Offline
can not connect
Offline
The issue is something to do with the way your environment is translated across to the sudo session. I don't fully understand *how* this works, but adding this to your .bashrc make the HTTP_PROXY etc environment vars pass across OK so the `sudo pacman` instance can use them:
alias sudo="sudo "
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
can not connect
Oh, sorry. I read it over again and saw the problem
Anyway, I'm having the same thoughts as fukawi2. Probably a problem with the environment.
Offline
same problem: connection refused...
Offline
Add http_proxy and ftp_proxy to env_keep (in sudoers) so sudo won't clear it. It's also convenient to put a few other common things in there:
Defaults env_keep += "http_proxy ftp_proxy EDITOR VISUAL PAGER LESS"
This is documented in the suoders man page.
Offline
thanks for helping, I'll give a try
Offline
As far as I know, you need to use wget as download tool. There is something like /etc/wgetrc, where you can edit your Proxy settings, or you can edit pacman.conf, to make wget use proxy login.
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
As far as I know, you need to use wget as download tool. There is something like /etc/wgetrc, where you can edit your Proxy settings, or you can edit pacman.conf, to make wget use proxy login.
That will also work, but you don't NEED to do that to use a proxy. I use a proxy both at home and work with pacman and sudo using the method I posted above.
Last edited by fukawi2 (2010-04-20 22:35:02)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I've already edited the pacman.conf and it works for the user&the SU...no way for sudo. I'll give a try later.
The point is that I would like to use the proxy settings in system-->preferences > proxy settings via the gnome GUI as I use a proxy at work but not at home...
Offline
ok it works fine!
but: how can I use the GUI to configure the proxy?
thanks
Offline
but: how can I use the GUI to configure the proxy?
I *think* there's some funky hackery goes on when you open gnome-terminal that causes it to inherit the proxy settings from the GUI, but I'm not sure, and I wouldn't rely on it....
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
plutus wrote:but: how can I use the GUI to configure the proxy?
I *think* there's some funky hackery goes on when you open gnome-terminal that causes it to inherit the proxy settings from the GUI, but I'm not sure, and I wouldn't rely on it....
well, under Ubuntu once you set the system proxy all is done...so I guess it's possible to tweak also arch
Offline
anyway, the point is: at work I pass thru a proxy, at home not..how can I manage this?
Offline
Offline
I've installed arch on a pc which is behind a proxy. No problem after using
export http_proxy=...the point is that if I enter the system as root (or su) I can use pacman but, if I give a sudo pacman (as a user) I can not access the network.
Sudo works fine, the problem is that I can not manage the proxy as a simple user...as a SU everuthing is fine
I've also repated the export http(ftp)_proxy command as a user but without success
Yay, Thank you, you gave me the right clue..
I had configured a non existent proxy that I used some time ago in my bashrc...
Its always about the trivial things ^^"
Last edited by vidar (2010-08-24 19:10:23)
Offline
Pages: 1