Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install SVN for Ubuntu16.04.5LTS

Shulou Source: shulou.com Published: 2022-06-01 19:49:37 10月02日 Update

This article will explain in detail how to install SVN on Ubuntu 16.04.5LTS. Xiaobian thinks it is quite practical, so share it with you as a reference. I hope you can gain something after reading this article.

update source

sudo apt-get update

Install SVN

sudo apt-get install subversion

create folders

sudo mkdir /home/svnsudo mkdir /home/svn/repositorysudo chmod -R 777 /home/svn/repositorysudo svnadmin create /home/svn/repositorycd /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 user unreadable auth-access = write permission user writable password-db = passwd password file for passwdauthz-db = authz permission file for 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 password file to add access user

sudo vi passwd[users]# harry = harryssecret# sally = sallyssecretlidata = 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 listen on port 81

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

Check if svn is started

ps -ef | grep svnserve

stop service

kill all svnserve

About "Ubuntu 16.04.5LTS how to install SVN" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.

Tags: File user permission article more service good practical content password folder article directory knowledge port four lines reference help update related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker Redmi MySQL Apple