This article demonstrates how to configure the Concurrent Versions System (also known as CVS). This process involves setting up repositories on the server, and configuring clients to access them.
The Concurrent Versions System, more commonly known simply as CVS, is a distributed version control system that enables you to track multiple revisions of files and directories. It is installed on all A2 Hosting shared servers. Although its popularity has declined in recent years with the release of newer version control systems like Git and Subversion, it is still used for some projects.
This article only discusses how to configure CVS to work with repositories hosted on A2 Hosting servers. It does not explain all of the features or how to use CVS.
To create a CVS repository, all you have to do is log in to your A2 Hosting account using SSH, and then type the following command:
cvs -d /home/username/repository init
Replace username with your A2 Hosting account username, and replace repository with the name of the directory where you want to create the repository (if the directory does not already exist, the cvs init command creates it).
You know how to create an CVS repository, but right now you can only check out and import files directly on the server. Clearly, you will want to set up a CVS client so you can work with repositories from another computer.
The exact steps to do this depend on the client computer's operating system. Follow the appropriate procedures below for your computer's operating system.
TortoiseCVS is a Microsoft Windows-based client for working with CVS projects. The following procedure describes how to set up TortoiseCVS to access repositories on an A2 Hosting server:
You are now ready to connect to a remote CVS repository on an A2 Hosting server. To do this, follow these steps:
Follow these procedures to configure a CVS client if the computer is running Mac OS X or a Linux-based operating system.
To complete steps 1 and 2, follow the step-by-step procedures described in this article. After you complete these procedures, you will have a fully-functioning SSH client installation that authenticates to the A2 Hosting server using keys. You do not have to type a password to access your account on the server.
The cvs command line client is often the quickest and easiest way to interact with CVS, although there are GUI-based clients as well. In either case, however, clients use SSH to access CVS. For security reasons, A2 Hosting uses custom port 7822 for SSH connections instead of the default port 22. Therefore, whichever CVS client you use, you must configure it to use port 7822 for SSH.
To do this, follow these steps:
Host example.com Port 7822
You can now use SSH to access a CVS repository hosted on your A2 Hosting account. For example, the following command demonstrates how to check out a project from a CVS repository on an A2 Hosting server.
cvs -d :ext:[email protected]:/home/username/repository checkout project
Replace both instances of username with your A2 Hosting account username, example.com with your domain name, repository with the path to the repository, and project with the name of the project.
For more information about CVS, please visit https://savannah.nongnu.org/projects/cvs.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.