In order to copy an unversioned tree of your project/website files and begin tracking in your SVN repository and create intermediate directories, use the following command: svn import -m "Initial import" local/path/ To only give read-only access to ‘someaccess’ users to some lower level project, add: = r 9. To give read and write permissions to ‘allaccess’ users, add: = rw If you want to add additional users, use the same command, but without the ‘-c’ switch to avoid overwriting the passwd file.Īssign permissions to SVN users using the authz file (/home/someuser/svn/myapp/conf/authz): 8. Create the conceptual groups, configure permissionsĬreate the conceptual groups you want, then add people to it: Ĭhoose what access they have from both the permissions and project level: On RPM-based distributions (if using Apache as a web server), run: chown -R apache:subversion myappĬhmod -R g+rws myproject 7. Create a ‘passwd’ fileĬreate a ‘passwd’ file to the /home/someuser/svn/myapp/conf/passwd directory on your server which contains user authentication details: sudo htpasswd -c /home/someuser/svn/myapp/conf/passwd someuser On Debian based distributions, run: chown -R www-data:subversion myapp Create a new directory for your project/application/website files: mkdir -p svn/myappĬreate an SVN repository using the following command: sudo svnadmin create /home/someuser/svn/myapp 6. Replace ‘someuser’ with the actual username. Svn, version 1.7.14 (r1542130) 4. Create a system user accountĬreate a system user account and switch to that user: useradd -M someuser To check the version of SVN installed on your server, use the following command: # svn -version If you are using a CentOS VPS, you can use the following command to update the OS packages and install SVN: yum update If you are using an Ubuntu VPS, update the OS packages and install SVN on your server using the commands below: sudo apt-get update Update the OS Packages and Install SVN in Linux Please remember to replace 1.1.1.1 with the IP address of your server and 2222 with the listening port of your server’s SSH daemon. ![]() In order to install SVN, connect to your Linux VPS via SSH. ![]() 8. Create the conceptual groups, configure permissions.Create a new directory for your project/application/website files:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |