<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>Linux</title>
        <link>http://agilior.pt/blogs/pedro.rainho/category/77.aspx</link>
        <description>Linux</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>
        <item>
            <title>From WHS to Ubuntu Server</title>
            <link>http://agilior.pt/blogs/pedro.rainho/archive/2010/01/27/11558.aspx</link>
            <description>&lt;p&gt;A few months ago I bought a license of Windows Home Server to the home server pc I built (&lt;a href="http://www.agilior.pt/blogs/pedro.rainho/archive/2009/06/27/9065.aspx"&gt;see this post&lt;/a&gt;). My first encounter with WHS was terrible I did a stupid mistake and I almost delete every single file I had. &lt;/p&gt;
&lt;p&gt;The second encounter was much better and every thing was running fine until I noticed here at home and confirmed in the web that WHS is not green and everything was always running at full speed, even when I’m not using it. &lt;/p&gt;
&lt;p&gt;So I start looking for alternatives and I saw a project called &lt;a href="http://www.amahi.org"&gt;Amahi&lt;/a&gt; that basically It’s a Linux home server with steroids (lots of options and software) and runs on top of Fedora.&lt;/p&gt;
&lt;p&gt;I decided not to continue with &lt;a href="http://www.amahi.org"&gt;Amahi&lt;/a&gt;, for a few reasons, and started looking for a simple OS that allows me to share files and alternatively have a source control, some databases and then I tested two. One was &lt;a href="http://freenas.org/freenas"&gt;FreeNas&lt;/a&gt; and the other was &lt;a href="http://www.ubuntu.com"&gt;Ubuntu Server&lt;/a&gt;. Since I’m a Ubuntu fan I decided to give a try and create a VM with Ubuntu server + SSH + Apache + MySql + Php (&lt;a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)"&gt;LAMP&lt;/a&gt;). Note &lt;a href="http://freenas.org/freenas"&gt;FreeNas&lt;/a&gt; is also very good and it has a impressive web UI.&lt;/p&gt;
&lt;p&gt;My first impression wasn’t good because the UI of Ubuntu Server It’s just command line. Alternatively I could install gnome by running this command line: sudo apt-get install ubuntu-desktop&lt;/p&gt;
&lt;p&gt;But since I want something simple I decided to continue with the command line but needed something visual that could help me configure the home server. I search around and found &lt;a href="http://www.webmin.com"&gt;Webmin&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Webmin has a demo and lots of screenshots &lt;a href="http://www.webmin.com/demo.html"&gt;here&lt;/a&gt; and &lt;a href="http://www.webmin.com"&gt;Webmin&lt;/a&gt; it’s spectacular, a very good web user interface that allows me to configures almost the entire home server and that was just what I needed. &lt;/p&gt;
&lt;p&gt;Install &lt;a href="http://www.webmin.com"&gt;Webmin&lt;/a&gt; is very simple I just need to run this:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;On my computer I opened a command line and run the command ssh [serverIP] and login.
    &lt;ul&gt;
        &lt;li&gt;By doing this I’m now able to run commands on the server. Then I just did &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
    &lt;ul&gt;
        &lt;li&gt;To install a few dependecies and the this &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;wget &lt;a href="http://www.webmin.com/download/deb/webmin-current.deb"&gt;http://www.webmin.com/download/deb/webmin-current.deb&lt;/a&gt;
    &lt;ul&gt;
        &lt;li&gt;To download the Webmin, and then since the latest version is 1.500 I just need to run this command &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;sudo dpkg -i webmin_1.500_all.deb
    &lt;ul&gt;
        &lt;li&gt;To Install &lt;a href="http://www.webmin.com"&gt;Webmin&lt;/a&gt; &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now I that I have &lt;a href="http://www.webmin.com"&gt;Webmin&lt;/a&gt; Installed I just need to open a browser to the URL &lt;a href="https://[serverIP]:10000"&gt;https://[serverIP]:10000&lt;/a&gt; and I have a UI that allows me to configure my server. &lt;/p&gt;
&lt;p&gt;After given a test in a VM I decided definitely to switch from WHS to Ubuntu server with SSH and &lt;a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)"&gt;LAMP&lt;/a&gt; and I don’t regret my decision.&lt;/p&gt;
&lt;p&gt;Next post will be about install and configure Subversion and &lt;a href="http://websvn.tigris.org/"&gt;WebSvn&lt;/a&gt; on Ubuntu Server… And yes my home server also have a source control.&lt;/p&gt;&lt;img src="http://agilior.pt/blogs/pedro.rainho/aggbug/11558.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Pedro Rainho</dc:creator>
            <guid>http://agilior.pt/blogs/pedro.rainho/archive/2010/01/27/11558.aspx</guid>
            <pubDate>Wed, 27 Jan 2010 17:09:17 GMT</pubDate>
            <wfw:comment>http://agilior.pt/blogs/pedro.rainho/comments/11558.aspx</wfw:comment>
            <comments>http://agilior.pt/blogs/pedro.rainho/archive/2010/01/27/11558.aspx#feedback</comments>
            <wfw:commentRss>http://agilior.pt/blogs/pedro.rainho/comments/commentRss/11558.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Disable beep on ubuntu shutdown</title>
            <link>http://agilior.pt/blogs/pedro.rainho/archive/2009/07/14/9230.aspx</link>
            <description>If you use ubuntu you probably had listen the stupid beep upon reboot/shutdown. To disable this stupid beep just do this:&lt;br /&gt;
&lt;br /&gt;
sudo gedit /etc/modprobe.d/blacklist.conf&lt;br /&gt;
&lt;br /&gt;
And add this&lt;br /&gt;
&lt;br /&gt;
blacklist pcspkr&lt;br /&gt;
&lt;br /&gt;
At the end of the file.&lt;br /&gt;
&lt;br /&gt;
Teboot and no more stupid beep.&lt;br /&gt;
&lt;br /&gt;
This was tested with Ubuntu 9.04 Jaunty&lt;img src="http://agilior.pt/blogs/pedro.rainho/aggbug/9230.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Pedro Rainho</dc:creator>
            <guid>http://agilior.pt/blogs/pedro.rainho/archive/2009/07/14/9230.aspx</guid>
            <pubDate>Tue, 14 Jul 2009 16:59:25 GMT</pubDate>
            <wfw:comment>http://agilior.pt/blogs/pedro.rainho/comments/9230.aspx</wfw:comment>
            <comments>http://agilior.pt/blogs/pedro.rainho/archive/2009/07/14/9230.aspx#feedback</comments>
            <wfw:commentRss>http://agilior.pt/blogs/pedro.rainho/comments/commentRss/9230.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>