
| ・ |
ドキュメントセンターを初めてご利用する方や運営方針についての基本的な姿勢をご覧になりたい方へ。
|
| ご利用の皆様から多く寄せられる質問にお答えしています。 |
|
| ・ |
ディーエーオフィスなどが利用する用語に関する解説を行います。
|
|
|
 |
 |  |
cvsup-mirror |
! 簡単な導入の流れ
cd /usr/ports/net/cvsup-mirror
make
make install
makeやmake installでは、質問に答える必要があります。
! 導入後の作業
再起動、もしくは、スクリプトを起動
/usr/local/etc/rc.d/cvsupd.sh start
更新(最初は時間がかかる)
/usr/local/etc/cvsup/update.sh
! ディスク使用量
2006/5現在、約3GB。
cd /home/ncvs
du -hd1
# du -hd1
1.7M ./CVSROOT
5.0M ./CVSROOT-doc
25M ./CVSROOT-ports
2.4M ./CVSROOT-projects
29M ./CVSROOT-src
742K ./distrib
198M ./doc
1018M ./ports
56M ./projects
12K ./root
1.4G ./src
127M ./www
2.9G .
! 同期試験
管内のコンピュータでcvsupを利用してみる。特に問題なく利用できたなら完成。
! cronの自動化
導入時に記入した設定をcronに書き込む。変更はcrontabを確認して行う。
ee /etc/crontab
! 詳細な流れ(2006.5/1.3_5)
# cd /usr/ports/net/cvsup-mirror
# make
===> Vulnerability check disabled, database not found
===> Extracting for cvsup-mirror-1.3_5
===> Patching for cvsup-mirror-1.3_5
===> Configuring for cvsup-mirror-1.3_5
I am going to ask you a few questions so that I can set up your
FreeBSD mirror configuration. Every question has a [default]
answer. To accept the default, just press ENTER.
At this point, I am just gathering information. I will not touch
your system until you type "make install".
Master site for your updates [cvsup-master.freebsd.org]? cvsup.jp.freebsd.org
マスタとして利用するサーバ名を指定する
How many hours between updates of your files [1]? 24
更新は何時間毎に行うか
Now you must decide which sets of files you wish to make available
from your mirror site. You can choose any combination, and you
can put each set anywhere you want to on your disks. Although each
set is optional, we strongly encourage every mirror site to carry
at least the main source repository.
Do you wish to mirror the main source repository [y]? y
Where would you like to put it [/home/ncvs]?
Do you wish to mirror the installed World Wide Web data [y]? y
Where would you like to put it [/usr/local/www]? /home/daoffice/cvs
Do you wish to mirror the GNATS bug tracking database [y]? n
Do you wish to mirror the mailing list archive [y]? n
Now, a few questions so that I can set up your CVSup server properly.
For security reasons, both the CVSup client and server should run
under their own unique user and group IDs. These IDs should have no
special access privileges. Normally, the user:group "cvsupin:cvsupin"
is used for the client and "cvsup:cvsup" is used for the server, but
you can choose other names if you wish. At "make install" time, I
will create the users and groups, if they don't already exist.
Use unique user and group IDs for these. Do not use "nobody",
"nonroot", or "nogroup".
Unique unprivileged user ID for running the client [cvsupin]?
Unique unprivileged group ID for running the client [cvsupin]?
Unique unprivileged user ID for running the server [cvsup]?
Unique unprivileged group ID for running the server [cvsup]?
The CVSup server does its logging via syslog. At "make install"
time, I will set up the logging for you, if necessary. I will use
the "!program" feature of syslog to keep your CVSup log messages
separate from the messages of your other daemons.
Syslog facility for the server log [daemon]?
You can control the load on your machine by limiting the number of
clients that the CVSup server will serve at once. CVSup won't load
your network especially heavily, but it is more CPU and disk
intensive than most other file server software.
Maximum simultaneous client connections [8]?
Building the "config.sh" file ... Done.
Building the "cvsupd.access" file ... Done.
# make install
===> Installing for cvsup-mirror-1.3_5
===> cvsup-mirror-1.3_5 depends on file: /usr/local/sbin/cvsupd - found
===> cvsup-mirror-1.3_5 depends on file: /usr/local/etc/rc.subr - found
===> Generating temporary packing list
===> Checking if net/cvsup-mirror already installed
Installing files
You need a group "cvsup".
Would you like me to create it [y]?
Done.
You need a user "cvsup".
Would you like me to create it [y]?
Done.
You need a group "cvsupin".
Would you like me to create it [y]?
Done.
You need a user "cvsupin".
Would you like me to create it [y]?
Done.
Would you like me to create cvsupin's home directory (/home/cvsupin) [y]?
Fixing ownerships and modes in "/usr/local/etc/cvsup".
Setting up links and directories for distributions.
Linking distrib.self -> ..
Linking FreeBSD.cvs -> /home/ncvs
Fixing ownerships and modes in /home/ncvs ... done.
Linking FreeBSD-www.current -> /home/daoffice/cvs
Fixing ownerships and modes in /home/daoffice/cvs ... done.
Linking FreeBSD-gnats.current -> SKIP
Linking FreeBSD-mail.current -> SKIP
Would you like me to set up the syslog logging [y]?
Setting up server logging in "/etc/syslog.conf".
Creating "/var/log/cvsupd.log".
Giving syslogd a kick in the pants.
Adding cvsup and cvsupd log entry to "/etc/newsyslog.conf".
Done.
Would you like me to set up your crontab for updates every 24 hours [y]?
Scheduling updates every 24 hours in "/etc/crontab".
Done. The first update will be 5 minutes from now, at 21:27.
The cvsupd server will be started automatically after the first update,
and whenever you reboot.
You are now a FreeBSD mirror site.
===> Installing rc.d startup script(s)
===> Registering installation for cvsup-mirror-1.3_5
! 参考
http://www.f-bell.net/FreeBSD/cvsupd.html
http://sakura.take-labo.jp/freebsd/net_cvsup-mirror.html
|
| 文書番号 |
06842 |
| 日付 |
2006.05.24 |
| 参照数 |
527 |
|