How to install subversion and websvn on ubuntu 12.04
Tech-Today

How to install subversion and websvn on ubuntu 12.04



This write-up contains a set of instruction on how to install and configure svn as well as setup websvn on an ubuntu 12.04 machine.

1.) Install subversion and apache2
sudo apt-get install subversion
sudo apt-get install apache2
sudo apt-get install libapache2-svn

2.) Create a directory where we will install subversion repository
sudo mkdir /var/subversion

3.) Change ownership of the newly created folder
sudo chown www-data:www-data -R /var/subversion

4.) Change mode bits
sudo chmod 770
sudo chmod 770 -R /var/subversion

 5.) Create a new repository
sudo svnadmin create /var/subversion/demo

6.) Look/check at the newly create repository
sudo svnlook tree /var/subversion/demo

7.) Make the repository available to apache
sudo vi /etc/apache2/mods-available/dav_svn.conf

Add the ff:
  DAV svn
SVNPath /var/subversion/demo
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/svn.passwd
Require valid-user
#SSLRequireSSL
*take note that we are using apache's svn.passwd for authentication
 8.) Restart apache and you should be able to access the repository from the url
sudo service apache2 restart

9.) Create a new user
sudo htpasswd -c /etc/apache2/svn.passwd usera
*note make sure you remove -c parameter on 2nd invocation since it will delete the file if it exists

10.) Now you can access the repository in the url:
http://localhost/svn/demo
*If you have rapidsvn installed, you can view the same url

Now for the second part, how to install and configure websvn
1.) Install websvn (select apache2, and proceed accordingly)
sudo apt-get install websvn

2.) Move the newly installed websvn folder into /var/www
sudo cp -r /usr/share/websvn/ /var/www/

3.) Make that folder available to apache2, by editing the same file earlier dav_svn.conf, and add the below lines:
sudo vi /etc/apache2/mods-available/dav_svn.conf
//lines
<Location /websvn>
Options FollowSymLinks
order allow,deny
allow from all
AuthType Basic
AuthName "Subversion Repository"
</Location>
*be careful with the spacing it's sensitive

4.) Restart apache2
sudo service apache2 restart

5.) Access from url : http://localhost/websvn, it should now be available.

6.) You can install enscript, for syntax highlighting:
sudo apt-get install enscript

7.) If you want to add more repository, just edit this file:
sudo vi /etc/websvn/svn_deb_conf.inc 
*by default mine has:
//please edit /etc/websvn/config.php
//or user dpkg-reconfigure websvn
$config->parentPath("/var/subversion");
$config->addRepository("root", "file:///var/subversion/demo");
$config->setEnscript("/usr/bin");
$config->setSedPath("/bin");
$config->userEnscript();

And now we're done :-)




- How To Install Mysql In Ubuntu 16.04
The following commands allow us to install a MySQL server on Ubuntu 16.04, create a database, user and table. And finally, tune the server. # install mysql sudo apt-get update sudo apt-get upgrade sudo apt-get install mysql-server sudo mysql_secure_installation...

- Operating Systems
How to show all startup items in Ubuntu 12.04How to install artifactory and jenkins on ubuntu 12.04How to dual boot Windows 7 and Ubuntu 12.04 on Lenovo G480How to setup an OpenVPN client on an Ubuntu machineHow to setup a DNS Server on ubuntu 12.04How...

- How To Port Forward Apache's 80 To Glassfish's 8080 Using Proxy Configuration
Recently, I'm developing and testing an application deployed on Glassfish that runs on port 8080. Then I do need the app to run on port 80, since I don't want to change the default port of Glassifh from 8080 to 80, I've just installed apache...

- How To Install Jdk 1.6 Update 32 On Ubuntu 11.10
Currently Oracle prohibit the community from adding java to the linux repositories. So it needed to be manually download from oracle website and installed. Java can be downloaded from: From: http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/...

- How To Start/stop An Application On Boot On Ubuntu Like Services.msc In Windows
There's an easy way now to configure what application runs on ubuntu's startup like services.msc in windows. Rather than adding/modify some configuration, we can install a simple GUI that can do the job. sudo apt-get update sudo apt-get install...



Tech-Today








.