Installing SVN Server on Fedora Linux

..contributing to IT in London since 2002..

Installing SVN Server on Fedora Linux

I used Sun Virtual Box before. I’ve just installed Oracle Virtual Box on my old Vista to try Fedora 14. All I had to do was to download x86_64 Network Install CD and go through a minimal installation.

The first hiccup was I needed to eject CD (ISO image) of the virtual machine (VM) when the installer required to reboot the system. Then, I took a snapshot of this minimalistic system, about 1.1GB.

The second hiccup was the network adapter. I could not connect to the Internet. The VM was set up to use NAT by default. I had to change it to bridged. After restarting the VM, I had to run:

And I could connect using putty from my Vista environment.

I prefer to run Subversion with Apache HTTP Server. So;

yum install httpd dependencies

I’m not a vi fan, so I had to install nano to edit configuration files easily:

To install Subversion on Fedora, they say you can run:

Yum checks dependencies and you have to accept to install them as well.

yum install subversion dependencies

Also, to glue the two server (SVN and Apache HTTP) install mod_dav_svn:

yum install mod_dav_svn

I’m sure you will find SVN easy to use, and find many sites explaining how to creating a new repository (or repositories, another debate).

svnadmin create repo

There are many ways to create a layout but I choose to create a directory per project with sub-directories of trunk, branches and tags.

Inside your home directory checkout project1 (still empty directory):

svn checkout project1

Now, let’s share our SVN repository with our team members.

subversion.conf

subversion.conf

For me, main point is to be able to serve SVN repository, so, just define the location and change ownership/permissions on directory for SVN repository.

The system is ready to be used by team members remotely using SVN clients such as TortoiseSVN. On the command line, it is as easy as:

Later, I may write about Subclipse which adds SVN integration to my favourite PHP IDE, Eclipse PDT.

Happy coding!

 

No Comments

Add your comment