woolabs / Woobuntu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

怎样在chroot下使用代理?

evi1c0re opened this issue · comments

我在运行脚本的时候由于网速问题时常卡死,希望在运行的时候可以使用代理。
export http_proxy

export https_proxy
都不起作用,
在系统中设置代理也不起作用。
希望能够在脚本中增加代理选项

Woobuntu 自带 proxychains,可以结合shadows0cks或者普通http proxy使用

man proxychains

简单说,就是编辑/etc/proxychains.conf

[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks4  127.0.0.1 9050

然后用proxychains加载安装脚本即可

proxychains ./abcdefg

Woobuntu安装工具时大量使用了第三方自带的模块管理机制,这些工具很多都不遵守系统全局proxy设置,因此不可使用全局proxy设置,目前来看还是您手动使用proxychains比较稳定

我遇到过类似的问题,发现好多都是s3的资源访问不了,如果楼主也是因为里面s3的资源访问过慢造成卡死的话,可以尝试在/etc/host里面加入:219.76.4.4 github-cloud.s3.amazonaws.com