{"id":106,"date":"2005-09-01T17:49:00","date_gmt":"2005-09-01T17:49:00","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=14"},"modified":"2006-09-06T12:37:31","modified_gmt":"2006-09-06T17:37:31","slug":"this-should-have-been-simpler","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2005\/this-should-have-been-simpler\/","title":{"rendered":"Anonymous Sourceforge CVS access through proxy using TortoiseCVS"},"content":{"rendered":"<p>NOTE: This is now out of date, see the update <a href=\"http:\/\/bitpost.com\/news\/2006\/09\/05\/getting-to-sourceforge-from-windows-through-a-proxy-redux\/\">here<\/a>.<\/p>\n<p>If you&#8217;re interested in open source at all, you don&#8217;t want to be without Sourceforge, where a lot of the world&#8217;s open source code resides.  Strangely, it&#8217;s not obvious how to get code from Sourceforge if you&#8217;re behind a firewall that doesn&#8217;t have port 80, 443 or 2401 wide open.  In other words, half of corporate America can&#8217;t access open source &#8220;out of the box&#8221;.<\/p>\n<p>There are actually two ways to get code from Sourceforge.  As a project developer with write permission, you use the CVS :ext: protocol, which tunnels through SSH.  For anonymous access to anyone else&#8217;s code, you have to use the :pserver: protocol.  Sourceforge has ports 80, 443 and 2401 (the default) set up for pserver.<\/p>\n<p>With TortoiseCVS, you can do pretty much anything you need to with ext, because TortoiseCVS uses Putty for SSH, and Putty can use an HTTP proxy.  Just specify a fully-configured Putty session name instead of a server when using :ext: under TortoiseCVS, and TortoiseCVS lets Putty use the session to set up the SSH connection.<\/p>\n<p>I love TortoiseCVS, but at first blush it looks like it won&#8217;t do the job for anonymous Sourceforge access &#8211; you need pserver over an HTTP proxy and there are no TortoiseCVS settings for that.  Fortunately, WinCVS fills this requirement.  When you select Remote->Checkout Module, right there you can add the proxy information.  Here comes the code!  Rockin&#8217;!<\/p>\n<p>But hold on!  When WinCVS builds the pserver host string, it adds your proxy information in the following format:<\/p>\n<p>  CVSROOT=:pserver;username=anonymous;hostname=cvs.sourceforge.net;proxy=yourproxy.com;proxyport=##:\/cvsroot\/yourmodule<\/p>\n<p>It appears that TortoiseCVS can actually use this format, now that it&#8217;s in the CVS\/Root file, even though it&#8217;s not documented.  Go to the CVS directory that WinCVS created, and you should be able to use the tortoise now!  I suppose with a little manual copying\/editing, you could set up CVS\/Root files yourself and bypass the need for WinCVS, but I haven&#8217;t tried that yet.  I recommend just kicking things off with WinCVS, it&#8217;s a breeze.<\/p>\n<p><b>UPDATE:<\/b> Under linux, the format is like this:<\/p>\n<p>CVSROOT=:pserver;proxy=yourproxy.com;proxyport=##:anonymous@cvs.sourceforge.net:\/cvsroot\/yourmodule<\/p>\n<p>Don&#8217;t ask me why it&#8217;s different!  Yuck.  But these formats are working under Windows and linux.  Go get some code!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: This is now out of date, see the update here. If you&#8217;re interested in open source at all, you don&#8217;t want to be without Sourceforge, where a lot of the world&#8217;s open source code resides. Strangely, it&#8217;s not obvious how to get code from Sourceforge if you&#8217;re behind a firewall that doesn&#8217;t have port [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[2],"tags":[],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-chatter"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-1I","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":0,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}