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

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


**CVSパッケージインストール [#k0e6f6ad]
+以下のコマンドでパッケージを入れる。
 # apt-get install cvs

**各種の設定を行なう [#b0fa36cf]
+以下のURLを参考にする。
CVS - igaiga fswiki
http://igaiga.s39.xrea.com/fswiki/wiki.cgi?page=CVS
+ユーザーcvsを作成

 % su -
 # mkdir /mnt/cvsroot
 # useradd -d /mnt/cvsroot cvs 
 # chmod 777 /mnt/cvsroot
 # chown cvs /mnt/cvsroot

+cvsの作業ディリクトリを指定、初期化
 % su cvs 
 % cvs -d /mnt/cvsroot init 
 % cd /mnt/cvsroot 
 % chmod 777 /mnt/cvsroot/CVSROOT

+環境変数CVSROOTを設定
 % su
 % vi /etc/profile 
   ## 2004.1.26 iga added
   CVSROOT=/mnt/cvsroot
   export CVSROOT
 % source /etc/profile
   (↑設定を有効にする)

+serviceを設定。/etc/servicesに以下の行を追加。
 /etc/services 
  cvspserver  2401/tcp      # CVS client/server operations
  cvspserver  2401/udp      # CVS client/server operations

+/etc/inetd.confに以下の行を追加。
 /etc/inetd.conf 
  #CVS
   cvspserver  stream tcp nowait root  /usr/bin/cvs  cvs -f --allow-root=/mnt/cvsroot pserver

+inetdを再起動
 # kill -HUP `cat /var/run/inetd.pid`

+cvsroot ディレクトリのグループを cvsusers に変更。 
 # groupadd cvsusers
 # chgrp cvsusers /mnt/cvsroot/CVSROOT
 # chmod 774 /mnt/cvsroot/CVSROOT

+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サーバにする [#p5478494]
+以下のURLを参考にする。
http://www2.i-e-c.co.jp/ssh1.html

 # apt-get install ssh

+Allow SSH protocol 2 only (SSHv2だけを利用するのか?)
 Yes
+Privilege separation (特権モードを分離する)
 Ok
+Do you want /usr/lib/ssh-keysign to be installed SUID root? (ssh-keysignをSUID rootとしてインストールするのか?)
 No
+Do you want to run the sshd server ? (sshdサーバを走らせるのか?)
 Yes
+チェック
 # ps ax | grep ssh

ページ新規作成

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

TOP