Add a new project to SVN under Ubuntu

1、 Log in to SVN server
Account: ssh [email protected]
Password: 123456

2、 New SVN project
a. Enter the directory where svn creates the project
      cd /etc/apache2/mods-enabled/

b. Edit files

sudo vi dav_svn.conf 
Password: 123456 (the login password for account test, the same below)

c. Add a new project (testsvn as an example), add the following code at the end of the file

< Location /testsvn> 
 DAV svn 
 SVNPath /home/fruits/svn/projects/code/testsvn
 AuthType Basic 
 AuthName "Subversion repository" 
 AuthUserFile /etc/svn-auth-file 
 Require valid-user 
< /Location>

3、 New project (testsvn) resource library
      sudo svnadmin create /home/fruits/svn/projects/code/testsvn
Note: Now you can download svn resources through TortoiseSVN, but you cannot upload them yet (because the user does not have write permission)

4、 Modify project (testsvn) access permissions
  sudo  chmod  777  -R   /home/fruits/svn/projects/code/testsvn 
Note: -R recursively sets all permissions under the testsvn folder to read+write+execute

5、 Verify that the creation of the svn project (testsvn) is successful
1 ) Download testsvn from svn to local
Use the TortoiseSVN tool to download the file svn resource to the local (right click to checkout), the svn URL of the newly created testsvn project:
    http://192.168.1.100/testsvn/ 
Or command to download svn resources as follows
      svn   co   http://192.168.1.100/testsvn/    testsvn

2 ) Upload local files to svn
a. Create a new file aaa.txt, enter: doodlemobile
b. Right click——"TortoiseSVN ——"**Add... **
c. Right click——" SVN Commit... ——" Enter the change record, such as: add aaa.txt
d. Open the browser and enter: http://192.168.1.100/testsvn/ to check whether the upload is successful!

6、 common problem

1 ) Could not open the requested SVN filesystem****error

**Solution: ** This is because the project resource library (testsvn) has not been created, so this file cannot be accessed. For the solution, see step 3 above

2 ) Permission denied error

**Solution: ** This is that the user does not have write permission (cannot upload files), please see step 4 above for the solution

**Reference recommendation: **SVNForum

SVN commonly used commands (recommended)

SVN server installation and configuration under ubuntu

Windows install SVN server (Baidu Library)

Detailed tutorial on installing Subversion server and TortoiseSVN client under Windows (Baidu Library)

Recommended Posts

Add a new project to SVN under Ubuntu
Publish the node.js project under Ubuntu to heroku
Steps to add toolkit for Matlab_Linux under ubuntu
Add new users under ubuntu and kick out online users
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
How to add swap space on Ubuntu 20.04
How to add swap partition in Ubuntu
Use mendeley to insert references under ubuntu
How to add users to Sudoers in Ubuntu
Build a python development environment under Ubuntu
Three ways to install software under Ubuntu
How to change MySQL password under Ubuntu
Deploy springboot project through docker under Ubuntu
How to install vim editor under Linux (Ubuntu 18.04)
How to add Apt software source on Ubuntu
Summary of methods to use Evernote under Ubuntu 14.04
Use rsync to remotely backup data under Ubuntu
The solution to the failure to install .deb under Ubuntu 16.04
Use doxygen to generate API documentation under Ubuntu 12.04
Install Python3 environment in a brand new Ubuntu
Explain how to add swap partition on Ubuntu 16.04
Mount the disk in a directory under Ubuntu 18.04
Solution to pycharm unable to import classes under Ubuntu
A few things to do after installing Ubuntu 18.04
How to add logging module to Nginx on Ubuntu 16.04
How to enable Mysql remote access under Ubuntu 14.04
How to install gcc compiler faster under Ubuntu
How to set up a DNS server on Ubuntu 18.04
Use Rancher to build a K8s cluster under CentOS7
How to add the gzip module to Nginx on Ubuntu 14.04
How to start a blog with Hexo on Ubuntu 14.04
A simple tutorial to install Sogou Pinyin on ubuntu18.04
How to configure a fixed IP based on Ubuntu 18.04
How to install two versions of OpenCV under ubuntu?
How to create a Python virtual environment in Ubuntu 14.04
How to repair a damaged Ubuntu system without reinstalling
How to set a fixed IP based on Ubuntu 16.04
How to open https on nginx server under Ubuntu