About Me

My photo
Kalyan Kumar Pasupuleti B-Tech(Information Technology). • AWS Certified Solutions Architect - Associate • RedHat Certified Engineer(RHCE) • Directory Services and Authentication Certificate of Expertise(LDAP) • Red Hat SELinux Policy Administration Certificate of Expertise(SELinux) • Network Services Security Certificate of Expertise (Network Services) • RedHat Certified Virtualization Administrator(RHCVA) • Red Hat Certified Security Specialist (RHCSS) Working as Cloud DevOps engineer

Tuesday, October 30, 2012

Configuring SVN Sub Version on CentOS

Setup SVN subversion repository 

1. Install below packages:
# yum install mod_dav_svn subversion
     2. Modify Subversion config file /etc/httpd/conf.d/subversion.conf with below content
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

<Location /svn>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>
3  3. Add SVN (Subversion) users
# htpasswd -cm /etc/svn-auth-users user1
  Create and configure SVN repository

# mkdir /var/www/svn
# cd /var/www/svn
# svnadmin create vlrepo
# chown -R apache.apache vlrepo

Note: SELinux should be in disable mode 
Now restart the apache service
# service httpd restart
Go to http://localhost/svn/vlrepo address and you will be prompted for credentials. Use “user1” user credentials to login. 
Now configure the repository. 
To disable anonymous access and enable access control add following rows to /var/www/svn/vlrepo/conf/svnserve.conf file:
anon-access = none 
            authz-db = authz 
Now prepare the directories and files which needs to import to the SVN repository.
# mkdir -p /VL/{Docs,IT,Tags}
# touch /VL/Docs/doc{1..5}
# touch /VL/IT/file{1..5}
            # touch /VL/Tags/tag{1..5}
Now import the data to the repository

# svn import -m 'Initial import' /VL/ http://localhost/svn/vlrepo/

Enter the root password if it prompts you.
Enter the repository username(user1)
Enter the user(user1) password.
Now you can see the data will be added to the repository.
Store password unencrypted (yes/no)? no
Now access the URL  http://localhost/svn/vlrepo and observe the date. 

Happy Browsing .... :)

Wednesday, October 24, 2012

How code makes it into Red Hat Enterprise Linux?