Steps are as follows.
1. Open terminal and type following command.
sudo apt-get install cvs
2. Install the CVS server:
sudo apt-get install cvsd
3. After you install cvs, you should install xinetd to start/stop the cvs server. At the prompt, enter the following command to install xinetd: