Mar 5
As promised here is a follow-up to my initial post on getting started with CVS as your source control solution.
This post shows how to setup a CVS repository on a linux server.
Why Linux? A few reasons. Once you start to use source control, it rapidly becomes a central part of your development setup. The source code repository becomes a valuable asset. A valuable asset that you want to protect and ring-fence. For this reason a dedicated server is preferable to a shared solution (although this is also possible). At first you may think this is overkill, but as the repository grows larger, your development team grows, maybe you off-shore some development work.... it will start to look like a smart move. So getting back to why Linux, well assuming you're on a budget (who isn't!) you can take that old PIII machine that nobody wants any more, upgrade the disk drive, load a free download of your favourite Linux distribution (mine is RedHat) and you have a virtually free dedicated CVS server ready to go.
Make it secure.
Its beyond the scope of this article to go into details of securing your linux server, but since this server only has one job to do you can turn off every other protocol/service/port that is not required. Even if this server is not public now, it may be in the future. Worth considering.
Repository Setup
CVS comes as standard with many Linux distributions. Check if it is installed using rpm -q cvs
This should display the release of cvs loaded.
1. Set-up a cvs user on linux with a default group of cvs. All operations on the CVS repository will be under the authority of this user.
2. Login as cvs. Create a directory under the home cvs directory called repository. This will become the CVSROOT and the home of the repository files. Set the permissions on this directory by running chmod 770 /home/cvs/repository
3. Create the repository by running cvs -d /home/cvs/repository init
Thats it! You have a repository!
Separate Users
It is of great benefit to now set-up a linux user for each developer, because then each developer is automatically associated with each change they make to source code as they commit these changes, and a useful history builds up.
If you are using the eclipse IDE you can start to use this immediately with a secure connection through SSH.
Many other CVS client tools exist. In my next post I will discuss the various merits of some of these tools.
This post shows how to setup a CVS repository on a linux server.
Why Linux? A few reasons. Once you start to use source control, it rapidly becomes a central part of your development setup. The source code repository becomes a valuable asset. A valuable asset that you want to protect and ring-fence. For this reason a dedicated server is preferable to a shared solution (although this is also possible). At first you may think this is overkill, but as the repository grows larger, your development team grows, maybe you off-shore some development work.... it will start to look like a smart move. So getting back to why Linux, well assuming you're on a budget (who isn't!) you can take that old PIII machine that nobody wants any more, upgrade the disk drive, load a free download of your favourite Linux distribution (mine is RedHat) and you have a virtually free dedicated CVS server ready to go.
Make it secure.
Its beyond the scope of this article to go into details of securing your linux server, but since this server only has one job to do you can turn off every other protocol/service/port that is not required. Even if this server is not public now, it may be in the future. Worth considering.
Repository Setup
CVS comes as standard with many Linux distributions. Check if it is installed using rpm -q cvs
This should display the release of cvs loaded.
1. Set-up a cvs user on linux with a default group of cvs. All operations on the CVS repository will be under the authority of this user.
2. Login as cvs. Create a directory under the home cvs directory called repository. This will become the CVSROOT and the home of the repository files. Set the permissions on this directory by running chmod 770 /home/cvs/repository
3. Create the repository by running cvs -d /home/cvs/repository init
Thats it! You have a repository!
Separate Users
It is of great benefit to now set-up a linux user for each developer, because then each developer is automatically associated with each change they make to source code as they commit these changes, and a useful history builds up.
If you are using the eclipse IDE you can start to use this immediately with a secure connection through SSH.
Many other CVS client tools exist. In my next post I will discuss the various merits of some of these tools.
Recent Comments