Instalacion de subversion

Páginas: 5 (1108 palabras) Publicado: 3 de marzo de 2011
Integrantes: Bastidas Cesar Flores Fabricio Gonzalez Mariana Neyra Lisset INSTALACION DE SUBVERSION SOBRE UBUNTU

1.

Debemos instalar Apache, Subversion y la librería para comunicar Apache con Subversion Abrimos una consola e introducimos en esta lo siguiente: $> sudo aptitude install apache2 subversion subversion-tools libapache2-svn

2.

Creamos la carpeta donde crearemos nuestrosrepositorios, lo haremos así por si necesitamos crear varios repositorios. En consola escribimos lo siguiente $> sudo mkdir /ruta/de/la/raiz/de/repositorios

3.

Configuramos la librería de Apache para subversion.  Editamos el archivo dav_svn.conf de la carpeta /etc/apache2/mods-enabled/ y lo dejamos como lo siguiente: dav_svn.conf - Example Subversion/Apache configuration ## For details andfurther options see the Apache user manual and # the Subversion book. ## NOTE: for a setup with multiple vhosts, you will want to do this # configuration in /etc/apache2/sites-available/*, not here. # ... # URL controls how the repository appears to the outside world. # In this example clients access the repository as http://hostname/svn/ # Note, a literal /svn should NOT exist in yourdocument root. # Uncomment this to enable the repository DAV svn # Set this to the path to your repository #SVNPath /var/lib/svn # Alternatively, use SVNParentPath if you have multiple repositories under

# under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...). # You need either SVNPath and SVNParentPath, but not both. SVNParentPath /ruta/de/la/raiz/de/repositorios # Access controlis done at 3 levels: (1) Apache authentication, via # any of several methods. A "Basic Auth" section is commented out # below. (2) Apache and , also commented out # below. (3) mod_authz_svn is a svn-specific authorization module # which offers fine-grained read/write access control for paths # within a repository. (The first two layers are coarse-grained; you # can only enable/disable accessto an entire repository.) Note that # mod_authz_svn is noticeably slower than the other two layers, so if # you don't need the fine-grained control, don't configure it. # Basic Authentication is repository-wide. It is not secure unless # you are using https. See the 'htpasswd' command to create and # manage the password file - and the documentation for the # 'auth_basic' and 'authn_file' modules,which you will need for this # (enable them with 'a2enmod'). AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/apache2/dav_svn.passwd

# To enable authorization via mod_authz_svn #AuthzSVNAccessFile /etc/apache2/dav_svn.authz # The following three lines allow anonymous read, but make # committers authenticate themselves. It requires the 'authz_user' # module (enable it with'a2enmod'). # Require valid-user #



Creamos un archivo para definir los usuarios que pueden acceder a los repositorios, tanto leerlos como modificarlos. Primero en consola activaremos los módulos necesarios para las autentificaciones ejecutando los siguientes comandos.

$> a2enmod $> Module name? auth_basic $> a2enmod $> Module name? authn_file $> a2enmod $> Module name? authz_user Creamos ahora un archivo donde guardaremos contraseñas y usuarios mediante htpasswd. $> sudo htpasswd -cb /etc/apache2/dav_svn.passwd nombre_usuario contraseña_usuario  Luego para añadir nuevos usuarios (si quieres forzar que las constraseñas se encripten en MD5, en la instrucción anterior y en esta debes añadir tras la -b una m, -bm) $> sudo htpasswd -b /etc/apache2/dav_svn.passwdnombre_usuario_nuevo password_usuario_nuevo  Para eliminar un usuario $> sudo htpasswd -D /etc/apache2/dav_svn.passwd nombre_usuario 4. Creamos el repositorios  Creamos una carpeta donde irá nuestro repositorio, evidentemente dentro de la carpeta raíz de repositorios $> sudo mkdir /raiz/de/repositorios/nombre_repositorio  Le indicamos a Subversion de que esta carpeta es un repositorios $> svnadmin create...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Tutorial De Instalación De Un Servidor SUBVERSION En DEBIAN
  • Subversion
  • Subversion
  • Subversion
  • subversion
  • Subversion
  • subversión
  • subversion

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS