Changeset 65df9fca for server/other/cvsserver
- Timestamp:
- 06/03/2004 02:41:04 AM (20 years ago)
- Branches:
- 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
- Children:
- 2cbfd78a
- Parents:
- 23d784b
- Location:
- server/other/cvsserver
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
server/other/cvsserver/cvsserver-exp.xml
r23d784b r65df9fca 2 2 <title>Command explanations</title> 3 3 4 <para><command>mkdir / cvsroot</command>: Create the <acronym>CVS</acronym>4 <para><command>mkdir /home/cvsroot</command>: Create the <acronym>CVS</acronym> 5 5 repository directory.</para> 6 6 7 <para><command>chmod 1777 / cvsroot</command>: Sticky bit permissions for7 <para><command>chmod 1777 /home/cvsroot</command>: Set sticky bit permissions for 8 8 <envar>CVSROOT</envar>.</para> 9 9 10 <para><command>export CVSROOT=/ cvsroot</command>: Specify new <envar>CVSROOT10 <para><command>export CVSROOT=/home/cvsroot</command>: Specify new <envar>CVSROOT 11 11 </envar> for all <command>cvs</command> commands.</para> 12 12 … … 17 17 releasetag</command>: All source code modules must be imported 18 18 into the <acronym>CVS</acronym> repository before use, with the 19 <command>cvs import</command> command. the <userinput>-m</userinput>19 <command>cvs import</command> command. The <userinput>-m</userinput> 20 20 flags specifies an initial descriptive entry for the new module. 21 the "cvstest" parameter is the name used for the module in all22 subsequent <command>cvs</command> commands. the "vendortag" and "releasetag"21 The "cvstest" parameter is the name used for the module in all 22 subsequent <command>cvs</command> commands. The "vendortag" and "releasetag" 23 23 parameters are used to further identify each <acronym>CVS</acronym> module and 24 24 are mandatory whether used or not.</para> … … 28 28 create one if not found.</para> 29 29 30 <para><command>echo anonymous: > / cvsroot/CVSROOT/passwd30 <para><command>echo anonymous: > /home/cvsroot/CVSROOT/passwd 31 31 </command>: Add the anonymous user to the <acronym>CVS</acronym> passwd file, 32 32 which is unused for anything else in this configuration.</para> 33 33 34 <para><command>echo anonymous > / cvsroot/CVSROOT/readers</command>: Add the34 <para><command>echo anonymous > /home/cvsroot/CVSROOT/readers</command>: Add the 35 35 anonymous user to the <acronym>CVS</acronym> readers file, a list of 36 36 users who have read only access to the repository.</para> -
server/other/cvsserver/cvsserver-inst.xml
r23d784b r65df9fca 2 2 <title>Setting up a <acronym>CVS</acronym> server.</title> 3 3 4 <para> We will discuss setting up a <acronym>CVS</acronym> serverusing OpenSSH4 <para>A <acronym>CVS</acronym> server will be set up using OpenSSH 5 5 as the remote access method. Other access methods, including :pserver: and 6 6 :server: will not be used for write access to the <acronym>CVS</acronym> … … 10 10 :pserver: can be found at the end of this section.</para> 11 11 12 <para>Configuration of our<acronym>CVS</acronym> server consists of four12 <para>Configuration of the <acronym>CVS</acronym> server consists of four 13 13 steps:</para> 14 14 15 15 <sect3><title>1. Create a repository.</title> 16 16 <para>Create a new <acronym>CVS</acronym> repository with the following 17 commands , logged in as root:</para>18 <screen><userinput><command>mkdir / cvsroot &&19 chmod 1777 / cvsroot &&20 export CVSROOT=/ cvsroot &&17 commands:</para> 18 <screen><userinput><command>mkdir /home/cvsroot && 19 chmod 1777 /home/cvsroot && 20 export CVSROOT=/home//cvsroot && 21 21 cvs init</command></userinput></screen></sect3> 22 22 … … 26 26 <acronym>CVS</acronym> repository:</para> 27 27 28 <screen><userinput><command>export CVSROOT=/ cvsroot &&29 cd sourcedir&&30 cvs import -m "repository test" cvstest vendortag releasetag</command></userinput></screen></sect3>28 <screen><userinput><command>export CVSROOT=/home/cvsroot && 29 cd <replaceable>[sourcedir]</replaceable> && 30 cvs import -m <replaceable>["repository test"] [cvstest] [vendortag] [releasetag]</replaceable></command></userinput></screen></sect3> 31 31 32 32 <sect3><title>3. Verify local repository access.</title> … … 57 57 58 58 <screen><userinput><command>(grep anonymous /etc/passwd || useradd anonymous -s /bin/false) && 59 echo anonymous: > / cvsroot/CVSROOT/passwd &&60 echo anonymous > / cvsroot/CVSROOT/readers</command></userinput></screen>59 echo anonymous: > /home/cvsroot/CVSROOT/passwd && 60 echo anonymous > /home/cvsroot/CVSROOT/readers</command></userinput></screen> 61 61 62 62 <para>If you use <command>inetd</command>, the following command will add the … … 64 64 65 65 <screen><userinput><command>echo "2401 stream tcp nowait root /usr/bin/cvs cvs -f \ 66 --allow-root=/ cvsroot pserver" >> /etc/inetd.conf</command></userinput></screen>66 --allow-root=/home/cvsroot pserver" >> /etc/inetd.conf</command></userinput></screen> 67 67 68 68 <para>Issue a <command>killall -HUP inetd</command> to reread the changed … … 82 82 passenv = PATH 83 83 server = /usr/bin/cvs 84 server_args = -f --allow-root=/ cvsroot pserver84 server_args = -f --allow-root=/home/cvsroot pserver 85 85 } 86 86 <command>EOF</command></userinput></screen> … … 91 91 on another machine that can reach the <acronym>CVS</acronym> server via 92 92 network. No account on the <acronym>CVS</acronym> repository is needed. To 93 test anonymous access to the <acronym>CVS</acronym> repository log in to93 test anonymous access to the <acronym>CVS</acronym> repository, log in to 94 94 another machine as an unprivileged user and execute the following command: 95 95 </para> 96 96 97 <screen><userinput><command>cvs -d:pserver:anonymous@<replaceable>[servername]</replaceable>:/ cvsroot co cvstest</command></userinput></screen>97 <screen><userinput><command>cvs -d:pserver:anonymous@<replaceable>[servername]</replaceable>:/home/cvsroot co cvstest</command></userinput></screen> 98 98 <note><para>Replace <replaceable>[servername]</replaceable> with the <acronym>IP</acronym> address or 99 99 hostname of the <acronym>CVS</acronym> server</para></note>
Note:
See TracChangeset
for help on using the changeset viewer.