Linux [Client Support]
CVS Client (CrossVC/LinCVS) Configure - Linux
Link to download CrossVC / LinCVS Client for Linux and Windows
- For Linux
- wget ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el4/en/i386/dag/RPMS/lincvs-1.4.3-1.2.el4.rf.i386.rpm
- wget ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el4/en/x86_64/dag/RPMS/lincvs-1.4.3-1.2.el4.rf.x86_64.rpm
- For Windows
and download WinCvs2_1_1.zip file.
Configuring CVS Client on Linux
- Installing binary using rpm command.
~]$ rpm -ivh lincvs-1.4.3-1.2.el4.rf.i386.rpm or rpm -ivh lincvs-1.4.3-1.2.el4.rf.x86_64.rpm
depending on the os platfor whether it is 32bit or 64bit os, need to install the binaries.
~]$ sudo rpm -ivh /Softwares/Linux_soft/DVD/cvs/cvsclient/lincvs-1.4.3-1.2.el4.rf.x86_64.rpm
Preparing... ########################################### [100%]
package lincvs-1.4.3-1.2.el4.rf.x86_64 is already installed
- Now login as a usr1 and invoke the typing a command "lincvs".
Usr1~]$ lincvs &
you will be displayed with a lincvs window, as shown below.
Creating a Profile
- Open CVS and got to Menu → Config → Profile.
- Click on Add
- Click on Access and change to Password.
- Now fill other fields, as per your variables, as shown in example in the below picture
Click on ok.
- Go to Menu → Project → Checkout → here you will check whether you will be able to access/browse the modules. Click on Browse modules and enter the password.
Note: This is to test your login is accepted by cvs server.
Enter the password and click ok.
Once the password is accepted correctly, you will not find any error. Now click on cancel and cancel.
- Please Collect Profile Details from you Team lead or IT Admin.
Required Profile details are.
Version Control system: CVS Name : CVSTST User : User name Server : 192.168.11.5 (for local network) use cvs.cvsserver.com instead of 220.127.116.11 (to access from outside office) Repository : ex: /proj1/CVSDATA/cvsrepo (this you can get from Team Lead/IT Admin) Access : password
Importing Data for first time to Repository (Which is done by your Team lead or IT Admin
- First Crate a folder that you want to add in Repository folder with a text file having some data in the folder.
# mkdir Data
# vim readme
This is created by Vasant B A.
For importing of data to CVS Repo.
Kindly do not delte the readme file.
Kindly add one text file with at least minimum data whenever you want to add module/folder in cvsrepo-testdata folder.
😡 (Save and exit)
- Now you can Import the Data folder to CVS Repository with same name or different name. This folder will be the top folder for other folder or files which you will be saving in future
- Now click on either of the highlighted icon. As shown in below picture.
- You will get a Import windows as shown in below picture.
Now enter the required fields. The folder from where you are going to import, make sure importing folder should not be empty. It must have at least one readme.txt or a txt file containing some data, like the information of repository folder created by and created date. Then click on import. Here the vendor tag and Release tag must different, data must not be same. Once the data is imported you will find the below msg in cvs client window.
cmd: cvs -d ":pserver:email@example.com:/Proj1/CVSData/cvsrepo" -r import -I ! -I "RCS" -I "SCCS" -I "CVS" -I "CVS.adm" -I "RCSLOG" -I "cvslog.*" -I "tags" -I "TAGS" -I ".make.state" -I ".nse.depinfo" -I "*~" -I "#*" -I ".#*" -I ",*" -I "_$*" -I "*$" -I "*.old" -I "*.bak" -I "*.BAK" -I "*.orig" -I "*.rej" -I ".del-*" -I "*.a" -I "*.olb" -I "*.o" -I "*.obj" -I "*.so" -I "*.exe" -I "*.Z" -I "*.elc" -I "*.ln" -I "core" -m "First time of Data import to CVS repository folder." "CVStest_Data" CVS_Test_Data CVS_TEST_Data_13_Jan_2011 N cvsrepo/Readme.txt No conflicts created by this import
Checkout data from CVS Repository
- Go to Project → Checkout or click on the highlighted icon, as shown in the below picture.
- Click on Ok as shown in above picture. Now you will be asked to add for work bench.
Adding New folders or files to CVS Module.
- Whenever you create a folder in your working area module please add a readme text file with some data. Without this you can not add/import the new folder to CVS Repository.
- While adding files from non-control tab, if they are non-text files then add as a binary files.
- Login as Local User
[Vasant@ganga ~]$ mkdir cvsworkarea (Here you can give name you required)
[Vasant@ganga ~]$ export CVSROOT=':pserver:Vasant@18.104.22.168:/projdata/sciadminitrepo'
syntax: export CVSROOT=':pserver:<username@ip address>:/<repository path>
[Vasant@ganga cvsworkarea]$ cvs login
Logging in to :pserver:Vasant@22.214.171.124:2401/projdata/sciadminitrepo
[Vasant@ganga cvsworkarea]$ cvs co <module name>
(Module name you can get from Teamlead / Sys admin)
- If every thing went fine you will not get any error. But display a last one line.
cvs checkout: Updating <Module name>