Your Federal Quarterly Tax Payments are due April 15th Get Help Now >>

Hack Attack_ How to set up a personal home Subversion server by chinkshady


									Hack Attack: How to set up a personal home Subversion server                       

                                                                                                  TOP STORIES         MOST POPULAR      CURRENTLY READING


         Hack Attack: How to set up
         a personal home                                        BY ADAM PASH                 AUG 1, 2006 1:30 PM
         Subversion server                                                       Like   28                              TIPS AND DOWNLOADS FOR
                                                                                                                          GETTING THINGS DONE
         by Adam Pash

         Subversion is open source version control         FOLLOW LIFEHACKER
         software used primarily by developers that
         keeps every revision of important,                             456575 likes. Sign Up to see what your
         frequently changing files. However,                            friends like.
                                                                                                                                 ASK LIFEHACKER
         Subversion can be useful for many different                                                                             How Will the New
         purposes, whether you're a web developer or a novelist - especially if you like to work in plain                        Health Care Law Affect Me?
         Think of Subversion as a wiki-like repository for your files. Each time you make a change to a                          Open URLs in
         file or group of files that you're happy with, you can commit those changes to your Subversion                          Chrome for iPhone Instead of
                                                                                                                                 Mobile Safari
         repository. If you don't like where the changes got you, Subversion can compare your current
         version with any previously-committed version and pick out the best of the best so you never                            FRIDAY FUN
         have to worry about finding your way back to a good or working version of a file.                                       How to Sneak Into a Private
         In this first of my two-part Subversion series, I'll show you how to set up and run your own
         Subversion server. Next week, we'll get into the nitty gritty of using Subversion.                                      JOBS
                                                                                                                                 Your Resume Is a Sales Letter
         Please note: You can choose to run Subversion without the server component (Apache)
         and it still works wonders for keeping versioned copies of your files. The only catch is you
         won't be able to access your files from other computers. If you'll only be using it as a                                FOOD
                                                                                                                                 Easily Remove Wine Bottle Foil
         personal repository on one computer, you can skip the steps geared toward Apache (marked
                                                                                                                                 Wrappers by Twisting and
         with an asterisk [*]).                                                                                                  Pulling

         If you're not sure if Subversion is for you, I'd recommend trying it without Apache first.                              GRILLING
         Setting up Subversion by itself is VERY easy, but if you do decide to run the web server in                             Use Lava Rocks to Give Your
         conjunction with Subversion, make sure your computer's properly patched and beefed up on
         security. Oh, it is? Good, let's go!

         Setting up your Subversion server
          1. * Download and install Apache 2.0... - for Windows, you want the Win32 Binary (MSI
             Installer) about half way down the page - you don't want 2.2.... When you're installing
             Apache, you can keep all the defaults unless you know what you're doing and have your
             own good reasons for switching things up.
                                                                3. Download and install Subversion 1.3.2
                                                                   (the svn-1.3.2-setup.exe download).
                                                                   Again, just accept all of the defaults in
                                                                   the setup, making sure that "Install
                                                                   and configure Subversion modules..." is
                                                           4. Download and install TortoiseSVN
             (TortoiseSVN-, an attractive Subversion client for Windows that
             makes dealing with Subversion repositories a breeze via right-click.
          5. * Edit your Apache httpd.conf file at C:\Program Files\Apache Group\Apache2
             \conf\httpd.conf (make a backup first in case something goes awry) to add the
             following lines of code to the end of the file:

                                                                                                                                 MORE STORIES...

1 of 3                                                                                                                                              6/29/2012 11:45 AM
Hack Attack: How to set up a personal home Subversion server               



                  # Configure Subversion repository

                  <Location /svn>
                    ASK LIFEHACKER
                    How Will the New
                  DAV svn Care Law Affect Me?

                  SVNPath "C:\svn"
                     Open URLs in
                     Chrome for iPhone Instead of
                  AuthType Basic
                     Mobile Safari

                     FRIDAY FUN
                  AuthName "Subversion repository"
                      How to Sneak Into a Private
                  AuthUserFile "c:\svn_conf\passwd"
                     Your Resume Is
                  Require valid-usera Sales Letter

                     Easily Remove Wine Bottle Foil
             Save andWrappers by Twisting and then
                      close the httpd.conf file,           Hack Attack: How to set up a personal
             restart Apache.                               home Subversion server
          6. Create two folders on your C:\Your -
                      Use Lava Rocks to Give
             one called svn and another called svn_conf (svn_conf is not necessary if you're using
             Subversion without Apache).
          7. * Password protect your Subversion repository by firing up the command line and typing
             the following commands:

                  cd "C:\Program Files\Apache Group\Apache2\bin"

                  htpasswd -c C:\svn_conf\passwd adam

             substituting your name for adam.

         Create your first repository

                                                           The last thing we're going to do this week is
                                                           create our repository. Go to your C:\ drive,
                                                           right-click the svn folder and select
                                                           TortoiseSVN -> Create repository here...
                                                           command. If all goes well, TortoiseSVN
                                                           should ask you what type of repository you'd
                                                           like to create. Select Native filesystem
         (FSFS) and click OK. You will get a message telling you that "The Repository was successfully
         created." Congrats!

                      MORE STORIES...                      Finally, let's import the directory of files

2 of 3                                                                                                                                   6/29/2012 11:45 AM
Hack Attack: How to set up a personal home Subversion server                                

                                                                      that you want to keep under version control
                                                                      into your newly-minted repository.
          MOST POPULAR         CURRENTLY READING                      Right-click on your to-be-controlled folder
                                                                      and select TortoiseSVN -> Import.... You
                                                                      need to give TortoiseSVN the directory of
                                                                      your repository, so browse for C:\svn.
         Click OK and all of the files under your chosen directory will be imported into your Subversion

                 set up Subversion with DONE
         If youGETTING THINGS Apache, you can test it out by directing your browser to
                                and entering your username and password. If you're not using Apache,
         you can verify that everything worked by right-clicking on a new folder and checking out your
         files from the repository (right-click -> SVN Checkout...). Just direct TortoiseSVN to the

         We've really just skimmed the surface of what you can do with Subversion, so if you still aren't
                       ASK LIFEHACKER
                       How Will the is, be
         quite sure what the point New sure to tune in next week when I'll demonstrate the glory of
                       Health Care the meantime,
         Subversion in action. In Law Affect Me? you might want to play around with your repository,
         checking out and committing files, to get familiar with its most basic functions.
                       Open URLs in
         I'd love to hear how Lifehacker readers use version control (or how they'd like to use it), so let
                       Chrome for iPhone
         us know in the comments or atInstead of
                                         tips at
                      Mobile Safari
         Adam Pash is an associate editor for Lifehacker who takes comfort in the knowledge that
                      FRIDAY FUN
                           back to a file from
         he can always go to Sneak Into a Privatetwo weeks ago if he really messes something up. His
         special feature Hack Attack appears every Tuesday on Lifehacker. Subscribe to the Hack
         Attack RSS feed to get new installments in your newsreader.
                    Your Resume Is a Sales Letter
         Contact Adam Pash:         EMAIL THE AUTHOR                        COMMENT            FACEBOOK            TWITTER

                      Easily Remove Be Making A
           Could Someone ActuallyWine Bottle FoilDecent Heist Game? KOTAKU
                      Wrappers by Twisting and
           The Limit KOTAKU
           Is The Best Way To Play Games The Subversive Way? KOTAKU
          DISCUSSIONS Lava Rocks to Give Your
                   Use                                             FEATURED          ALL     START A NEW DISCUSSION

                      About   Help   Jobs   Legal   Privacy   Permissions   Advertising   Subscribe   Send a tip

                       MORE STORIES...

3 of 3                                                                                                                                                    6/29/2012 11:45 AM

To top