Alex刺客

          Dancing fingers, damage world. -- 舞動手指,破壞世界.

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            57 隨筆 :: 0 文章 :: 76 評論 :: 0 Trackbacks
          1. 檢查 cvs 跟 xinetd 是否已經安裝 (cvs 多數系統默認已經安裝)
          1?????$?rpm?-qa?|?grep?cvs
          2?????cvs-1.11.23-8.fc12.i686
          3?????$?rpm?-qa?|?grep?xinetd
          4?????xinetd-2.3.14-31.fc12.i686


          2.如果沒有安裝執行以下命令
          1??????$?su
          2??????#?yum?install?cvs?xinetd

          ?? ?
          3.創建 cvs 組與 cvsroot 用戶
          1?????#?groupadd?cvs
          2?????#?useradd?-m?-g?cvs?-s?/sbin/nologin?cvsroot
          3?????#?passwd?cvsroot


          4.cvs用戶的目錄權限配置
          1?????#?cvs?-d?/home/cvsroot/?init
          2?????#?chown?-R?cvsroot.cvs?/home/cvsroot
          3?????#?chmod?-R?ug+rwx?/home/cvsroot
          4?????#?chmod?644?/home/cvsroot/CVSROOT/config

          ?? ?
          5.修改cvs文件
          1?????#?vim?/etc/xinetd.d/cvs
          2?????
          3?????修改cvs文件
          4?????disable?=?yes
          5?????server_args??=?-f?--allow-root=/home/cvsroot?pserver

          ?? ?
          ?1?service?cvspserver
          ?2?{
          ?3?????????disable?=?yes
          ?4?????????port????????????????????=?2401
          ?5?????????socket_type?????????????=?stream
          ?6?????????protocol????????????????=?tcp
          ?7?????????wait????????????????????=?no
          ?8?????????user????????????????????=?root
          ?9?????????passenv?????????????????=?PATH
          10?????????server??????????????????=?/usr/bin/cvs
          11?????????env?????????????????????=?HOME=/var/cvs
          12?????????server_args?????????????=?-f?--allow-root=/home/cvsroot?pserver
          13?#???????bind????????????????????=?127.0.0.1
          14?}


          6. 重啟xinetd服務
          1?#?/etc/rc.d/init.d/xinetd?restart

          ?? ?
          7.添加用戶
          ???
          1???? #?useradd?-g?cvs?-M?alexcvs
          2?????#?passwd?alexcvs
          3?????#?cp?/etc/shadow?/home/cvsroot/CVSROOT/passwd
          4?????#?chmod?0644?/home/cvsroot/CVSROOT/passwd?

          ?? ?修改passwd文件,將除alexcvs之外的所有行刪除,然后去掉每行第二個冒號以后的所有
          ??? 內容,并添上字符串cvsroot, 改為如下格式:
          ??? alexcvs:ND5$J8N9BW5DKV.nPdxfdsh:cvsroot
          ???
          1?#?userdel?-f?alexcvs

          8.在.bash_profile 添加一行

          ?? ?export CVSROOT=:pserver:alexcvs@192.168.1.2:2401/home/cvsroot
          ?? ?
          9.用戶初始化
          ??? cvs login
          ??? 按提示輸入口令
          ? ?
          10.創建項目
          ??? #cvs import -m "this is a test project" test v1 start
          posted on 2010-08-23 04:53 Alex刺客 閱讀(305) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 老河口市| 桂阳县| 昭通市| 光泽县| 大冶市| 临澧县| 辽阳县| 紫阳县| 元朗区| 肥东县| 卓尼县| 襄垣县| 磴口县| 龙岩市| 星子县| 嘉荫县| 马鞍山市| 桦川县| 定兴县| 兴安盟| 墨玉县| 城市| 红桥区| 武宣县| 石城县| 大同市| 富宁县| 巴林右旗| 米脂县| 淮阳县| 阿坝| 阳西县| 都安| 郓城县| 三河市| 安丘市| 监利县| 镇远县| 遵义市| 广安市| 错那县|