Subversion on Server Core
5/7/2008 8:40:05 PMTechnologies
- Windows Server 2008 x64
- Windows Server Core x64
- Subversion 1.4.6
- TortoiseSVN 1.4.8
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!
Comments
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
7/31/2009 4:34:49 PMEvan,
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
7/31/2009 5:07:22 PMEvan,
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
9/9/2009 9:30:07 AMI 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
10/12/2009 5:24:31 PMThanks 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.
earthStrapped
1/17/2010 1:06:18 PMThis 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.
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
5/17/2010 9:13:56 AMJans 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!
Useful information shared..I am very happy to read this article..Thanks for giving us nice info. Fantastic walk-through. I appreciate this post.
Thank you for such a fantastic blog. Where else could anyone get that kind of info written in such a perfect way? I have a presentation that I am presently working on, and I have been on the look out for such information.
Great article ...Thanks for your great information, the contents are quiet interesting.I will be waiting for your next post.
I love it when things get improved, thanks for putting up a great guide. Hope it will help me out in my future projects
This is highly informatics, crisp and clear. I think that Everything has been described in systematic manner so that reader could get maximum information and learn many things
Cool post ! Many thanks for, posting on my blog man. I shall message you all over again! I didnt know that.
This is a great article tackling some of the most difficult issues we have to face in the work place.
Adapting is one of the main things I think is important and so is tackling hard work head on and not waiting
Excellent post. I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work.
That was an excellent blog. You made some exceptional points and I am thankful for your insight! Thanks Again
New york term life insurance quote
http://www.lifeinsurancematters.org/life-insurance-by-states/term-life-insurance-new-york/1/20/2012 6:37:04 AM
It is in point of fact a nice and useful piece of information. I'm satisfied that you simply shared this useful information with us. Please stay us informed like this. Thanks for sharing.
This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It’s the old what goes around comes around routine. Big thanks for the useful info......
High risk life insurance
http://www.everydaylifeinsurance.org/high-risk-life-insurance1/23/2012 4:56:32 PM
Wish I had found this blog before. The advices in this post are very helpful and I surely will read the other posts of this series too. Thank you for posting this.
Useful information shared…I am very happy to read this article…Thanks for giving us nice info. Fantastic walk-through. I appreciate this post.
Super job ! Your internet site has provided me all the strategies I expected .
Best term life insurance
http://www.everydaylifeinsurance.org/best-life-insurance1/24/2012 3:43:55 PM
I appreciate, cause I found exactly what I was looking for. You have ended my 4 day long hunt! God Bless you man. Have a great day. Bye!!
Life insurance for seniors
http://www.everydaylifeinsurance.org/life-insurance-for-senior-citizens1/24/2012 6:59:53 PM
I am not expert, but I think you just made the best point. You obviously know what you are talking about, and I can really get behind that. Thanks for being so upfront and so honest.
Wow! Thank you! I permanently needed to write on my website something like that. Can I include a fragment of your post to my blog?
I wonder how you got so good. This is really a fascinating blog, lots of stuff that I can get into. One thing I just want to say is that your Blog is so perfect!
Gold Coast Accommodation
http://www.smartescapes.com.au/Gold_Coast_Accommodation/1/25/2012 12:58:48 PM
Hi This one is great and is really a good post. I think it will help me a lot in the related stuff and is very much useful for me. Very well written I appreciate & must say good job..
Sunshine Coast Accommodation
http://www.smartescapes.com.au/Sunshine_Coast_Accommodation/1/25/2012 3:21:21 PM
I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day!
Great work! This is the type of info that should be shared around the web. Shame on the search engines for not positioning this post higher! Come on over and visit my web site . Thanks =)
Wow!I really loved reading your blog. It was very well written and simple to understand. Unlike additional blogs I have read.
I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day!
High risk life insurance
http://www.lifeinsurancematters.org/high-risk-life-insurance1/31/2012 9:15:10 AM
Interesting share, excellent understanding. Your blog is nice! I’m pleased through the information, people who want to know more on this topic are thankful to you.
I am glad for writing to let you understand of the fantastic experience my princess experienced browsing the blog. She learned plenty of things, which included how it is like to have an ideal teaching character to have many others effortlessly master selected grueling subject areas. You undoubtedly exceeded her expected results. Many thanks for distributing such great, trustworthy, educational and in addition unique guidance on your topic to Lizeth.
Likely to commence a business venture around the refers to disclosing your products and so programs not just to individuals near you, remember, though , to several potential prospects a lot more via the www often. earn money.
Tadalafil online
http://www.westcoastdrugs.net/generic-medicine/Tadalafil/283.html2/1/2012 5:20:22 AM
I believe this blog post is one of the most informative thing not only for the technique learner but also for necessary for all stage people.
Port Douglas apartments
http://www.whitehouseportdouglas.com.au/port-douglas-accommodation.html2/1/2012 6:40:56 AM
This is awesome content. I think I actually understand the concepts you are trying to convey. I agree on several of the points you’ve listed. You make sense to me.
Term life insurance prices
http://www.lifeinsurancematters.org/term-life-insurance-rates2/2/2012 5:13:33 AM
Great dude, your effort is so appreciable and what a helping nature you have for online users,till now no one do the dare to share something like this.
buy lortab online
http://www.mycarepharmacy.com/buy_online/hydrocodone/lortab_ucb-9102/2/2012 10:49:55 AM
Wonderful site and I wanted to post a note to let you know, ""Good job""! I’m glad I found this blog. Brilliant and wonderful job ! Your blog site has presented me most of the strategies which I like. Thanks for sharing this.
buy percocet online
http://www.mycarepharmacy.com/buy_online/acetaminophen_oxycodone/percocet2/2/2012 11:02:39 AM
This site is excellent and so is how the subject matter was explained. I also like some of the comments too.Waiting for next post.
Great work! This is the type of info that should be shared around the web. Shame on the search engines for not positioning this post higher! Come on over and visit my web site . Thanks =)
Really i appreciate the effort you made to share the knowledge.The topic here i found was really effective to the topic which i was researching for a long time.
buy curcumin
http://www.vitanherbs.com/supplements/doctor-s-best-curcumin-c3-complex-w-bioperiner-1000mg-120t.html2/2/2012 11:54:42 PM
Curcumin's anti-inflammatory properties have been known in Chinese and Ayurvedic Medicines for thousands of years. It is the active ingredient of turmeric, which is a component of the curry preparations used daily in pakistan and other South Asian cuisines.
I think more people need to read blogs like this. Its so important to know how to construct a great blog to get people interested and you’ve done just that. The content is great, the videos are perfect for what you’re trying to say. Awesome, man.
I’m satisfied by the way you brought out ideas. Thanks for sharing.