|
|
||
Jan Haderka's BlogApril 2008 ArchivesWorld Edition SVNPosted by rah003 on April 16, 2008 at 01:09 PM | Permalink | Comments (0)Few months ago drive in my notebook stopped working and I lost some data which I was very sorry about. That's when I started to look into some backup solution. Then recently I found this little (physical size wise) disk - WD MyBook World Edition 2TB. Since memory of having lost my data is still fresh in my mind I configured this drive to run in RAID-1 mode even though it meant reducing size to 1TB only. "1TB only", indeed, reminds me of beginning of 90-ies when I got desktop with super king size HDD of 80MB. Anyway, after discovering there was a linux running inside of box, and finding out how to enable ssh (Thank you Martin) it was just a matter of time, to try to install svn server on this neat box. Installing svn was not as simple as I imagined originally, but was not too complex either, so if anyone gets box with same linux (should be any of the World Edition drives, no matter of what size) what's written below can save you stumbling across same problems I had and should help you to make installation smooth and simple. If you don't know your Linux, you might screw up your World Edition Hard Drive big time. If you proceed it is at your own risk, so proceed with caution! Get started - Apache2Login to your box using ssh as whatever user you have created during installation of your box, then execute following to get your apache installed in default location (/usr/local/apache2):
Installation itself takes quite while so don't be nervous. I would be very happy if WD offered boxes with more powerful version of little ARM brain it uses, but true is that what they put inside is enough to do the job. Be there a light - NeonAfter successful installation of Apache2 you are ready to get started with subversion
You will also need subversion dependencies (goes into same installation folder as subversion itself
Now we need to get rid of apr since we will use one that came with apache2. This is important as using different versions would result in seq faults later
Build neon separately. Why? First it is recommended in Subversion installation guide and second I could not make it work when trying to build it together with subversion itself
Big Finale - SubversionNow we have all mandatory prerequisites ready and can start building subversion itself
Before running make install you need to update ldconfig so create (or update if you have it already) /etc/ld.so.conf and add following lines
afterward update ld cache by executing
and finally install subversion
Post MortemNow having successfuly installed apache and subversion all that's left is to configure it. Add following to the end of /usr/local/apache2/conf/httpd.conf
Another configuration steps you should perform are
Now we have configured everything we need to make sure that the configuration is also valid. To do so execute:
With all above done only remaining step is to start your apache
Now you can create as many svn repositories under /shares/internal/SVN as you want. To do so just
each of such the created repositories will be accessible on http://ip_of_your_box:78/svn/NewRepoName Phenix - Come to life on restartOptional part is to have svn to start automatically on restart of your box. To enable this just
And add following contentto the file:
after saving the file, don't forget to make it executable by running
That's it. It is that simple. It took me few hours to put the whole setup together and to make it work, so hopefully it will save time to someone else. I should also probably mention that installation was not done on a clean box, but I had already some software installed because of previous installation of Firefly described here. Notably I installed sqlite3 which I've noticed subversion picked up during configuration and installation, but you should be still OK even without it. Good Luck! | ||
|
|