cvs server

axel maroudas axelmangr at freemail.gr
Sun Aug 14 16:09:16 EEST 2005


kalispera pedia!

Prosptho oli mera ke akri den vrisko. Akolouthisa tis odigies sas kathos 
ke kapia alla how to pou vrika gia ton cvs server alla na sindetho den 
mporo. I katastasi exi os exis:

1)     egatestisa ton cvs (apo yum)

2)    $useradd -M -s /sbin/nologin cvs
        $useradd -M -s /sbin/nologin cvs

3)   sto /etc/group prosthesa:
            cvs:x:502:anonymous
            anonymous:x:503:
            cvs:x:501:axel,anonymous

4) eftixa ena file /etc/xinetd.d/cvspserver:
       service cvspserver
        {
            port=2401
            socket_type=stream
            protocol=tcp
            wait=no
            user=root
            passenv=PATH
            server=/usr/bin/cvs
            server_args=-f --allow-root=/usr/local/cvsroot pserver
        }

5) xanaxekinisa ton xinetd
       $service xinetd restart

6) prosthesa sto .bashrc
       export CVSROOT=/usr/local/cvsroot/

7) eftiaxa ta directories
       $mkdir $CVSROOT
       chown -R cvs:cvs $CVSROOT
       chmod ug+rwx $CVSROOT
       chmod 0-rwx $CVSROOT
       chmod g+s $CVSROOT

8) eftiaxa to symbolic link
       $ ln -s /usr/local/cvsroot /cvs

9) meta ekana ta exis
         $export CVSROOT=/usr/local/cvsroot
          $cvs init

10) eftiaxa to passwd file ke to evala sto $CVSROOT/CVSROOT/passwd

11) eftiaxa to export
       $export CVSROOT=':pserver:axel at axelman:/cvs'

12) ke prospathisa na kano login
       $cvs login

alla perno ena connection refused sti mouri:

[root at axelman axel] # cvs login
(Logging in to axel at axelman)
CVS password:
cvs [login aborted]: connect to axelman:2401 failed: Connection refused

evala ke tin exis grammi sto /etc/sysconfig/iptables:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 2401 
-j ACCEPT

Ti kano lathos re pedia. Gia doste ligo ta sofa fota sas


axelmangr





____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.




More information about the Linux-greek-users mailing list