Instalación rápida de Subversion en Linux (APT)
Posted: June 24th, 2010 | Author: Edu | Filed under: Linux, Tools, VCS | No Comments »Instalar subversion:
# sudo apt-get install subversion
Crear la ruta /var/svn:
# mkdir /var/svn
Instalar apache2 y libapache2-svn:
# sudo apt-get install apache2 libapache2-svn
Crear el fichero /etc/subversion/passwd y añadir el primer usuario:
# htpasswd -c /etc/subversion/passwd user_name
Para añadir el resto de usuarios:
# htpasswd -c /etc/subversion/passwd user_name
Editar /etc/apache2/mods-enabled:
<Location /svn> DAV svn SVNParentPath /var/svn AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/subversion/passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>
Crear los repositorios de subversion:
# svnadmin create /var/svn/repo # chown -R www-data /var/svn/repo
Reiniciar apache2:
# /etc/init.d/apache2 restart
Crear la estructura de directorios TTB (Trunk, Tags, Branches):
# svn mkdir http://localhost/svn/repo/trunk -m "Creating trunk" # svn mkdir http://localhost/svn/repo/tags -m "Creating tags" # svn mkdir http://localhost/svn/repo/branches -m "Creating branches"
Leave a Reply