{"id":79,"date":"2008-02-11T07:45:09","date_gmt":"2008-02-11T14:45:09","guid":{"rendered":"http:\/\/kamivaniea.com\/?p=79"},"modified":"2009-08-11T07:57:20","modified_gmt":"2009-08-11T14:57:20","slug":"subversion-on-ubuntu","status":"publish","type":"post","link":"https:\/\/kamivaniea.com\/?p=79","title":{"rendered":"Subversion on Ubuntu"},"content":{"rendered":"<div class=\"entry\">\n<p>Why is it always so hard to setup applications in Linux?  Don\u00e2\u20ac\u2122t get me wrong I much prefer setting up complex applications in Linux to setting them up in Windows but still there must be an easier way.  I just spent several hours setting up subversion on my Ubuntu machine which involved some time on help pages and some time debugging and some time figuring out how I wanted my setup to work vs. other people\u00e2\u20ac\u2122s setups.  So I\u00e2\u20ac\u2122m documenting some of my problems and solutions here just in case some other poor soul has a similar issue.<\/p>\n<h4>Basic Subversion setup<\/h4>\n<p>To begin the following url was an excellent help guide to start with. The guide described everything except how to do ssl encryption and I had some issues with the authentication which is detailed below.<\/p>\n<p><a href=\"https:\/\/help.ubuntu.com\/community\/Subversion\">https:\/\/help.ubuntu.com\/community\/Subversion<\/a><\/p>\n<h4>Authentication issues<\/h4>\n<p>Once I got everything installed and working I tried doing a checkout on another machine.  Much to my surprise the checkout worked but asked for no username or password.  For some reason the server was requiring a username and password to write to a file on svn but not to read.  Since I wanted my files to be kept private I had to lookup some documentation on how to change the authentication.  I recommend <a href=\"http:\/\/svn.collab.net\/repos\/svn\/trunk\/INSTALL\">this site<\/a>, it is fairly cryptic but it has some good examples.  I ended changing the <em>\/etc\/apache2\/mods-available\/dav_svn.conf<\/em> so it would only allow bob and myself to make changes.<\/p>\n<p><code><br \/>\n&lt;Location \/svn\/compilers&gt;<br \/>\nDAV svn<br \/>\nSVNPath \/home\/svn\/compilers<br \/>\nAuthType Basic<br \/>\nAuthName \"compilers subversion repository\"<br \/>\nAuthUserFile \/etc\/subversion\/passwd<br \/>\nrequire user kami bob<br \/>\n&lt;\/Location&gt;<br \/>\n<\/code><\/p>\n<h4>SSL Encryption<\/h4>\n<p>Using the basic setup SVN sends all passwords and other data in the clear.  This is somewhat insecure and I wanted to enable SSL encryption.  There is a nice <a href=\"https:\/\/help.ubuntu.com\/community\/forum\/server\/apache2\/SSL\">Ubuntu documentation page<\/a> on how to do this.  The only problem is that a default install of apache2 on Ubuntu doesn\u00e2\u20ac\u2122t come with the apache2-ssl-certificate application.  I found a <a href=\"https:\/\/bugs.launchpad.net\/debian\/+source\/apache2\/+bug\/77675\">discussion forum<\/a> that talks about the issue and proposes several solutions.  I\u00e2\u20ac\u2122ve quoted the solution I used below:<\/p>\n<blockquote><p>* <a href=\"http:\/\/launchpadlibrarian.net\/7477840\/apache2-ssl.tar.gz\">apache2-ssl.tar.gz<\/a> (964 bytes, application\/x-tar)<\/p>\n<p>You can grab ssleay.cnf and apache2-ssl-certificate from Edgy\u00e2\u20ac\u2122s apache2 version.<\/p>\n<p>I hope this workaround works for people who bothered by this issue. Extract the package and put ssleay.cnf to \/usr\/share\/apache2\/ and apache2-ssl-certificate to \/usr\/sbin.<\/p>\n<p>Create \/etc\/apache2\/ssl directory. Then apache2-ssl-certificate script should work.<\/p><\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Why is it always so hard to setup applications in Linux? Don\u00e2\u20ac\u2122t get me wrong I much prefer setting up complex applications in Linux to setting them up in Windows but still there must be an easier way. I just spent several hours setting up subversion on my Ubuntu machine which involved some time on [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","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,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[17,16,14,15],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-application-debug","tag-authentication","tag-ssl","tag-subversion","tag-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2u4LH-1h","_links":{"self":[{"href":"https:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kamivaniea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79"}],"version-history":[{"count":2,"href":"https:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions\/93"}],"wp:attachment":[{"href":"https:\/\/kamivaniea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kamivaniea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kamivaniea.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}