AIX does not come with CVS (client and server) installed. But it is quite easy to install them and transform our AIX server also to CVS server.
IBM AIX Toolbox and rpm
It is a set of GNU Open Source tools compiled for AIX from source files. Ready to use packages are available here: IBM AIX Toolbox download information. Before downloading read carefully licensing and installation instructions. Those packages are installed as RPM packages so make sure that your AIX has rpm already installed. Just run:
-bash-3.2# rpm --versionIf rpm is not installed then install it first.
RPM version 3.0.5
-bash-3.2#
Download
Download two packages: zlib and csv. Rpm files for these packages should be like: zlib-1.2.3-4.aix5.2.ppc.rpm and cvs-1.11.17-3.aix5.1.ppc.rpm
Install
As root user:
rpm -i zlib-1.2.3-4.aix5.2.ppc.rpmVerify that cvs is installed:
rpm -i cvs-1.11.17-3.aix5.1.ppc.rpm
-bash-3.2# cvs -versionAdd user cvs
Concurrent Versions System (CVS) 1.11.17 (client/server)
Copyright (c) 1989-2004 Brian Berliner, david d `zoo' zuhn,
Jeff Polk, and other authors
CVS may be copied only under the terms of the GNU General Public License,
a copy of which can be found with the CVS distribution kit.
Specify the --help option for further information about CVS
Add user cvs who will be the owner of cvs repositories.
useradd -m cvsCheck the service
As a root user verify that the file /etc/services contains entries:
cvspserver 2401/tcp # cvspserverCreate repository directory
cvspserver 2401/udp # cvspserver
Login as user cvs and create the first repository.
cvs -d /home/cvs/cvstest initCreate a list of authorized users. File: vi /home/cvs/cvstest/CVSROOT/passwd
john::cvsAdd the repository just created to the list of attended repositories.
marry::cvs
ivan::cvs
As a root user add an entry to the /etc/inetd.conf
cvspserver stream tcp nowait cvs /usr/bin/cvs cvs --allow-root=/home/cvs/cvstest pserverRestart the service
refresh -s inetdTest if everything is running
From another computer run the command:
cvs -d :pserver:ivan@aixhost:/home/cvs/cvstest loginIf everything is ok then this command should be completed without any message.
Create the first project:
mkdir projAnd import this project into repository as a repository module
vi proj/file.txt
cvs -d :pserver:marry@aixhost:/home/cvs/cvstest import -m "Initial import" proj proj startThen move to another catalog or use another computer and checkout the project just created.
cvs -d :pserver:john@aixj:/home/cvs/cvstest checkout projIf the project content is recreated it means that our repository is running and ready to act as a host for our next big project.
Add next repository.
It is very simple now. Just create next repository directory - for instance
cvs -d /home/cvs/cvsprod initAdd list of authorized users.
vi /home/cvs/cvsprod/CVSROOT/passwdModify a line in the /etc/inetd.conf (important: all repositories entries should be included in one line)
cvspserver stream tcp nowait cvs /usr/bin/cvs cvs --allow-root=/home/cvs/cvstest --allow-root=/home/cvs/cvsprod pserverRestart
refresh -s inetdAnd next repository is ready to use.
Brak komentarzy:
Prześlij komentarz