LinuxSir.Org  
| 网站首页 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
 
主题工具
旧 08-04-15, 13:42 第 1 帖
supdaniel
 
 
 
注册会员  
  注册日期: Jul 2005
  帖子: 3
  精华: 0
 

标题: 如何设置pacman通过proxy上网?


试过wget --proxy-user="string" --proxy-passwd="string"和XferCommand = /usr/bin/wget --proxy-user "domain\user" --proxy-passwd="password" --passive-ftp -c -O %o %u都不行,请教一下哪位知道?
  supdaniel 当前离线   回复时引用此帖
旧 08-04-15, 14:24 第 2 帖
number5
 
 
 
注册会员  
  注册日期: Dec 2007
  帖子: 118
  精华: 0
 

如果你有socks proxy, 就用tsocks 吧







__________________
kernel 2.6.27-gentoo-r6
XFCE 4.6 beta2
Funtoo/Gentoo

http://brucewang.net
http://twitter.com/number5
  number5 当前离线   回复时引用此帖
旧 08-04-15, 14:28 第 3 帖
number5
 
 
 
注册会员  
  注册日期: Dec 2007
  帖子: 118
  精华: 0
 

http://wiki.archlinux.org/index.php/...thentification

或者看看这个,看看是不是哪里漏掉了
  number5 当前离线   回复时引用此帖
旧 08-04-15, 14:32 第 4 帖
supdaniel
 
 
 
注册会员  
  注册日期: Jul 2005
  帖子: 3
  精华: 0
 

谢谢回复,难到就没有像ubuntu那种专设**的?
  supdaniel 当前离线   回复时引用此帖
旧 08-04-15, 14:32 第 5 帖
matri
 
 
 
注册会员  
  注册日期: Dec 2004
  帖子: 75
  精华: 0
 

直接设置/etc/wgetrc就行了。
  matri 当前离线   回复时引用此帖
旧 08-04-16, 20:15 第 6 帖
molo_king
 
 
 
注册会员  
  注册日期: Apr 2008
  帖子: 3
  精华: 0
 

楼上正解!


wgetrc:

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

# If you do not want to use proxy at all, set this to off.
#use_proxy = on
  molo_king 当前离线   回复时引用此帖
旧 08-04-17, 16:20 第 7 帖
yanghy
 
 
 
注册会员  
  注册日期: May 2002
  帖子: 5
  精华: 0
 

pacman.conf修改:
XferCommand = /usr/bin/wget --proxy-user=用户名 --proxy-password=密码 -c %o %u
以上用户名、密码是**服务器上的用户名和密码。
wgetrc 修改:
http_proxy = http://proxy.yoyodyne.com:18023/
ftp_proxy = http://proxy.yoyodyne.com:18023/
将以上#去掉,后改为**服务器的地址。
  yanghy 当前离线   回复时引用此帖
旧 08-11-17, 23:08 第 8 帖
islothy
 
 
 
注册会员  
  注册日期: May 2005
  我的住址: beijing
  帖子: 47
  精华: 0
 

export http_proxy=...
  islothy 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [启用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 11:02


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2012, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2011, LinuxSir.Org