su -
např. mkdir /home/cvsroot chmod -R 775 /home/cvsroot/
yum install cvs cvsps cvsutils
yum install xinetd
gedit /etc/xinetd.d/cvspserver
# default: off # description: cvspserver service cvspserver { id = cvspserver socket_type = stream protocol = tcp user = root wait = no disable = no server = /usr/bin/cvs Port = 2401 passenv = server_args = --allow-root=/home/cvsroot -f pserver env = HOME=/home/cvsroot log = /var/log/cvslog }
gedit /etc/xinetd.d/cvs
export CVSROOT=/home/cvsroot useradd -M cvsuser #vytvoří uživatele bez domovského adresáře groupadd cvsadmin chgrp -R cvsadmin /home/cvsroot cvs init touch /home/cvsroot/CVSROOT/locks cd /root cvs checkout CVSROOT
# Set this to "no" if pserver shouldn't check system users/passwords SystemAuth=no # Set `TopLevelAdmin' to `yes' to create a CVS directory at the top # level of the new working directory when using the `cvs checkout' # command. TopLevelAdmin=yes
*.gif -k 'b' *.tga -k 'b' *.bmp -k 'b' *.psd -k 'b' *.tif -k 'b' *.png -k 'b' *.iff -k 'b' *.aiff -k 'b' *.obj -k 'b' *.dat -k 'b' *.exe -k 'b' *.com -k 'b' *.dll -k 'b' *.dsw -k 'b' *.dsp -k 'b' *.lwo -k 'b' *.lws -k 'b' *.p -k 'b' *.ico -k 'b' *.frx -k 'b' *.class -k 'b' *.jar -k 'b' *.zip -k 'b' *.lzh -k 'b' *.lha -k 'b' *.rar -k 'b' *.arj -k 'b' *.arc -k 'b' *.avi -k 'b' *.mov -k 'b' *.asf -k 'b' *.smk -k 'b' *.jpg -k 'b' *.mpg -k 'b' *.swf -k 'b' *.frx -k 'b' *.fli -k 'b' *.flc -k 'b' *.tiff -k 'b' *.bin -k 'b' *.dat -k 'b' *.wad -k 'b' *.ppt -k 'b' *.pdf -k 'b' *.3ds -k 'b' *.max -k 'b'
cd cvs commit CVSROOT ( poté napíšeme komentář, zmáčkneme ESC a napíšeme :wq a ENTER )
htpasswd -d -c /home/cvsroot/CVSROOT/passwd uzivatel
htpasswd -d /home/cvsroot/CVSROOT/passwd uzivatel2
useradd -g cvsadmin -M uzivatel #cvs by nám jinak řvalo, že daný uživatel není system user
/etc/init.d/xinetd restart
-A RH-Firewall-1-INPUT -s 192.168.88.14 -p tcp --dport 2401 -j ACCEPT
/etc/init.d/iptables restart
export CVSROOT=:pserver:uzivatel@ip_adresa:/home/cvsroot cvs login