New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Subversion on bubba?

Discuss development on Bubba
Post Reply
Tompa
Posts: 81
Joined: 03 Feb 2007, 12:50

Subversion on bubba?

Post by Tompa »

I'm trying to install subversion on bubba.

Locally everything works fine, but when I try svn://ip:3960/repository I get a connection refused message (I use AnkhSvn on a windows machine).

Has anyone got this up and running?
Tompa
Posts: 81
Joined: 03 Feb 2007, 12:50

Post by Tompa »

For the interested; I got this working now.

I had forseen a conf file that was controlling permissions, a little tweak there and it worked.

I must say, Bubba is just perfect for these kind of tasks!
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi Tompa,

Nice to hear that you solved your problem.

A few tips if you are into using bubba as a server in a development environment.

Install viewcvs available as a debian package to get a nice web based browser to your repository.

If you have MySQL installed on your bubba you could install flyspray, also available in as a debian package ,which is a simple but yet very usable bug tracking system.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Filip
Posts: 30
Joined: 06 Feb 2007, 12:27
Location: Lund, Sweden

Post by Filip »

I'm very interested in getting subversion up running on my Bubba. But I can't make it work...

Maybe you're interested in writing a small guide?
Tompa
Posts: 81
Joined: 03 Feb 2007, 12:50

Post by Tompa »

Sure, I could do that. Give me some time and I will write a small step-by-step on how I did when installing.
Tompa
Posts: 81
Joined: 03 Feb 2007, 12:50

Post by Tompa »

I'm sorry for my late answer, but here goes ;)

When I installed and configured subversion I used a guide somewhere on the net. Unfortunately I cannot find this very guide again, so I will explain the steps as I remember them.

1. Get root access.

2. Make sure you have added a package server like ftp.se.debian.org in the file /etc/apt/sources.list.

3. Run the following command to update the sources:
apt-get update

4. Install subversion:
apt-get install subversion

5. Create a repository where your serverside code-database will be stored.
svnadmin create /home/svn_repository

6. Edit the password file using your favorite editor and add a user and password at the end.
jed /home/svn_repository/conf/passwd

7. Edit the config file so it looks something like this (I've removed the comments). The file is called svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
#auth-db = authz
realm = My repository


8. Now you should (hopefully!) be able to reach the svn-server from a client by using the url svn://bubba/svn_repository

9. There is also a way to set it up in apache so that it can be reached using http:// but I haven't been successful with this. I'm using AnkhSvn (http://ankhsvn.tigris.org) on a windows machine using Visual Studio 2005 without any problems.

Good luck!
HansH
Posts: 2
Joined: 14 Apr 2007, 06:33

Post by HansH »

With subversion you can also use Trac
This way you get a wiki, a ticket system and a very nice browsable filedirectory with history.

You can find it at: http://trac.edgewall.org/
Look at the filedirectory here: http://trac.edgewall.org/browser
DarrenBeck
Posts: 5
Joined: 03 May 2007, 04:02

SVN Performance

Post by DarrenBeck »

Hi all,

What's the performance like when using Bubba as an SVN server? I realise most of the work is shifted to the client when using subversion but has one noticed any issues?

Thanks in advance,

Darren.
petter
Posts: 9
Joined: 20 Oct 2008, 05:13

Permission problems

Post by petter »

Hello, I used the how-to guide to configure SNV on my Bubba Two.
(http://forum.excito.net/viewtopic.php?t=557)

Unfortunetely I get the following permission error when executing the code below:

Code: Select all

bubba:/# mkdir -p test/{trunk,branches,tags}
bubba:/# touch test/trunk/test.txt
bubba:/# svn import test svn://localhost/test --username xxxxx --password yyyyy -m "Initial import"
Adding         test/trunk
Adding         test/trunk/test.txt
Adding         test/branches
Adding         test/tags
svn: Can't create directory '/home/svn/repositories/test/db/transactions/0-1.txn': Permission denied
Any ideas on how to solve this?
DarrenBeck
Posts: 5
Joined: 03 May 2007, 04:02

Post by DarrenBeck »

I assume you have subversion running as the svn user. Have you made any changes to the repository directories as another user (e.g. root)?

Check the ownership of the directories in the repository folder (ls -l). Are they all svn:svn?
petter
Posts: 9
Joined: 20 Oct 2008, 05:13

SVN running!

Post by petter »

Yes, now I have svn running and I'm able to "update" and "commit" from my PC. Nice.

The permission problem earlier occured because I had created some directories as root (not as the svn user). Thank you for the [ls -l] command Darren.


Next step will be trying to make the repositories available over the internet using the http or https protocol instead of svn. I guess this will involve the built in Apache2 server and more configurating...

If anyone has a great guide for this, please let me know.
Post Reply