How to run CVS Server?
-------------------------------------------------------------------------
Step 0 : Run CVS Server
1. install CVS
2. groupadd cvs
3. useradd -g cvs -G cvs -d /home/cvsroot cvsroot
4. chmod 771 /home/cvsroot
5. passwd cvsroot
6. su cvsroot
cvs -d /home/cvsroot init
exit
7. su root
8. vi /etc/xinetd.d/cvspserver
service cvspserver
{
flags = REUSE
socket_type = stream
wait = no
user = root
protocol = tcp
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvsroot pserver
disable = no
only_from = 192.168.10.0/24
}
9. chmod 644 /etc/xinetd.d/cvspserver
10. vi /etc/services
cvspserver 2401/tcp #pserver cvs service
11. /etc/rc.d/init.d/xinetd restart
12. netstat -lnp|grep 2401
Step 1 : Add CVS Users
1. su cvsroot
2. vi passwd.pl
#!/usr/bin/perl
srand (time());
my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))";
my $salt = sprintf ("%c%c", eval $randletter, eval $randletter);
my $plaintext = shift;
my $crypttext = crypt ($plaintext, $salt);
print "${crypttext}";
print "\n";
3. chmod a+x passwd.pl
4. ./passwd.pl "password_str"
XL0pOJWay9kO
5. vi /home/cvsroot/CVSROOT/passwd
iyacht:XL0pOJWay9kO:cvsroot
6. cvs -d :pserver:iyacht@192.168.10.2:/home/cvsroot login
7. export CVSROOT=:pserver:iyacht@192.168.10.2:/home/cvsroot
8. cvs command
Step 2 : Run CVS Client
TortoiseCVS Introduce See Link ; 0
Step 3: mysql Server
1. /etc/rc.d/init.d/mysqld start
2. mysqladmin -u root password zxcvnm,./
3. mysql -u root -pzxcvnm,./
4. mysql> create database bugtracker;
5. mysql> show databases;
6. mysql>GRANT ALL ON bugtracker.* TO admin@localhost IDENTIFIED BY "zxcvnm,./";
Step 4: install mantis
1. Download http://switch.dl.sourceforge.net/sourceforge/mantisbt/mantis-1.0.0rc1.tar.gz
2. tar xvzf mantis-1.0.0rc1.tar.gz
3. mv mantis-1.0.0rc1 mantis
see http://manual.mantisbt.org/manual.installation.php
4. vi /home/iyacht/mantis/config_inc.php
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = 'zxcvnm,./';
?>
5. chmod 777 /home/iyacht/mantis/config_inc.php
6. A DEFAULT ADMINISTRATOR level account is created. The account name
and password are administrator / root. Use this when you first login to
Mantis.
Step 5: Doxygen
A documentation system for C++, C, Java, Objective-C, IDL (Corba and Microsoft flavors) and to some extent PHP, C# and D.
Step 6: ident
Step 7: Bugzilla
1. cd /var/www/html/
2. tar zxvf bugzilla-2.18rc3.tgz
3. mv bugzilla-2.18rc3/ bugzilla/
4. cd bugzilla
5. su root
6. ./checksetup.pl
Installing Perl miss modules is via CPAN on Unix
/usr/bin/perl -MCPAN -e 'install "AppConfig"'
/usr/bin/perl -MCPAN -e 'install "Template"'
/usr/bin/perl -MCPAN -e 'install "Date::Format"'
/usr/bin/perl -MCPAN -e 'install "CGI"'
/usr/bin/perl -MCPAN -e 'install "DBI"'
7. vi localconfig.js
8. mysql -u root -pzxcvnm,./
mysql> GRANT SELECT, INSERT,
UPDATE, DELETE, INDEX, ALTER, CREATE, DROP,
REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY
'$db_pass';
mysql> FLUSH PRIVILEGES;
9. ./checksetup.pl
Next, rerun checksetup.pl. It reconfirms that all the modules are present, and notices the altered localconfig file, which it assumes you have edited to your satisfaction. It compiles the UI templates, connects to the database using the 'bugs' user you created and the password you defined, and creates the 'bugs' database and the tables therein.
After that, it asks for details of an administrator account. Bugzilla can have multiple administrators - you can create more later - but it needs one to start off with. Enter the email address of an administrator, his or her full name, and a suitable Bugzilla password.
10. vi /etc/httpd/conf/httpd.conf
Add
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>