<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Source Control</title>
        <link>http://agilior.pt/blogs/pedro.rainho/category/80.aspx</link>
        <description>Source Control</description>
        <language>pt-PT</language>
        <copyright>Pedro Rainho</copyright>
        <managingEditor>pedro.rainho@agilior.pt</managingEditor>
        <generator>Subtext Version 1.9.0.27</generator>
        <item>
            <title>Source control Appliances</title>
            <link>http://agilior.pt/blogs/pedro.rainho/archive/2010/02/09/11736.aspx</link>
            <description>&lt;p&gt;In my last post I wrote about how to install and configure Subversion and WebSvn on Ubuntu server. During the search on how to do that I tested two very good appliances. This two appliances are virtual machines that contains the installation of several source control and comes configured out of the box :). All I need is download the appliance and start using. There is no excuse to don’t have a private source control :).&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;The first appliance is &lt;a href="http://www.turnkeylinux.org/revision-control"&gt;Revision Source Control&lt;/a&gt; from &lt;a href="http://www.turnkeylinux.org/"&gt;TurnKey&lt;/a&gt; and it’s an appliance that includes:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Revision Control systems supported: Git, Bazaar, Mercurial, Subversion. &lt;/li&gt;    &lt;li&gt;SSL support out of the box. &lt;/li&gt;    &lt;li&gt;Webmin module for configuring Apache2. &lt;/li&gt;    &lt;li&gt;Includes TurnKey web control panel (convenience). &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Again everything it’s installed and configured and ready to use. Just download the appliance and run it on Vmware or Virtualbox.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;The next appliance, &lt;a href="http://www.turnkeylinux.org/trac"&gt;Trac&lt;/a&gt;, it’s also from &lt;a href="http://www.turnkeylinux.org/"&gt;TurnKey&lt;/a&gt; and Integrates source control &amp;amp; project management. The appliance includes:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Revision Control systems supported: Git, Bazaar, Mercurial, Subversion. &lt;/li&gt;    &lt;li&gt;SSL support out of the box. &lt;/li&gt;    &lt;li&gt;Postfix MTA (bound to localhost) to allow sending of email (e.g., password recovery). &lt;/li&gt;    &lt;li&gt;Webmin modules for configuring Apache2 and Postfix. &lt;/li&gt;    &lt;li&gt;Trac &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;These are just two appliances from &lt;a href="http://www.turnkeylinux.org/"&gt;TurnKey&lt;/a&gt; to make a developer life much easy :) again no excuse :P&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;I invite every one to see &lt;a href="http://www.turnkeylinux.org/"&gt;TurnKey&lt;/a&gt; site they have LOTS of appliances… &lt;/p&gt;&lt;img src="http://agilior.pt/blogs/pedro.rainho/aggbug/11736.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Pedro Rainho</dc:creator>
            <guid>http://agilior.pt/blogs/pedro.rainho/archive/2010/02/09/11736.aspx</guid>
            <pubDate>Tue, 09 Feb 2010 17:46:24 GMT</pubDate>
            <wfw:comment>http://agilior.pt/blogs/pedro.rainho/comments/11736.aspx</wfw:comment>
            <comments>http://agilior.pt/blogs/pedro.rainho/archive/2010/02/09/11736.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://agilior.pt/blogs/pedro.rainho/comments/commentRss/11736.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Install Subversion and WebSvn on Ubuntu Server</title>
            <link>http://agilior.pt/blogs/pedro.rainho/archive/2010/02/06/11698.aspx</link>
            <description>&lt;p&gt;On my last post I wrote about Ubuntu server and Webmin and why I changed WHS with Ubuntu server. Today I'm going to write about &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; and &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; on Ubuntu server. One of the things that I had in WHS was a source control where I stored my code and documents. For that I used &lt;a href="http://www.visualsvn.com/server/"&gt;VisualSVN&lt;/a&gt;. &lt;a href="http://www.visualsvn.com/server/"&gt;VisualSVN&lt;/a&gt; combines &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; with a web interface of all repositories and also includes user management. To me &lt;a href="http://www.visualsvn.com/server/"&gt;VisualSVN&lt;/a&gt; is the all in one...Veryyy goood product and unfortunately for me &lt;a href="http://www.visualsvn.com/server/"&gt;VisualSVN&lt;/a&gt; is just for Windows :(. &lt;/p&gt;  &lt;p&gt;So one of the things I did before move to Ubuntu Server was backup my &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; repositories so I could restore them on Ubuntu Server. &lt;/p&gt;  &lt;p&gt;In Ubuntu Server I had to do install a few packages and do a few steps in order to once again have source control and a web interface. So today I'm going to explain how to install &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; and &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; on Ubuntu server. &lt;/p&gt;  &lt;p&gt;The first thing to do is install &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; and apache package for &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt;. All I need to do is: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo aptitude install subversion libapache2-svn &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;In the next step I need to create a directory where my repositories will be stored. In my case /var/sourcecontrol/svn/. The default location is /var/lib/svn/.&lt;/p&gt;  &lt;p&gt;This command will create de directory where all my repositories will be:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo mkdir /var/sourcecontrol/svn &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;After create the directory I copied my entire repository backup from windows into this directory. &lt;/p&gt;  &lt;p&gt;Note if I need to create new repositories I just had to do: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo svnadmin create /var/sourcecontrol/svn/newRepository &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;newRepository is the name of the new repository. &lt;/p&gt;  &lt;p&gt;Next I need to change the owner of the files in order to access using apache. This can be done with this command: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo chown www-data:www-data  /var/sourcecontrol/svn/repositoryName -R &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;repositoryName is the name of the repository. &lt;/p&gt;  &lt;p&gt;Next I just need to configure all my repositories to be access in apache. This can be done by editing the file /etc/apache2/mods-available/dav_svn.conf &lt;/p&gt;  &lt;p&gt;To edit I just run the command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo nano /etc/apache2/mods-available/dav_svn.conf &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Scroll all the way down and add the following code for each repository: &lt;/p&gt;  &lt;p&gt;&amp;lt;Location /repositoryName&amp;gt;    &lt;br /&gt;DAV svn     &lt;br /&gt;SVNPath /var/sourcecontrol/svn/repositoryName     &lt;br /&gt;AuthType Basic     &lt;br /&gt;AuthName "Subversion repository repositoryName"     &lt;br /&gt;&amp;lt;/Location&amp;gt; &lt;/p&gt;  &lt;p&gt;Next restart the apache :&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo /etc/init.d/apache2 restart &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Open a browser and type &lt;a href="http://[serverip]/repositoryName"&gt;http://[serverip]/repositoryName&lt;/a&gt; and the repository is now availably in browser. &lt;/p&gt;  &lt;p&gt;Notice the &lt;strong&gt;/repositoryName&lt;/strong&gt; in the location is the same as &lt;strong&gt;/repositoryName&lt;/strong&gt; in the url. &lt;/p&gt;  &lt;p&gt;After this step you can start doing some checkin's :P &lt;/p&gt;  &lt;p&gt;The next step is to install &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt;. &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; is a very good web interface to see all repositories. &lt;/p&gt;  &lt;p&gt;The first thing to do is install the package. This can be done with the command: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo aptitude install websvn &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To have syntax highlight in the source code just install enscript . This can be done with this command: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo aptitude install enscript &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Now a few things you should know: &lt;/p&gt;  &lt;p&gt;During the install of &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; three screens will appear:     &lt;br /&gt;1 - Select the webserver for configuration.     &lt;br /&gt;2 - Specify the path of the subversion repositories, in this case (/var/sourcecontrol/svn).     &lt;br /&gt;3 - If all repositories are in the same parent folder leave this in blank otherwise you will have to specify all repositories separated by comma. &lt;/p&gt;  &lt;p&gt;The package &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; is installed into /usr/share/websvn/, it's necessary to copy to /var/www/. This can be done with the command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo cp -r /usr/share/websvn/ /var/www/ &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;After copy to /var/www it's necessary to edit the file /etc/apache2/mods-available/dav_svn.conf, again with the command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo nano /etc/apache2/mods-available/dav_svn.conf &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Next, scroll down and add the following &lt;/p&gt;  &lt;p&gt;&amp;lt;Location /websvn/&amp;gt;    &lt;br /&gt;Options FollowSymLinks     &lt;br /&gt;order allow,deny     &lt;br /&gt;allow from all     &lt;br /&gt;AuthType Basic     &lt;br /&gt;AuthName "Subversion Repository"    &lt;br /&gt;&amp;lt;/Location&amp;gt; &lt;/p&gt;  &lt;p&gt;Save the file and restart apache by doing: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo /etc/init.d/apache2 restart &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Now just type &lt;a href="http://[serverip]/websvn"&gt;http://[serverip]/websvn&lt;/a&gt; and you will see the &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; page and your repositories. &lt;/p&gt;  &lt;p&gt;If for some reason your repositories have strange names in just edit the file /etc/websvn/svn_deb_conf.inc with the command :&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;sudo nano /etc/websvn/svn_deb_conf.inc &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;In this file you will have something like this: &lt;/p&gt;  &lt;p&gt;&amp;lt;?php    &lt;br /&gt;// please edit /etc/websvn/config.php     &lt;br /&gt;// or use dpkg-reconfigure websvn     &lt;br /&gt;$config-&amp;gt;parentPath("/var/sourcecontrol/svn/");     &lt;br /&gt;$config-&amp;gt;addRepository("repositoryName\", file:///var/sourcecontrol/svn/repositoryName1);     &lt;br /&gt;$config-&amp;gt;addRepository("repositoryName", "file:///var/sourcecontrol/svn/repositoryName2");     &lt;br /&gt;$config-&amp;gt;setEnscriptPath("/usr/bin");     &lt;br /&gt;$config-&amp;gt;setSedPath("/bin");     &lt;br /&gt;$config-&amp;gt;useEnscript();     &lt;br /&gt;?&amp;gt; &lt;/p&gt;  &lt;p&gt;Here it's possible specify the parent path of all repositories and specify each repository name and location. it's here also that it's specified the path on enscript installed before. &lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Hope you enjoy the source control and as much as I do :)&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Special Thanks for &lt;a href="http://www.guerratopia.com/subversion-websvn-en-ubuntu"&gt;Guerrix and his post on how to install subversion and websvn.&lt;/a&gt;&lt;/p&gt;&lt;img src="http://agilior.pt/blogs/pedro.rainho/aggbug/11698.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Pedro Rainho</dc:creator>
            <guid>http://agilior.pt/blogs/pedro.rainho/archive/2010/02/06/11698.aspx</guid>
            <pubDate>Sat, 06 Feb 2010 19:07:53 GMT</pubDate>
            <wfw:comment>http://agilior.pt/blogs/pedro.rainho/comments/11698.aspx</wfw:comment>
            <comments>http://agilior.pt/blogs/pedro.rainho/archive/2010/02/06/11698.aspx#feedback</comments>
            <wfw:commentRss>http://agilior.pt/blogs/pedro.rainho/comments/commentRss/11698.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>