I have a couple of personal projects started that need to have a source control repository where they can be sure and accessed from everywhere. The original idea was Source Safe, but if any of you tried before to set it up in a remote internet server and access to it through the web then you must understand why I started to look for a better solution
I found Subversion, a brand new source code control based on the same principles as CVS and started as a replacement for the mess on the last mentioned. Subversion was open-source, free and has windows ports. It also have a large community dedicated to its improvement and tool development.
So let's start with this short tutorial on how I started to use Subversion as the code repository for my personal projects and how not to rely on Source Safe for internet based repositories.
1. First, we will need to download the required software to install Subversion, so let's start:
- Download the latest Subversion Win3 binaries with Windows Installer
- Download TortoiseSVN, a Subversion Administration interface that integrates with Windows Explorer as a Shell Extension.
- Download RapidSVN, a Subversion Client application that I prefer to use in client computers instead of TortoiseSVN, although TortoiseSVN also works perfectly.
- Download SVNService, a tool that allows installing Subversion Server daemon as a Windows Service.
2. Run the Subversion installer on the selected server to hold the code repository. This should be as smooth as double-click on the MSI file, so no more attention to pay here.
3. Create a folder in your file system where all the Subversion projects will be stored. This is not really needed, because each project can be in each own folder, but I prefer to have one single folder where the entire repository resides. I created a C:\SvnRepo folder to store my project database.
4. When installation finish, you should start the Subversion Server. This is done by starting the bin\svnserve.exe service, but it’s an ugly way to do it because it creates a command window that you have to minimize; and it would be running only when you are logged into that machine. The best way to accomplish this task is by installing it as a Windows Service with the help of SVNService: uncompress the file you downloaded into the Subversion bin folder and run SVNService -install -d -r c:\SvnRepo in the command window to install the service with the specified parameters (be sure to specify the right path to the folder where you want to create your projects)
5. Start the SVNService from your Windows Services Snap-In and set it to Automatic start-up. This way it would be started every time the server is restarted.
6. Start the installation process of TortoiseSVN on the same server where Subversion is installed. This will allow you to administer your Subversion server, but have in mind that should restart your server prior to use the TortoiseSVN shell-extension to manage Subversion.
7. Go to the Subversión Repository folder you created to store your projects (c:\SvnRepo in this guide) and create a folder to store a Test project. Name the folder TestSubversion. Using the windows explorer in the Subversion server, right-click in the folder you have just created, expand the TortoiseSVN menu and select the ‘Create Repository here’ option. This added a new code repository to Subversion.
8. Try to connect from the Subversion server to the code repository you have just created. Right-click in any place within the windows explorer interface, expand the TortoiseSVN menu and select the ‘Repo-Browser’ option. In the dialog window that appears enter the URI to access your Subversion repository, svn://localhost/TestSubversion in this case. Take in mind that svn:// is the prefix for Subversion URIs, localhost can be replaced by any URL that points to the IP of the server where Subversion is installed and finally, the TestSubversion states for the repository where you want to connect.
NOTE: If your are firewalled, or trying to access from outside the server where Subversion is installed, have in mind that your proxy should allow access to the port 3690
9. You can perform the normal source control operations: view, delete, add, modify, check-out, check-in, etc… To add full projects it’s easier to Import the full project using the Import option from the TortoiseSVN menu.
And if everything worked from within your Subversion server, test it from another computer on the same network, or over the Internet. But you sure have noticed that everything is unsecured yet… So let’s start to secure the code repository:
1. Go to the repository folder you created (in our case ) and open the conf folder. There you should have a svnserve.conf that defines permissions for accessing the Subversion server. This file is quite simple:
[general]
anon-access = none ## Can be none, read, write
auth-access = write ## Can be none, read, write
password-db = passwd ## Filename of users store
realm = TestProject
Now we should create a passwd file to store the usernames and password used to control access to the repository. This file contains a [users] section header and then a single user for each line in the form of USERNAME = PASSWORD, where both username and password are case sensitive:
[users]
Miguel = myPassword
In a couple of days I’ll prepare another article on how to integrated and use Subversion as the SCC Provider with Visual Studio .NET 2003. In the meantime you can find more information on working and administering Subversion by consulting the O’Really Version Control with Subversion book, which is freely available to download.
posted on Friday, January 21, 2005 1:35 PM
Feedback
2/20/2005 6:48 AM |
Letzte Nacht habe ich mir hier <a href="http://www.edgewall.com/trac/">Trac</a> installiert, um ein paar private Software-Projekte zu verwalten. Im Prinzip ist Trac ein erweitertes Wiki mit Issue-Tracking und <a href="http://subversion.tigris.org">Subvers
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
4/19/2005 12:29 AM |
Excellent info, thanks!
# Subversion Up and Running, Thanks To Miguel Jimenez
5/3/2005 3:21 PM |
Subversion Up and Running, Thanks To Miguel Jimenez
5/10/2005 3:33 AM |
Setting up subversion
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
5/17/2005 6:24 PM |
An excellent article - where's the second part you promised?
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
5/31/2005 1:14 PM |
Subversion is running, Thanks for info!
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/9/2005 11:14 PM |
Hi Miguel,
I have followed the steps that you elaborated in this article, but I have a error when I open the "Repository Browser". It says the following:
Can't connect to localhost': No connection could be made because the target machine actively refused it.
7/6/2005 11:37 PM |
Hej Miguel! Have you managed to get SSH tunneling support running? I cannot find anyone who has... and I really need it!
2/8/2006 7:26 AM |
After having an online meeting with by boss, we agreed upon to changed
our development model and be...
2/14/2006 10:08 AM |
I've been wanting to setup subversion for PostXING for a while so I can have more
control...
2/14/2006 10:08 AM |
I've been wanting to setup subversion for PostXING for a while so I can have more
control...
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
2/25/2006 1:14 AM |
How about setting up groups? I would like to set up a group (Builders), and all Read access to the Tag folder for everyone and Write access for Builders.
Any ideas?
Mike
# PostXING 2.0 and Subversion
3/6/2006 1:08 PM |
I got PostXING
2.0 working. The subversion repository works beautifully. For a publically
available...
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
9/11/2006 2:24 PM |
Can anybody tell me please what is complete difference beetween SVN and CVS please. What are the advantages of the SNV?
# plz send me link from where I can download TortoiseSVN server for window 2000 server
11/2/2006 7:17 AM |
hi,
I am unable to findout TortoiseSVN server.
plz let me know where from I can get it.
reply me
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
12/11/2006 2:51 PM |
Good site
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
12/11/2006 3:54 PM |
Goodk
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
1/18/2007 1:56 AM |
hi,
I am unable to findout TortoiseSVN server.
plz let me know where from I can get it.
reply me
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
3/20/2007 10:37 AM |
http://www.timides.info
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
4/11/2007 11:47 AM |
I think these blog is really useful for new comers and Excellent resource list. It?s a very interesting Blog and simple answer of many questions. Keep up the good work! Thanks it helps me a lot…
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
5/8/2007 4:58 AM |
Hello
http://parpills.com
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/4/2007 3:32 PM |
http://0heatlh.com
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
11/18/2007 8:41 PM |
thxx
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
12/8/2007 1:55 PM |
We offer the largest collection of polyphonic ringtones, monophonic ringtones, mobile videos, color wallpapers, color screensavers, real sounds.
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
12/19/2007 9:09 PM |
If you are looking for the replica watch and information about it, you came to the right place.
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
12/21/2007 11:14 PM |
Nice info. Thanks
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
1/15/2008 3:50 PM |
http://kasper.by
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
1/15/2008 3:51 PM |
http://kasper.by
1/18/2008 9:25 PM |
Very well written, thanks
1/18/2008 9:26 PM |
Very well written, thanks
# re: Subversion Part 1 -
1/18/2008 10:11 PM |
nice one. thanks
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
1/18/2008 10:15 PM |
I love this blog. Great work. thanks
# re: Subversion Part 1 - I
1/18/2008 10:16 PM |
Subversion Rulez
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
2/8/2008 1:40 PM |
I searched and found this site
<a href="
http://allmuz.com">allmuz.com</a>
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
2/24/2008 9:53 PM |
Useful Thanks
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
3/25/2008 5:21 PM |
Hi, Good One.
http://mp3bravo.com
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
3/30/2008 1:26 PM |
hi,
I am unable to findout TortoiseSVN server.
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
3/31/2008 8:20 AM |
thank's
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
4/1/2008 10:37 AM |
Nice info. Thanks
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/10/2008 11:36 PM |
Nice document.Thanks man..
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/12/2008 7:32 PM |
Good description!
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/16/2008 12:01 PM |
Hi,
I have also written a small guide to install both the server and clients for SVN, using VisualSVN Server and Tortoise SVN client (free packages).
VisualSVN is great because it has a GUI over the subversion base install. So if you are a beginer on CVS and SVN you will have it running in minutes. Also, as it’s based on Subversion you can setup advanced option later.
Please check my page:
http://fabianmejia.blogspot.com/2008/06/open-source-control-version-system.html
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/16/2008 7:54 PM |
doumo_arigatou
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/22/2008 12:57 AM |
Hi,
Thanks for this good blog text..
We miss your text.
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/23/2008 9:26 AM |
Hi,
Thanks for this good blog text..
We miss your tx.
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/27/2008 4:53 AM |
Thanks for this good blog text.. oyuntan hugo oyunlari
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/28/2008 6:41 AM |
Thanks for this good blog text.. oyuntan zeka oyunlari
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/28/2008 10:31 PM |
Thanks for this good blog text.. komik oyunlar
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
6/29/2008 8:13 AM |
Thanks for this good blog text.. bebek oyunlari
# Subversion Up and Running, Thanks To Miguel Jimenez
6/29/2008 1:19 PM |
Subversion Up and Running, Thanks To Miguel Jimenez
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/1/2008 1:13 AM |
Thanks for this good blog text.. oyunvar varmisin yokmusun
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/2/2008 5:43 AM |
Thanks for this good blog text.. hugo oyunlari
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/3/2008 8:30 AM |
Thanks for this good blog text.. kantir
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/7/2008 5:56 AM |
Thanks for this good blog text.. dövüs oyunlari
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/8/2008 7:24 PM |
<a href="
http://oktayustastv.blogspot.com">oktay usta</a>
It is a good site for healt (best food cooking)
I advice everybody
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/10/2008 6:30 AM |
Thanks for this good blog text.. en güzel oyunlar
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/12/2008 3:48 PM |
thank you
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/16/2008 3:47 PM |
thank you...
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/16/2008 6:00 PM |
thank you!!!
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/25/2008 8:17 PM |
very very nice
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/25/2008 9:12 PM |
very very nice
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/26/2008 6:37 AM |
very useful article...
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
7/30/2008 1:12 PM |
Very nice article! Thanks for this!
# re: Upgrading from MCAD to MCPD Web Developer with exam 71-551
7/31/2008 12:00 AM |
very goods, thanks
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
8/13/2008 8:18 PM |
the best professional DVD ripping application for Mac.
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
8/14/2008 4:31 AM |
Thanks, for this information and news it was very useful to me
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
8/14/2008 4:32 AM |
I work for a newspaper and thisis what i need. thanks.
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
8/14/2008 4:32 AM |
Really great web site...Thanks...
# re: Subversion Part 1 - Installing Subversion as your code repository for Windows users
8/14/2008 12:38 PM |
j