Subversion on Server Core

5/7/2008 8:40:05 PM

Technologies

Having set up Subversion on Windows 2000, 2003, and XP machines without a hitch, I'm happy to report that setting up Subversion on Windows Server 2008 Server Core is also easy!

One of the virtual machines that I set up for my home development environment was a server core machine dedicated to source control. I named it DEV-SOURCE. After looking at a few other source control solutions, specifically git and svk, I decided that subversion was all I need at this time and and would play really nice with my windows environment.

Quick Subversion Setup

I download and copy the svn setup file onto my DEV-SOURCE machine then run the install and complete the wizard. I used all the default settings except I unchecked the desktop and quick launch icons.

C:\Users\Administrator>cd installs
 
C:\Users\Administrator\Installs>svn-1.4.6-setup.exe

Once completed subversion is installed at C:\Program Files (x86)\Subversion.

To make using subversion easier I set it on the PATH using the setx tool. You need to log out and log back in so that the PATH environment variable is updated.

c:\Users\Administrator>setx PATH "%PATH%;C:\Program Files (x86)\Subversion\bin"
 
SUCCESS: Specified value was saved.
c:\Users\Administrator>shutdown /l

Creating the source code repository can be done with the svnadmin create command. I then change to the new repository to make sure all went well.

C:\Users\Administrator>svnadmin create c:\svn_repository
 
C:\Users\Administrator>cd c:\svn_repository
 
c:\svn_repository>dir
 
 Directory of c:\svn_repository
 
05/01/2008  04:32 PM    <DIR>          .
05/01/2008  04:32 PM    <DIR>          ..
05/01/2008  04:32 PM    <DIR>          conf
05/01/2008  04:32 PM    <DIR>          dav
05/01/2008  04:32 PM    <DIR>          db
05/01/2008  04:32 PM                 2 format
05/01/2008  04:32 PM    <DIR>          hooks
05/01/2008  04:32 PM    <DIR>          locks
05/01/2008  04:32 PM               234 README.txt
               2 File(s)            236 bytes
              7 Dir(s)  132,327,505,920 bytes free

To configure subversion I set the authorization and passwords as follows:

c:\svn_repository>notepad conf\svnserve.conf
 
Add these lines to the bottom:
anon-access = none
auth-access = write
password-db = passwd
 
c:\svn_repository>notepad conf\passwd
Add your user name and password:
evan = *****

Then I create the subversion service and start it.

c:\Users\Administrator>sc create svnserver binpath= "C:\Program Files (x86)\Subversion\bin\svnserv
e.exe --service -r c:\svn_repository" DisplayName= "Subversion" depend= tcpip start= auto
[SC] CreateService SUCCESS
 
c:\Users\Administrator>net start svnserver
The Subversion service is starting.
The Subversion service was started successfully.

Finally you will need to open up the subversion port 3690 in windows firewall for remote access.

c:\Users\Administrator>netsh advfirewall firewall add rule name="Subversion" dir=in action=allow
protocol=TCP localport=3690
Ok.

To test this out download and install tortoise svn on your client machine. Right click in a directory and go to TortoiseSVN -> Repo-browser. Connect to the server in my case DEV-SOURCE and make sure you can create a few folders. Happy coding!

subversion repo browser created folders

Comments

Ross

Ross

http://www.counterp.com
7/16/2009 5:31:24 AM

Nice one Evan, really useful to know its possible! You'll even be forgiven for that wild hair of yours...just kidding.

Thanks,

Ross

Dustin Frost

Dustin Frost

7/31/2009 4:34:49 PM

Evan,

I read through your documentation. I cannot find the svn-1.4.6-setup.exe on the Internet. I looked over the CollabNet, Tigris, SlikSVN, and VisualSVN sites with no luck. Where do you recommend I find the Subversion setup file? I'm running Windows Server 2008 x64.

Dustin Frost

Dustin Frost

7/31/2009 5:07:22 PM

Evan,

I found the file (google.com svn-1.4.6-setup.exe) and followed your instructions and installed the subversion repository on our Windows Server 2008 x64 server. Ultimately our goal is to be-able to connect to my repository over the Internet securely. I have downloaded and instaled the tortoise svn and went into the repo browser. I've typed in our server name: www.ourservername.com/svn_repository but we get an error OPTIONS of 'www.ourservername.com/svn_repository could not connect to server (www.ourservername.com) Do you have any advice on how to expose the Subversion Repository to the Internet?

Best,

Dustin Frost

yopert

yopert

9/9/2009 9:30:07 AM

I like to spend much time in the Internet, but, unfortunately not often find something worthy and interesting to read. I liked the way you covered the topic and depth with which you explain these important things.

I'd like to recommend my torrents search engine torrents.rapid4me.com . Hope you will like it.

Jan

Jan

10/12/2009 5:24:31 PM

Thanks to you I came a long way, but not to the end. Luckily I found it myself and feel I must share this. I use a more recent version (1.6.5) and it didn't work.

telnet localhost 3690

did work, but the same from another computer only gave timeouts. nmap showed the server wasn't listening.

netstat -a

showed that only :: listened on 3690. So I added

--listen-host 0.0.0.0

to the svnserve parameters and this made it al work.

http://www.europepokerplayer.com/

http://www.europepokerplayer.com/

http://www.europepokerplayer.com/
12/31/2009 5:00:24 AM

