Showing posts with label :: Subversion. Show all posts
Showing posts with label :: Subversion. Show all posts

Tuesday, March 11, 2014

SVN cannot set LC_CTYPE locale on Centos

I got the error when checking "svn status"
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is UTF-8
svn: warning: please check that your locale name is correct
locale -a
export LC_ALL=C

Installing Subversion on Server Centos

Install the package
sudo yum install subversion mod_dav_svn
Create the directory svn
mkdir /var/www/svn
svnadmin create myrepo
chown -R apache.apache myrepo
Edit subversion configuration file
vi /etc/httpd/conf.d/subversion.conf
Add these line
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

< Location /svn >
   DAV svn
   SVNPath /var/www/svn
   AuthType Basic
   AuthName "Subversion repositories"
   AuthUserFile /etc/svn-auth-users
   Require valid-user
< /Location >
Adding new user
sudo htpasswd -cm /etc/svn-auth-users username
New password:
Re-type new password:
Adding password for user new_user
Restart your server
sudo service httpd restart
Finally, access your svn url:
http://ip-address/svn/myrepo

Friday, October 4, 2013

Where is hosting svn repositories ?

Hi All,
Here's the list of where you can hosting your project with Subversion (SVN)
and many more.. you can googling :)

Tuesday, July 6, 2010

Install Subversion with web access on Ubuntu Linux

Subversion control is an open source version control system. Using Subversion you can record your projects history, here you can manage your project and save change with a version number.

Installation.
To access the subversion repository from HTTP protocol, you must install and configure webserver. in this section we are using Apache2 as Server.

To install subversion run these code:

> sudo apt-get install subversion libapache2-svn



We are going to create svn repository on /home/svn

> mkdir /home/svn
> cd /home/svn
> mkdir repo


Well, let's begin to create repository here:

> svnadmin create /home/svn/repo



Will create a group name is "subversion" and replace USERNAME with actually username

> sudo addgroup subversion
> sudo usermod -a -G subversion USERNAME
> sudo usermod -a -G subversion www-data
  


Set file permissions:

> sudo chown -R www-data:subversion /home/svn/repo
> sudo chmod -R g+rws /home/svn/repo


Now, we are going to configure Vhost with svn access.. if you want to see Example subversion configuration apache2. run these code:

> sudo gedit /etc/apache2/mods-enabled/dav_svn.conf


That's an example file configuration to svn access on HTTP protocol.
in this case i want to show you how the svn repository can access per website url, you must configure it at /etc/apache2/sites-available/your_site.conf and paste code below:


  <location svn="">
     DAV svn
     SVNPath /home/svn/repos
     AuthType Basic
     AuthName "Subversion Repository"
     AuthUserFile /etc/subversion/passwd
     Require valid-user
  </location> 



Ok, a little remaining setup now!
you must create /etc/subversion/passwd file. This file contains user authentication access.
-c using for replacing existing user

> sudo htpasswd -c /etc/subversion/passwd USERNAME
> New password: 
> Re-type new password: 



Restart your server:

> sudo /etc/init.d/apache2 restart


If you are uncertain whether the passwd file exists, you can check this with run this command:

> cat /etc/subversion/passwd



Now, to access the repository you can run the following command:

> svn co http://hostname/svn/repo myproject --username user_name