Ubuntu16.04.5LTS installation process of SVN

This article briefly introduces the construction process of SVN under Ubuntu system

Update source

sudo apt-get update

Install SVN

sudo apt-get install subversion

Create folder

sudo mkdir /home/svn
sudo mkdir /home/svn/repository
sudo chmod -R 777/home/svn/repository
sudo svnadmin create /home/svn/repository
cd /home/svn/repository/
sudo chmod -R 777 db

Modify svnserve.conf

cd /home/svn/repository/conf/
sudo vi svnserve.conf 

Modify these four lines as follows

anon-access =none anonymous users are not readable
auth-access =Write permission user can write
password-db =passwd password file is passwd
authz-db =authz permissions file is authz

### users have read and write access to the repository.
anon-access = none
auth-access = write
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled(see below),this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control. Unless you specify a path
### starting with a /, the file's location is relative to the
### directory containing this file. The specified path may be a
### repository relative URL(^/) or an absolute file:// URL to a text
### file in a Subversion repository. If you don't specify an authz-db,
### no path-based access control is done.
### Uncomment the line below to use the default authorization file.
authz-db = authz
### The groups-db option controls the location of the groups file.

Modify the password file and add access users

sudo vi passwd

[ users]
# harry = harryssecret
# sally = sallyssecret
lidata = lidata429

Add directory permissions to users

sudo vi authz

[ groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe

# [ /foo/bar]
# harry = rw
# &joe = r
# *=

# [ repository:/baz/fuz]
# @ harry_and_sally = rw
# *= r
[ /]
lidata=rw

Start the service and monitor port 81

sudo svnserve -d -r /home/svn --listen-port 81

Check if svn is started

ps -ef | grep svnserve

Out of service

kill all svnserve

to sum up

The above is the process of installing SVN on Ubuntu16.04.5LTS introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message. The editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!

Recommended Posts

Ubuntu16.04.5LTS installation process of SVN
Graphical installation of CentOS8
Graphical centos installation detailed process
Centos7 silent installation of Oracle11g
Python version of OpenCV installation
CentOS environment installation of Docker
Introduction to CentOS7 installation process of openjdk, tomcat and mysql
Centos7 installation tomcat process introduction
CentOS8 Linux 8.0.1905 installation process (illustration)
Detailed explanation of quick installation and configuration of Subversion (SVN) under Ubuntu
Centos7 installation and configuration of Jenkins
Happy installation of Jenkins in ubuntu
Analysis of Hyper-V installation CentOS 8 problem
VMware Ubuntu installation detailed process (pro-test)
Centos7 installation of Dameng database tutorial
Centos6.5 installation and deployment of KVM
CentOS 8 installation of MariaDB detailed tutorial
Installation under centos6.9 of jenkins learning
Installation of deb package under Ubuntu
Binary installation of k8s cluster (1)-opening
001. Installation of enterprise-level CentOS7.6 operating system
Installation of Docker CE under Ubuntu