You have enabled SELinux, the chcon command changes the context of the files. If you don't understand SELinux I would suggest you turn it off, SELinux is a very complex role based security system.

earthStrapped

earthStrapped

1/17/2010 1:06:18 PM

This worked great! I didn't have success w/ 1.6.5, but I didn't really understand what Jan was saying. 1.4.6 worked great just as described.

As far as accessing over the internet [Dustin Frost], I wouldn't think this would be difficult. Try forwarding port 3690 on your router to the IP address of your core server machine.

David

David

http://earth4energyweb.co.cc/
2/12/2010 3:23:45 AM

Yes, I know that is so easy, at first I thought damn I cant do this stuff, but now it seems how the hell didnt I figure it out at the first place.

Beat

Beat

5/17/2010 9:13:56 AM

Jans hint about --listen-host 0.0.0.0 was essential to me. I searched several hours for a reason, why the new W2k8 x64 refused connection from all my clients.

Thanks a lot!

Online player

Online player

http://www.pokergameplus.com/
7/6/2010 3:01:06 PM

It is a question of dedicated server core machine. Based on some source control utilities like git and svk, subversion is a good solution within a windows environment.

camellialan

camellialan

7/9/2010 7:10:29 PM

Aw, it was a top quality content. Actually I would like to write like this as well - taking time and real energy to bring about an excellent post... however what can I say... I procrastinate an awful lot and by no means appear to get things completed...

simulationassuranceauto.org

internet marketing companies

internet marketing companies

http://www.imsoftwaredevelopment.com
7/14/2010 1:25:58 PM

I always like your blog post because you always comes with different ideas and information. I always shared your site post with my friends. Keep posting and i will follow you..

internet marketing companies

internet marketing companies

http://www.imsoftwaredevelopment.com
7/14/2010 1:26:53 PM

I always like your blog post because you always comes with different ideas and information. I always shared your site post with my friends. Keep posting and i will follow you..

Link Building

Link Building

http://www.micrositez.co.uk/link-building-packages.html
7/22/2010 6:39:55 AM

I cannot find the svn-1.4.6-setup.exe on the Internet. I looked over the CollabNet, Tigris, SlikSVN, and VisualSVN sites with no luck. Where do you recommend I find the Subversion setup file? I'm running Windows Server 2008 x64.

Corsa leasing

Corsa leasing

http://www.leden.co.uk/
7/24/2010 9:01:12 AM

the chcon command changes the context of the files. If you don't understand SELinux I would suggest you turn it off, SELinux is a very complex role based security system

cheap hosting

cheap hosting

http://www.cpwebhosting.com/
7/25/2010 2:08:00 PM

your blog post because you always comes with different ideas and information. I always shared your site post with my friends. Keep posting and i will follow you..

Best SEO

Best SEO

http://www.bestseoservicesindia.com/
7/28/2010 12:00:15 PM

I liked the way you covered the topic and depth with which you explain these important things.

cheap iphone

cheap iphone

http://www.cheapiphone.us
7/29/2010 4:55:54 PM

Cool post

link building service

link building service

http://www.google-seo-top.com
7/30/2010 2:55:06 AM

you always comes with different ideas and information. I always shared your site post with my friends. Keep posting and i will follow you..

Nicolus Cage

Nicolus Cage

7/30/2010 3:56:29 AM

I was very pleased to find this site. This is an intelligent and well written post, you must have putted fair amount of research into writing this. www.golfhelptips.com/

diamond rings

diamond rings

http://www.royaldesignonline.com/
8/2/2010 12:36:12 AM

This is top quality content. Actually I would like to share this post with my friends.

los angeles seo company

los angeles seo company

http://www.stickywebmedia.com
8/5/2010 8:44:28 AM

I cannot find the svn-1.4.6-setup.exe on the Internet. I looked over the CollabNet, Tigris, SlikSVN, and VisualSVN sites with no luck. Where do you recommend

Moroccan furniture

Moroccan furniture

http://www.moroccan-furniture-decor.com
8/12/2010 10:09:24 PM

I am very happy to read this blog. Have a nice day! Keep up the good job.

I cannot find the svn-1.4.6-setup.exe on the Internet. I looked over the CollabNet, Tigris, SlikSVN, and VisualSVN sites with no luck.

how to get pregnant

how to get pregnant

http://get-pregnant-fast.net
8/16/2010 3:43:16 AM

Thanks for sharing.

rjs

rjs

8/16/2010 10:35:09 AM

I liked the way you covered the topic and depth with which you explain these important things.

search marketing services

travel agents

travel agents

http://libertytravel.com
8/16/2010 11:03:19 AM

Th4t be an epic da shizzi4 post, th4nkie 4it & in da futures we'll be seeing more of it

discount cruises

discount cruises

http://discountcruises.com
8/18/2010 12:05:28 PM

gfsdflsk45 fsdklfjksl5 fsklfjd5 pfoisdf5

Its great resource. i was finding that type inf and now i get it.thanks for this...

coach outlet

coach outlet

http://www.coachshandbags.com
8/30/2010 6:17:04 AM

Its great resource. i was finding that type inf and now i get it.thanks for

Payday loans

Payday loans

http://www.paydayloans.net/loan-by-city/California
8/30/2010 11:13:56 PM

Its great resource.

i was finding that type inf a

Add Comment