Top/CVS/CVSサーバの構築方法(Debian GNU/Linux)

CVS/CVSサーバの構築方法(Debian GNU/Linux)

CVSパッケージインストール

  1. 以下のコマンドでパッケージを入れる。
    # apt-get install cvs

各種の設定を行なう

  1. 以下のURLを参考にする。
    CVS - igaiga fswiki
    http://igaiga.s39.xrea.com/fswiki/wiki.cgi?page=CVS
  2. ユーザーcvsを作成
% su -
# mkdir /mnt/cvsroot
# useradd -d /mnt/cvsroot cvs 
# chmod 777 /mnt/cvsroot
# chown cvs /mnt/cvsroot
  1. cvsの作業ディリクトリを指定、初期化
    % su cvs 
    % cvs -d /mnt/cvsroot init 
    % cd /mnt/cvsroot 
    % chmod 777 /mnt/cvsroot/CVSROOT
  1. 環境変数CVSROOTを設定
    % su
    % vi /etc/profile 
      ## 2004.1.26 iga added
      CVSROOT=/mnt/cvsroot
      export CVSROOT
    % source /etc/profile
      (↑設定を有効にする)
  1. serviceを設定。/etc/servicesに以下の行を追加。
    /etc/services 
     cvspserver  2401/tcp      # CVS client/server operations
     cvspserver  2401/udp      # CVS client/server operations
  1. /etc/inetd.confに以下の行を追加。
    /etc/inetd.conf 
     #CVS
      cvspserver  stream tcp nowait root  /usr/bin/cvs  cvs -f --allow-root=/mnt/cvsroot pserver
  1. inetdを再起動
    # kill -HUP `cat /var/run/inetd.pid`
  1. cvsroot ディレクトリのグループを cvsusers に変更。
    # groupadd cvsusers
    # chgrp cvsusers /mnt/cvsroot/CVSROOT
    # chmod 774 /mnt/cvsroot/CVSROOT
  1. CVSパスワードの作成
    # cd /mnt/cvsroot/CVSROOT
    # htpasswd -c passwd ken
    New password:aruarucvs
    Re-type new password:aruarucvs
    Adding password for user ken
    次のユーザーからは "-c"オプション不要。(-cは新規で作る時)
# vi passwd
ken:T8pFL6hcFBF

ken:T8pFL6hcFBF:ken

認証ユーザー名:passwd(暗号化):CVS活動ユーザー名

CVS活動ユーザー名が無い場合は認証ユーザー名でCVS活動をする。

CVS活動ユーザー名はlinuxのユーザーであること。

% cvs -d :pserver:ken@localhost:/mnt/cvsroot login
CVS password:
%

と、ここまで出ればOK。

sshサーバにする

  1. 以下のURLを参考にする。
    http://www2.i-e-c.co.jp/ssh1.html
# apt-get install ssh
  1. Allow SSH protocol 2 only (SSHv2だけを利用するのか?)
    Yes
  2. Privilege separation (特権モードを分離する)
    Ok
  3. Do you want /usr/lib/ssh-keysign to be installed SUID root? (ssh-keysignをSUID rootとしてインストールするのか?)
    No
  4. Do you want to run the sshd server ? (sshdサーバを走らせるのか?)
    Yes
  5. チェック
    # ps ax | grep ssh
このページを共有:
  • このページをはてなブックマークに追加 このページを含むはてなブックマーク
  • このページをlivedoor クリップに追加 このページを含むlivedoor クリップ
  • このページをYahoo!ブックマークに追加
  • このページを@niftyクリップに追加
  • このページをdel.icio.usに追加
  • このページをGoogleブックマークに追加

このページのURL:

ページ新規作成

新しいページはこちらから投稿できます。

TOP