srujanmiryala
asked on
How to install SVN in linux
Hi ,
I am planing to install SVN in centos please help me in installing SVN in centos,
1.Need Step by step instructions.
I am planing to install SVN in centos please help me in installing SVN in centos,
1.Need Step by step instructions.
Hi
The installation will vary depending on your type of linux.
Run the following as the root user
If you have ubuntu or Debian:
apt-get install subversion
If you have Redhat, Fedora core or Suse:
yum -y install subversion
Then follow the link above to configure it.
The installation will vary depending on your type of linux.
Run the following as the root user
If you have ubuntu or Debian:
apt-get install subversion
If you have Redhat, Fedora core or Suse:
yum -y install subversion
Then follow the link above to configure it.
For CentOS it is:
yum -y install subversion
ASKER
can i have step by step guide
So where are you?
Could you install?
Do you have subversion?
yum list installed | egrep "svn|subversion"
or
rpm -qa | egrep "svn|subversion"
Could you install?
Do you have subversion?
yum list installed | egrep "svn|subversion"
or
rpm -qa | egrep "svn|subversion"
Show me the output and I will tell you the next steps
ASKER
dev01[root@dev01 ~]# yum list installed | egrep "svn|subversion"
mod_dav_svn.x86_64 1.4.2-4.el5_3.1 installed
subversion.i386 1.4.2-4.el5_3.1 installed
subversion.x86_64 1.4.2-4.el5_3.1 installed
mod_dav_svn.x86_64 1.4.2-4.el5_3.1 installed
subversion.i386 1.4.2-4.el5_3.1 installed
subversion.x86_64 1.4.2-4.el5_3.1 installed
Good, you are on the track
Just want to check if you already have svnadmin
Issue this command as root
svnadmin
This command would not run but if you have it, it should show you options. If you don't, then it would say unrecognized.
If you don't have it then proceed with the following
Now please issue this command
Now issue the following command
svn --version
Feel free to explore these references, and let me know how far you get.
REFERENCES:
http://wiki.centos.org/HowTos/Subversion
http://artis.imag.fr/~Xavier.Decoret/resources/svn/index.html
http://www.techiecorner.com/1440/how-to-install-svn-1-6-on-centos-5/
http://blog.itsmine.co.uk/2009/01/22/howto-install-subversion-and-redmine-on-centos5-rhel5/
http://www.electrictoolbox.com/install-subversion-centos/
Just want to check if you already have svnadmin
Issue this command as root
svnadmin
This command would not run but if you have it, it should show you options. If you don't, then it would say unrecognized.
If you don't have it then proceed with the following
Now please issue this command
rpm -ivh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum upgrade subversion
Now issue the following command
svn --version
Feel free to explore these references, and let me know how far you get.
REFERENCES:
http://wiki.centos.org/HowTos/Subversion
http://artis.imag.fr/~Xavier.Decoret/resources/svn/index.html
http://www.techiecorner.com/1440/how-to-install-svn-1-6-on-centos-5/
http://blog.itsmine.co.uk/2009/01/22/howto-install-subversion-and-redmine-on-centos5-rhel5/
http://www.electrictoolbox.com/install-subversion-centos/
ASKER
http://www.electrictoolbox.com/install-subversion-centos/
i followed this link and installed but i am not able to connect through eclipse from my client windows machine.
i followed this link and installed but i am not able to connect through eclipse from my client windows machine.
ASKER
i am getting error
'bash: svn://svn@lysplinux/myproj ect : no such file or directory it showing'
'bash: svn://svn@lysplinux/myproj
What command returned this answer. Did you want to type this in a browser?
I don't know where you got it because I didn't tell you any command that would return this kind of error, or did I?
I don't know where you got it because I didn't tell you any command that would return this kind of error, or did I?
Ok. Just follow the steps I tell you now.
Can you do
svn --version
What does it return
Can you do
svn --version
What does it return
ASKER
svn, version 1.4.2 (r22196)
compiled Aug 10 2009, 17:54:46
Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
compiled Aug 10 2009, 17:54:46
Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
It looks like you are pretty much good to go. Just few more steps. Do you want it command line? That should not be hard. Just follow the remaining steps in
http://www.electrictoolbox.com/install-subversion-centos/
Look at this tutorial
http://www.techiecorner.com/1440/how-to-install-svn-1-6-on-centos-5/
So, it tells you that you have installed it right.
If you, however, want to setup http (apache) with it, it would be a lot more steps.
http://www.electrictoolbox.com/install-subversion-centos/
Look at this tutorial
http://www.techiecorner.com/1440/how-to-install-svn-1-6-on-centos-5/
So, it tells you that you have installed it right.
If you, however, want to setup http (apache) with it, it would be a lot more steps.
ASKER
I followd the same step please its an urgent task so please help me
http://www.electrictoolbox.com/install-subversion-centos/
http://www.electrictoolbox.com/install-subversion-centos/
Where are you getting stuck? Please tell me the error messages. I thought you were done.
Could you do this?
svnadmin create myproject
svnadmin create myproject
ASKER
i created my project also
In this area i am strucked and please help me how to use this eclipse
And finally, as the svn user, start the subversion daemon like so:
svnserve -d -r /home/svn/repositories
You can now connect to the subversion repository at e.g. svn://svn@hostname/myproje ct
You can add additional repositories under this user using the "svnadmin create" command and then access them at svn://[userame]@[hostname] /[project name]
In this area i am strucked and please help me how to use this eclipse
And finally, as the svn user, start the subversion daemon like so:
svnserve -d -r /home/svn/repositories
You can now connect to the subversion repository at e.g. svn://svn@hostname/myproje
You can add additional repositories under this user using the "svnadmin create" command and then access them at svn://[userame]@[hostname]
Ok.
Did you create a directory called repositories?
Did you cd into this directory?
After cd, you did svnadmin create myproject, right?
Then did you edit the file myproject/conf/svnserve.co nf ?
In this file you need uncomment the lines,
auth-access = write
password-db = passwd
Show me this file.
Then you need to allow user access.
Edit file
myproject/conf/passwd
It should be like
[users]
srujanmiryala = password
Did you create a directory called repositories?
Did you cd into this directory?
After cd, you did svnadmin create myproject, right?
Then did you edit the file myproject/conf/svnserve.co
In this file you need uncomment the lines,
auth-access = write
password-db = passwd
Show me this file.
Then you need to allow user access.
Edit file
myproject/conf/passwd
It should be like
[users]
srujanmiryala = password
Then you need to start it
svnserve -d -r /home/svn/repositories
svnserve -d -r /home/svn/repositories
ASKER
I followed same step
[svn@lysplinux conf]$ more passwd
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.
[users]
# harry = harryssecret
# sally = sallyssecret
svnadmin = admin123
************************
myproject/conf/svnserve.co nf
[svn@lysplinux conf]$ cd svnserve.conf
bash: cd: svnserve.conf: Not a directory
[svn@lysplinux conf]$ more svnserve.conf
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)
### Visit http://subversion.tigris.org/ for more information.
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
# anon-access = read
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 conf directory.
### 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 conf
### directory. 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
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa. The default realm
### is repository's uuid.
# realm = My First Repository
[svn@lysplinux conf]$
[svn@lysplinux conf]$ more passwd
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.
[users]
# harry = harryssecret
# sally = sallyssecret
svnadmin = admin123
************************
myproject/conf/svnserve.co
[svn@lysplinux conf]$ cd svnserve.conf
bash: cd: svnserve.conf: Not a directory
[svn@lysplinux conf]$ more svnserve.conf
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)
### Visit http://subversion.tigris.org/ for more information.
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
# anon-access = read
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 conf directory.
### 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 conf
### directory. 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
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa. The default realm
### is repository's uuid.
# realm = My First Repository
[svn@lysplinux conf]$
ASKER
Please help me in this issue.
This looks good. What is the issue?
ASKER
i am not able to connect from windows machine where i installed eclipse
Are you trying using web browser?
Could you do without a web browser in Linux?
Could you do without a web browser in Linux?
ASKER
i want to connect through eclipse where we are having svn plugin
I am trying to figure out whether you would need Apache to setup your Eclipse
Please see here
http://subclipse.tigris.org/wiki/PluginFAQ#head-68b22e8153d602f6065567d5d781ee4473bcdd50
Try to follow instructions that I gave you but please DO let me know where you are. Will work together
Please see here
http://subclipse.tigris.org/wiki/PluginFAQ#head-68b22e8153d602f6065567d5d781ee4473bcdd50
Try to follow instructions that I gave you but please DO let me know where you are. Will work together
Ok, I found what I was looking for
You can do it though SSH as I hoped.
http://svnkit.com/kb/config-settings.html
These instructions are not hard. Just follow them
You can do it though SSH as I hoped.
http://svnkit.com/kb/config-settings.html
These instructions are not hard. Just follow them
ASKER
i am strucked in this are pls can u help me. after finishing this i need to do import and export of project.
You need to edit "myproject/conf/svnserve.c onf" and uncomment the following lines:
auth-access = write
password-db = passwd
and edit the password file "myproject/conf/passwd" adding a new user and password. Note that the password is stored in plain text. In the following example we have a user called "john" whose password is "foobar123":
[users]
john = foobar123
And finally, as the svn user, start the subversion daemon like so:
svnserve -d -r /home/svn/repositories
You can now connect to the subversion repository at e.g. svn://svn@hostname/myproje ct
You can add additional repositories under this user using the "svnadmin create" command and then access them at svn://[userame]@[hostname] /[project name]
You need to edit "myproject/conf/svnserve.c
auth-access = write
password-db = passwd
and edit the password file "myproject/conf/passwd" adding a new user and password. Note that the password is stored in plain text. In the following example we have a user called "john" whose password is "foobar123":
[users]
john = foobar123
And finally, as the svn user, start the subversion daemon like so:
svnserve -d -r /home/svn/repositories
You can now connect to the subversion repository at e.g. svn://svn@hostname/myproje
You can add additional repositories under this user using the "svnadmin create" command and then access them at svn://[userame]@[hostname]
ASKER
i am getting this error when i am accessing svn from eclipse
svn.bmp
svn.bmp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Any solutions
Your server is not running. It may mean that some steps were missed. To determine that, I had given you a command. Could you show me its output?
If this is still an unresolved issue, please let me know and I would spare time for you this weekend. If you have been able to resolve it, I would like to know how.
http://artis.imag.fr/~Xavier.Decoret/resources/svn/index.html