Posted on : 19-09-2011 | By :
admin | In :
Genel, Ubuntu
Windows SVN Client
tortoisesvn.tigris.org
Ubuntu SVN Client
rapidsvn (sudo apt-get install rapidsvn)
#Installing Apache2 With PHP5 And MySQL Support On Ubuntu 11.04 (LAMP)
http://blog.ortimo.com/svn-serveron-ubuntu-11-04/257/
#How to install webmin on ubuntu 11.04 (Natty) server
http://www.ubuntugeek.com/how-to-install-webmin-on-ubuntu-11-04-natty-server.html
#Install Subversion with Web Access on Ubuntu
http://www.howtogeek.com/howto/ubuntu/install-subversion-with-web-access-on-ubuntu/
config files
===========================
password and svn_access_file
------
# create first account
htpasswd -cm /etc/apache2/dav_svn.passwd userA
# to add next accounts
htpasswd -m /etc/apache2/dav_svn.passwd userB
### svn_access_file maken
-------------------
vim /etc/apache2/dav_svn.authz
# vim komutlari
# i tusuna basinca insert
# esc :wq kaydet kapat
# butun kullanicilara okuma yazma hakki
[/]
* = rw
veya
[groups]
group1 = userA, userB
[reponame:/]
@group1 = rw
userA = rw
userB = rw
# documenti kaydet ve cik (esc -> :wq)
add dir to svn
==========
svnadmin create /svn
apache config file
---------------
vim /etc/apache2/mods-enabled/dav_svn.conf
# sample config
<Location /svn>
DAV svn
SVNPath /svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
AuthzSVNAccessFile /etc/apache2/dav_svn.authz
Require valid-user
# SVNAutoversioning on
# Satisfy Any
</Location>
Can't open file '/svn/db/txn-current-lock': permission denied
can't make directory '/svn/dav/activities.d': permission denied
====================================
cd repodirpath (repo dir in icine gir)
# dav dir maken
mkdir dav
chmod -R 770 ./*
#www-data is apache user in ubuntu
chown -R www-data:www-data ./*
restart apache
==================
/etc/init.d/apache2 restart
Now we can begin the installation
============
============
Install subversion
Selec All Code:1
| sudo apt-get install subversion libapache2-svn |
create subversion repository in /svn
edit the configuration file for the subversion webdav module
Selec All Code:1
| vim /etc/apache2/mods-enabled/dav_svn.conf |
Selec All Code:1
2
3
4
5
6
7
8
9
10
11
12
13
| # sample config
# /etc/apache2/mods-enabled/dav_svn.conf
<Location /svn>
DAV svn
SVNPath /svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
AuthzSVNAccessFile /etc/apache2/dav_svn.authz
Require valid-user
# SVNAutoversioning on
# Satisfy Any
</Location> |
# create first account
Selec All Code:1
| htpasswd -cm /etc/apache2/dav_svn.passwd userA |
# to add next accounts
Selec All Code:1
| htpasswd -m /etc/apache2/dav_svn.passwd userB |
# make svn access file
Selec All Code:1
| vim /etc/apache2/dav_svn.authz |
Selec All Code:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| # sample config
# /etc/apache2/dav_svn.authz
# read write access to all users
[/]
* = rw
# or create groups
[groups]
group1 = userA, userB
[svn:/]
@group1 = rw
userA = rw
userB = rw
[other_reponame:/]
@group1 = rw
userA = rw
userB = rw |
On Errors
=============
Can't open file '/svn/db/txn-current-lock': permission denied
can't make directory '/svn/dav/activities.d': permission denied
====================================
create a Dav dir in svn repo
give access to http user
http user on debian = www-data
Selec All Code:1
2
3
4
5
6
| # go in svn repo
cd /svn
mkdir dav
chmod -R 770 ./*
#www-data is apache user in ubuntu
chown -R www-data:www-data ./* |
after all restart Apache to apply settings
thats is all u can test test now
asdfasdf
asdf
0