2007年4月29日星期日

CVS over Firewall

在公司防火墙后不能连接CVS服务器.
[frank@aladdin opensrc_cvs]$ cvs -d:pserver:anonymous@blob.cvs.sourceforge.net:/cvsroot/blob login
Logging in to :pserver:anonymous@blob.cvs.sourceforge.net:2401/cvsroot/blob
CVS password:
cvs [login aborted]: connect to blob.cvs.sourceforge.net(66.35.250.83):2401 failed: Connection refused


在http://www.denx.de/wiki/publish/DULG/DULG-tqm8xxl.html中有解决方法

Those poor people sitting behind a restrictive firewall may use http tunneling to access the repositories. Here is an example for cvsgrab, available from http://cvsgrab.sourceforge.net/, to access the U-Boot repository:

cvsgrab -quiet -proxyHost  -proxyPort  -proxyUser  \
-cvsRoot :pserver:anonymous@www.denx.de:/cvsroot \
-rootUrl http://www.denx.de/cvsweb/ -packagePath u-boot -packageDir u-boot
Of course you have to set http_proxy , proxy_port and proxy_user properly.

具体用法要参见cvsgrab主页.
在cvsgrab主页上没有要求设置proxy, 但是说有各限制
Disadvantages are that you have only read access to the repository, the repository needs to be public and have ViewCVS set up. 缺点是你只有版本库的读权限(不能commit), 版本库需要是public(在公网上?), 并且装有ViewCVS.
Also, it adds a more important load on the web server, so try to use this tool reasonably. 并且, 它增加了web服务器的更重大的负荷, 所以要慎重使用.

没有评论: