Changeset 01d5424 for server


Ignore:
Timestamp:
10/20/2004 12:03:12 AM (20 years ago)
Author:
Randy McMurchy <randy@…>
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, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
e16d90ee
Parents:
84e42bc
Message:

Updated to Subversion-1.1.0

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/other/svnserver.xml

    r84e42bc r01d5424  
    2222<sect3><title><application>Subversion server</application> dependencies</title>
    2323<sect4><title>Required</title>
    24 <para><xref linkend="subversion"/> and <xref linkend="openssh"/></para></sect4>
     24<para><xref linkend="subversion"/> and <xref linkend="openssh"/></para>
     25</sect4>
    2526</sect3>
    2627
     
    3839consists of the following steps:</para>
    3940                                                                               
    40 <sect3><title>1.  Setup users, groups, and permissions</title>
     41<sect3><title>1. Setup users, groups, and permissions</title>
    4142<para>You'll need to be user root for the initial portion of
    42 configuration.  Create the svn user and group with the following
     43configuration. Create the svn user and group with the following
    4344commands:</para>
    4445
     
    4748
    4849<para>If you plan to have multiple repositories, you should have a
    49 group dedicated to each repository for ease of administration.  Create
    50 the svntest group for our test repository and add the svn user to that
     50group dedicated to each repository for ease of administration. Create
     51the svntest group for the test repository and add the svn user to that
    5152group with the following commands:</para>
    5253
     
    5455usermod -G svntest svn</command></userinput></screen>
    5556
    56 <para>Additionally you should set umask '002' while working with a
    57 repository so that all new files will be writable by owner and group.
    58 We'll make this mandatory by writing a wrapper script for
     57<para>Additionally you should set <command>umask 002</command> while working
     58with a repository so that all new files will be writable by owner and group.
     59This is made mandatory by creating a wrapper script for
    5960<command>svn</command> and <command>svnserve</command>:</para>
    6061
     
    7374chmod 0755 /usr/bin/svn{,serve}</command></userinput></screen>
    7475
    75 <note><para>If you use <application>apache</application> for working with
    76 the repository over http, even for anonymous access, you should wrap
    77 <application>apache</application> in a similar script.</para></note>
    78 
    79 </sect3>
    80 
    81 <sect3><title>2.  Create a <application>Subversion</application>
     76<note><para>If you use <application>Apache</application> for working with
     77the repository over <acronym>HTTP</acronym>, even for anonymous access, you
     78should wrap <command>/usr/sbin/httpd</command> in a similar
     79script.</para></note>
     80
     81</sect3>
     82
     83<sect3><title>2. Create a <application>Subversion</application>
    8284repository.</title>
    8385<para>Create a new <application>Subversion</application> repository with
    8486the following commands:</para>
     87
    8588<screen><userinput><command>install -d -m0755 /srv &amp;&amp;
    8689install -d -m0755 -o svn -g svn /srv/svn/repositories &amp;&amp;
     
    8891
    8992<para>Now that the repository is created, we need to populate it with
    90 something useful.  You'll need to have a predefined directory layout
    91 setup exactly as you want your repository to look.  For example, here
     93something useful. You'll need to have a predefined directory layout
     94setup exactly as you want your repository to look. For example, here
    9295is a sample BLFS layout setup with a root of <filename>svntest/</filename>.
    9396You'll need to setup a directory tree similar to the following:</para>
     
    103106             tags/            # Needed for tagging release points</screen>
    104107
    105 <para>Once you've created your directory layout as above, you are ready to
    106 do the initial import:</para>
     108<para>Once you've created your directory layout as shown above, you are ready
     109to do the initial import:</para>
    107110
    108111<screen><userinput><command>svn import -m "Initial import." \
     
    118121usermod -G svn,svntest,<replaceable>[insert existing groups]</replaceable> <replaceable>[username]</replaceable></command></userinput></screen>
    119122
    120 <para>svntest is the group assigned to the svntest repository.  As
     123<para>svntest is the group assigned to the svntest repository. As
    121124mentioned earlier, this eases administration of multiple repositories
    122 when using <application>OpenSSH</application> for authentication.  Going
     125when using <application>OpenSSH</application> for authentication. Going
    123126forward, you'll need to add your regular user, and any additional users
    124127that you wish to have write access to the repository, to the svn and
     
    126129         
    127130<para>In addition, you'll notice that the new repository's
    128 <filename>db</filename> directory is set-groupID.  If the reasoning is
     131<filename>db</filename> directory is set-groupID. If the reasoning is
    129132not immediately obvious, when using any external authentication method
    130 (such as ssh), the sticky bit is set so that all new files will be owned
    131 by the user, but group of svntest.  Anyone in the svntest group can
    132 create files, but still give the entire group write access to those
    133 files.  This avoids locking out other users from the repository.</para>
     133(such as <command>ssh</command>), the sticky bit is set so that all new files
     134will be owned by the user, but group of svntest. Anyone in the svntest group
     135can create files, but still give the entire group write access to those
     136files. This avoids locking out other users from the repository.</para>
    134137
    135138<para>Now, go ahead and return to your normal user account, and take a look at
     
    138141<screen><userinput><command>svnlook tree /srv/svn/repositories/svntest/</command></userinput></screen>
    139142
    140 <note><para>You may need to logout and back in again to refresh your group
    141 memberships.  '<command>su <replaceable>[username]</replaceable></command>'
     143<note><para>You may need to log out and back in again to refresh your group
     144memberships. '<command>su <replaceable>[username]</replaceable></command>'
    142145should work around this as well.</para></note>
    143146
    144147</sect3>
    145148
    146 <sect3><title>3.  Configure the server</title>
     149<sect3><title>3. Configure the server</title>
    147150
    148151<para>As mentioned previously, these instructions will configure the
    149 server to use only ssh for write access to the repository and to provide
    150 anonymous access using <command>svnserve</command>.  There are several other
    151 ways to provide access to the repository.  These additional configurations
    152 are best explained at <ulink url="http://svnbook.red-bean.com/" />.</para>
    153 
    154 <para>Access configuration needs to be done for each repository.  Create
     152server to use only <command>ssh</command> for write access to the repository
     153and to provide anonymous access using <command>svnserve</command>. There are
     154several other ways to provide access to the repository. These additional
     155configurations are best explained at
     156<ulink url="http://svnbook.red-bean.com/"/>.</para>
     157
     158<para>Access configuration needs to be done for each repository. Create
    155159the <filename>svnserve.conf</filename> file for the svntest repository
    156160using the following commands:</para>
     
    164168<command>EOF</command></userinput></screen>
    165169
    166 <para>There is not a lot to the configuration file at all.  You'll notice
    167 that only the general section is required.  Take a look at the
    168 <filename>svnserve.conf.default</filename> for information on using
     170<para>There is not a lot to the configuration file at all. You'll notice
     171that only the general section is required. Take a look at the
     172<filename>svnserve.conf.default</filename> file for information on using
    169173<command>svnserve</command>'s built-in authentication method.</para>
    170174
    171175</sect3>
    172176
    173 <sect3><title>4.  Starting the server</title>
    174 <para>There are a couple of ways to start <command>svnserve</command>.  The
    175 most common way is to start it as an <application>inetd</application> or
    176 <application>xinetd</application> process.  Alternately, you can use a
     177<sect3><title>4. Starting the server</title>
     178<para>There are a couple of ways to start <command>svnserve</command>. The
     179most common way is to start it as an <command>inetd</command> or
     180<command>xinetd</command> process. Alternately, you can use a
    177181bootscript to start the service at startup.</para>
    178182
     
    182186<command>svnserve</command>.</para></note>
    183187
    184 <para>If you use <application>inetd</application>, add a line to your
     188<para>If you use <command>inetd</command>, add a line to
    185189<filename>/etc/inetd.conf</filename> using the following commands:</para>
    186190
     
    189193<command>EOF</command></userinput></screen>
    190194
    191 <para>If you use <application>xinetd</application>, add the following
    192 lines to <filename>/etc/xinetd.conf</filename> file:</para>
     195<para>If you use <command>xinetd</command>, add the following
     196lines to the <filename>/etc/xinetd.conf</filename> file:</para>
    193197
    194198<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
Note: See TracChangeset for help on using the changeset viewer.