Koozali.org: home of the SME Server

Subversion on SME, can it be done?

Offline pwgsc1

  • ****
  • 93
  • +0/-0
Subversion on SME, can it be done?
« on: July 15, 2005, 03:40:05 PM »
Hey Folks,

Can you or has anyone got Subversion installed on SME?  If so, do you have a howto?  I've search and found the question asked back in 2004 but no answer.

Thanks as always,

Craig

cjak

Install Subversion server
« Reply #1 on: July 17, 2005, 09:00:59 AM »
Hi,

Here's how I did it.  Names in [] need to be changed to something useful for you.  I also use and recommend TortoiseSVN for the Windows client side.

Good luck,

Conrad.
----

** Download RPMs to /tmp directory
   apache-libapr-2.0.48-0.1.i386.rpm
   neon-0.24.7-1.i386.rpm
   subversion-1.1.1-1.rh7x.i386.rpm
   subversion-server-1.1.1-1.rh7x.i386.rpm

** Install
   rpm --nodeps -Uvh /tmp/*.rpm
   
** Create a repository
   svnadmin create /path/to/repos
      eg. svnadmin create /home/e-smith/files/ibays/[IBAYNAME]/files/Repository

** Setup the access and authentication
   Edit <repository>/conf/svnserve.conf
      eg.
         [general]
         anon-access = write          - allows access without password
         auth-access = write
         password-db = passwd
         realm = [REALM_NAME]
      Edit password file (eg. <repository>/conf/passwd)   
         eg.
            [users]
            username = password

** Confirm the repository exists
   Use TortoiseSVN RepoBrowser to confirm the repository address
      eg.
         svn://server.local/Repository
         
** Import files (optional - can use TortoiseSVN for this)
   Create directories
      mkdir <projectroot>/branches
      mkdir <projectroot>/tags
      mkdir <projectroot>/trunk
   
   Copy initial files
      cp -R <projectfiles> <projectroot>/trunk
         eg. cp -R    
      
   Import
      svn import <filesroot> file://<repository> -m "Initial import"

   (optional) Remove initial files (if they're not needed)
      rm -rf <projectroot>/*
      

** Start the server
   svnserve -d -r /path/to/repos
      eg.   svnserve -d -r /home/e-smith/files/ibays/[IBAYNBAME]/files/Clients/
   
** References
   [1] Subversion manual G:\Operations\Technical\Server\Packages\Subversion\SubversionManual.pdf
   [2] http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch03s02.html

Offline pwgsc1

  • ****
  • 93
  • +0/-0
Thanks and a couple of questions
« Reply #2 on: July 19, 2005, 03:48:43 PM »
Hey Conrad,

Thanks for the advise.

I downloaded and installed the rpms. THe only dif was I got subversion * 1.20 instead of 1.1.1

For the Realm Name, is that what use used [REALM_NAME] or does that have to sync up with a directory or server name? The definition I've found for it is a bit funky if you've never used Subversion.

When I used TSVN repo browser to check the repository, it could not see it.  I used SVN://server-name/repository, SVN://server-name/Ibay-name/files/repository with no success.  Are their some SME Server settings that I have to toggle like Secure Shell?

When you load svnserve I notice you map to a "clients" directory not the repository directory, is this on purpose or a mistype?    When I load my svnserve and may to /home/e-smith/files/subversion/files/repository I get this error message:  file not found: revision 0, path....  No matter what path I put in, I get the error.

I feel like I one step away or two....max three!  :-)

I'll keep researching

Thanks,

Craig

cjak

Subversion on SME, can it be done?
« Reply #3 on: July 19, 2005, 05:38:23 PM »
Change the names in [] to something useful to you.  The realm name is necessary to allow multiple independent sets of repositories.

The repository location will be something like svn://server.local/Repository if the create command looks like the example given.

Yep, that was a typo.  It should be the same as that used in the create command, IIRC.

Conrad.

Offline pwgsc1

  • ****
  • 93
  • +0/-0
OK, looks like it's working and one last question
« Reply #4 on: July 20, 2005, 02:25:57 PM »
Thanks Conrad,

It looks like it's working. I can repo-browse to the repository and add/remote folders with no errors.  I'll have to leave it up to the client to do more indepth testing.  

BUT one last question.  How did you setup snvserve to run on a reboot of the server?

I'm off to see if I can get CVS running now.  Never know, might have some questions.  :-)

Appreciate your Howto and help,

Craig

cjak

Subversion on SME, can it be done?
« Reply #5 on: July 21, 2005, 02:52:19 AM »
Reboot?  What's a reboot? :-)

I restart it manually, but you should be able to put the svnserve command in an init file somewhere.

Conrad.

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Re: OK, looks like it's working and one last question
« Reply #6 on: July 21, 2005, 10:09:56 PM »
Quote from: "pwgsc1"

I'm off to see if I can get CVS running now.  Never know, might have some questions.  :-)


For CVS on SME you can start here
http://wellsi.com/sme/index.html
and look at
http://wellsi.com/sme/cvs/cvs.html

need anymore help - just ask.
............

Offline pwgsc1

  • ****
  • 93
  • +0/-0
Subversion on SME, can it be done?
« Reply #7 on: July 23, 2005, 01:27:38 AM »
Thanks Wellsi,

I've already been looking at your HOWTO's  actually.  I'm having a bit of trouble accessing CVS using TCVS, I"m going to spend a couple of hours tomorrow trying to figure it out, if I got any questions I'll drop you a line back here.

Thanks for the offer and the HOWTO, much appreciated.

Craig

ss_voip

Re: Install Subversion server
« Reply #8 on: September 05, 2005, 02:54:18 PM »
Any ideas  8-) on this? I tried the below on SME 6.5RC1. It gives me the following:

$ rpm --nodeps -Uvh /tmp/*.rpm
2005-09-05 14:52:54.883 error: failed dependencies:
2005-09-05 14:52:54.883    libdb-4.0.so   is needed by apache-2.0.48-0.1
2005-09-05 14:52:54.883    db4 >= 4.0.14 is needed by subversion-1.2.1-1
2005-09-05 14:52:54.883    libdb-4.0.so   is needed by subversion-1.2.1-1
2005-09-05 14:52:54.893    libdb-4.0.so   is needed by subversion-server-1.2.1-1
2005-09-05 14:52:55.574

I thought the nodeps option will keep it from looking for dependencies? Any ideas on this? What version of SME did you guys do this on?

Quote from: "cjak"
Hi,

Here's how I did it.  Names in [] need to be changed to something useful for you.  I also use and recommend TortoiseSVN for the Windows client side.

Good luck,

Conrad.
----

** Download RPMs to /tmp directory
   apache-libapr-2.0.48-0.1.i386.rpm
   neon-0.24.7-1.i386.rpm
   subversion-1.1.1-1.rh7x.i386.rpm
   subversion-server-1.1.1-1.rh7x.i386.rpm

** Install
   rpm --nodeps -Uvh /tmp/*.rpm
   
** Create a repository
   svnadmin create /path/to/repos
      eg. svnadmin create /home/e-smith/files/ibays/[IBAYNAME]/files/Repository

** Setup the access and authentication
   Edit <repository>/conf/svnserve.conf
      eg.
         [general]
         anon-access = write          - allows access without password
         auth-access = write
         password-db = passwd
         realm = [REALM_NAME]
      Edit password file (eg. <repository>/conf/passwd)   
         eg.
            [users]
            username = password

** Confirm the repository exists
   Use TortoiseSVN RepoBrowser to confirm the repository address
      eg.
         svn://server.local/Repository
         
** Import files (optional - can use TortoiseSVN for this)
   Create directories
      mkdir <projectroot>/branches
      mkdir <projectroot>/tags
      mkdir <projectroot>/trunk
   
   Copy initial files
      cp -R <projectfiles> <projectroot>/trunk
         eg. cp -R    
      
   Import
      svn import <filesroot> file://<repository> -m "Initial import"

   (optional) Remove initial files (if they're not needed)
      rm -rf <projectroot>/*
      

** Start the server
   svnserve -d -r /path/to/repos
      eg.   svnserve -d -r /home/e-smith/files/ibays/[IBAYNBAME]/files/Clients/
   
** References
   [1] Subversion manual G:\Operations\Technical\Server\Packages\Subversion\SubversionManual.pdf
   [2] http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch03s02.html

manubarnum

Subversion on SME, can it be done?
« Reply #9 on: February 16, 2006, 03:31:18 PM »
Hi,
Perhaps, you must first install
db4-4.0.14-0.4.i386.rpm...
But with --nodeps option, it's not really necessary.
bye

Offline mhr

  • **
  • 24
  • +0/-0
Re: Install Subversion server
« Reply #10 on: February 21, 2006, 01:01:49 PM »
Quote from: "ss_voip"
$ rpm --nodeps -Uvh /tmp/*.rpm


Try
Code: [Select]
rpm -Uvh --nodeps /tmp/*.rpm
instead.

BTW: the one stop address for downloading those files (had to search a bit): http://summersoft.fay.ar.us/pub/subversion/latest/redhat-7.x/bin/
...