source: server/other/cvsserver/cvsserver-inst.xml@ 65df9fca

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 65df9fca was 65df9fca, checked in by Larry Lawrence <larry@…>, 20 years ago

grammar corrections

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2252 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.8 KB
RevLine 
[dcc89bf1]1<sect2>
[8936be4]2<title>Setting up a <acronym>CVS</acronym> server.</title>
[dcc89bf1]3
[65df9fca]4<para>A <acronym>CVS</acronym> server will be set up using OpenSSH
[8936be4]5as the remote access method. Other access methods, including :pserver: and
6:server: will not be used for write access to the <acronym>CVS</acronym>
7repository. The :pserver: method sends clear text passwords over the network
8and the :server: method is not supported in all <acronym>CVS</acronym> ports.
9Instructions for anonymous, read only <acronym>CVS</acronym> access using
10:pserver: can be found at the end of this section.</para>
[dcc89bf1]11
[65df9fca]12<para>Configuration of the <acronym>CVS</acronym> server consists of four
[8936be4]13steps:</para>
[dcc89bf1]14
15<sect3><title>1. Create a repository.</title>
[8936be4]16<para>Create a new <acronym>CVS</acronym> repository with the following
[65df9fca]17commands:</para>
18<screen><userinput><command>mkdir /home/cvsroot &amp;&amp;
19chmod 1777 /home/cvsroot &amp;&amp;
20export CVSROOT=/home//cvsroot &amp;&amp;
[8936be4]21cvs init</command></userinput></screen></sect3>
[dcc89bf1]22
23<sect3><title>2. Import source code into the repository.</title>
24<para>Import a source module into the repository with the following
[8936be4]25commands, issued from a user account on the same machine as the
26<acronym>CVS</acronym> repository:</para>
[dcc89bf1]27
[65df9fca]28<screen><userinput><command>export CVSROOT=/home/cvsroot &amp;&amp;
29cd <replaceable>[sourcedir]</replaceable> &amp;&amp;
30cvs import -m <replaceable>["repository test"] [cvstest] [vendortag] [releasetag]</replaceable></command></userinput></screen></sect3>
[dcc89bf1]31
32<sect3><title>3. Verify local repository access.</title>
[8936be4]33<para>Test access to the <acronym>CVS</acronym> repository from the same user
34account with the following command:</para>
[dcc89bf1]35
[8936be4]36<screen><userinput><command>cvs co cvstest</command></userinput></screen></sect3>
[dcc89bf1]37
38<sect3><title>4. Verify remote repository access.</title>
[8936be4]39<para>Test access to the <acronym>CVS</acronym> repository from a remote
40machine using a user account that has <command>ssh</command> access to the
[a4acd463]41<acronym>CVS</acronym> server with the following commands:</para>
[a4be499]42<note><para>Replace <replaceable>[servername]</replaceable> with the
43<acronym>IP</acronym> address or host name of the <acronym>CVS</acronym>
44repository machine. You will be prompted for the user's shell account password
[a4acd463]45before <acronym>CVS</acronym> checkout can continue.</para></note>
[dcc89bf1]46
47
[8936be4]48<screen><userinput><command>export CVS_RSH=/usr/bin/ssh &amp;&amp;
[a4be499]49cvs -d:ext:<replaceable>[servername]</replaceable>:/cvsroot co cvstest</command></userinput></screen></sect3>
[dcc89bf1]50</sect2>
51<sect2>
[8936be4]52<title>Configuring <acronym>CVS</acronym> for anonymous read only access.</title>
[dcc89bf1]53
[8936be4]54<para><acronym>CVS</acronym> can be set up to allow anonymous read only access
55using the :pserver: method by logging on as root and executing the following
[dcc89bf1]56commands:</para>
57
[8936be4]58<screen><userinput><command>(grep anonymous /etc/passwd || useradd anonymous -s /bin/false) &amp;&amp;
[65df9fca]59echo anonymous: &gt; /home/cvsroot/CVSROOT/passwd &amp;&amp;
60echo anonymous &gt; /home/cvsroot/CVSROOT/readers</command></userinput></screen>
[dcc89bf1]61
[8936be4]62<para>If you use <command>inetd</command>, the following command will add the
63pserver entry to <filename>/etc/inetd.conf</filename>:</para>
[dcc89bf1]64
[8936be4]65<screen><userinput><command>echo "2401 stream tcp nowait root /usr/bin/cvs cvs -f \
[65df9fca]66 --allow-root=/home/cvsroot pserver" &gt;&gt; /etc/inetd.conf</command></userinput></screen>
[dcc89bf1]67
[8936be4]68<para>Issue a <command>killall -HUP inetd</command> to reread the changed
69<filename>inetd.conf</filename> file.</para>
[dcc89bf1]70
[8936be4]71<para>If you use <command>xinetd</command>, the following command will add the
72pserver entry to <filename>/etc/xinetd.conf</filename>:</para>
[dcc89bf1]73
[8936be4]74<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
[dcc89bf1]75 service cvspserver
76 {
77 port = 2401
78 socket_type = stream
79 protocol = tcp
80 wait = no
81 user = root
82 passenv = PATH
83 server = /usr/bin/cvs
[65df9fca]84 server_args = -f --allow-root=/home/cvsroot pserver
[dcc89bf1]85 }
[8936be4]86<command>EOF</command></userinput></screen>
[a94f11b]87<para>Issue a <command>/etc/rc.d/init.d/xinetd reload</command> to reread the changed
[8936be4]88<filename>xinetd.conf</filename> file.</para>
[dcc89bf1]89
90<para>Testing anonymous access to the new repository requires an account
[8936be4]91on another machine that can reach the <acronym>CVS</acronym> server via
92network. No account on the <acronym>CVS</acronym> repository is needed. To
[65df9fca]93test anonymous access to the <acronym>CVS</acronym> repository, log in to
[8936be4]94another machine as an unprivileged user and execute the following command:
95</para>
96
[65df9fca]97<screen><userinput><command>cvs -d:pserver:anonymous@<replaceable>[servername]</replaceable>:/home/cvsroot co cvstest</command></userinput></screen>
[a4be499]98<note><para>Replace <replaceable>[servername]</replaceable> with the <acronym>IP</acronym> address or
[a75063d4]99hostname of the <acronym>CVS</acronym> server</para></note>
[dcc89bf1]100
101</sect2>
102
103
Note: See TracBrowser for help on using the repository browser.