|
|
d2638e |
<sect1 id="repo-ws-config">
|
|
|
eebdc3 |
|
|
|
eebdc3 |
<title>Configuring Your Workstation</title>
|
|
|
eebdc3 |
|
|
|
eebdc3 |
<para>
|
|
|
eebdc3 |
Once your worstation is installed, it is time for you to
|
|
|
a382c3 |
configure it. At this point you create a user for working
|
|
|
a382c3 |
everyday, configure third party repositories, set environment
|
|
|
eebdc3 |
variables to fit your personal needs, download the working
|
|
|
eebdc3 |
copy of &TCAR; and prepare it for start using it.
|
|
|
eebdc3 |
</para>
|
|
|
eebdc3 |
|
|
|
d2638e |
<sect2 id="repo-ws-config-wp">
|
|
|
74d256 |
<title>Define Your Workplace</title>
|
|
|
eebdc3 |
<para>
|
|
|
eebdc3 |
Once you've installed the workstation and it is up and
|
|
|
74d256 |
running, you need to register the user name you'll use for
|
|
|
74d256 |
working. In this task you need to use the commands
|
|
|
eebdc3 |
<command>useradd</command> and <command>passwd</command> to
|
|
|
eebdc3 |
create the user name and set a password for it, respectively.
|
|
|
eebdc3 |
These commands require administrative privileges to be
|
|
|
eebdc3 |
executed, so you need to login as <emphasis>root</emphasis>
|
|
|
eebdc3 |
superuser for doing so.
|
|
|
eebdc3 |
</para>
|
|
|
eebdc3 |
|
|
|
eebdc3 |
<caution>
|
|
|
eebdc3 |
<para>
|
|
|
74d256 |
Do not use the <emphasis>root</emphasis> username for regular
|
|
|
74d256 |
tasks inside your working copy of &TCAR;. This is dangerous
|
|
|
74d256 |
and might provoke unreversable damages to your workstation.
|
|
|
eebdc3 |
</para>
|
|
|
eebdc3 |
</caution>
|
|
|
eebdc3 |
|
|
|
eebdc3 |
<para>
|
|
|
74d256 |
When you've registered your user name in the workstation, it
|
|
|
74d256 |
provides an identifier for you to open a user's session in the
|
|
|
74d256 |
workstation and a place to store the information you produce,
|
|
|
74d256 |
as well. This place is known as your home directory and is
|
|
|
74d256 |
unique for each user registered in the workstation. For
|
|
|
74d256 |
example, if you register the user name john in your
|
|
|
74d256 |
workstation, your home directory would be located at
|
|
|
74d256 |
class="directory">/home/john/</filename>.
|
|
|
74d256 |
</para>
|
|
|
74d256 |
|
|
|
74d256 |
<para>
|
|
|
a382c3 |
At this point it is important to define where to download the
|
|
|
a382c3 |
working copy of &TCAR; inside your home directory. This
|
|
|
a382c3 |
desition deserves special attention and should be implemented
|
|
|
a382c3 |
carefully in order to grant a standard environment that can be
|
|
|
a382c3 |
distributed. Let's see some alternatives.
|
|
|
eebdc3 |
</para>
|
|
|
eebdc3 |
|
|
|
74d256 |
<sect3>
|
|
|
74d256 |
<title>Different Absolute Paths</title>
|
|
|
eebdc3 |
<para>
|
|
|
74d256 |
Consider that you store your working copy under
|
|
|
74d256 |
class="directory">/home/john/Projects/artwork/</filename> and
|
|
|
74d256 |
I store mine under
|
|
|
74d256 |
class="directory">/home/al/Projects/artwork/</filename>, we'll
|
|
|
74d256 |
end up refering the same files inside our working copies
|
|
|
a382c3 |
through different absolute paths. This alternative generates
|
|
|
a382c3 |
a contradiction when files which hold path information inside
|
|
|
a382c3 |
are committed up to the central repository from different
|
|
|
a382c3 |
working copies. The contradiction comes from the question:
|
|
|
a382c3 |
which is the correct absolute path to use inside such files,
|
|
|
a382c3 |
yours or mine? (None of them is, of course.)
|
|
|
74d256 |
</para>
|
|
|
74d256 |
|
|
|
74d256 |
</sect3>
|
|
|
eebdc3 |
|
|
|
74d256 |
<sect3 id="repo-ws-config-wp-OneUniqueAbsolutePath">
|
|
|
74d256 |
<title>One Unique Absolute Path</title>
|
|
|
eebdc3 |
<para>
|
|
|
c03f46 |
Another case would be that where you and I ourselves use one
|
|
|
c03f46 |
unique home directory (e.g.,
|
|
|
74d256 |
class="directory">/home/centos/Projects/artwork/</filename>)
|
|
|
74d256 |
to store the working copy of &TCAR; in our own workstations,
|
|
|
74d256 |
but configure the subversion client to use different user
|
|
|
74d256 |
names to commit changes up from the working copy to the
|
|
|
a382c3 |
central repository. This alternative might be not so good in
|
|
|
a382c3 |
situations where you and I have to share the same workstation.
|
|
|
a382c3 |
In such cases, it would be required that we both share the
|
|
|
a382c3 |
password information of the same system user (the
|
|
|
a382c3 |
<emphasis>centos</emphasis> user in our example) which, in
|
|
|
a382c3 |
addition, gives access to that user's subversion client
|
|
|
a382c3 |
configuration and this way provokes the whole sense of using
|
|
|
a382c3 |
different subversion credentials for committing changes to be
|
|
|
a382c3 |
lost.
|
|
|
74d256 |
</para>
|
|
|
74d256 |
</sect3>
|
|
|
eebdc3 |
|
|
|
74d256 |
<sect3>
|
|
|
74d256 |
<title>Different Absolute Paths Through Dynamic Expansion</title>
|
|
|
eebdc3 |
<para>
|
|
|
74d256 |
Most of the absolute paths we use inside the working copy are
|
|
|
74d256 |
made of two parts, one dynamic and one relative fixed. The
|
|
|
74d256 |
dynamic part is the home directory of the current user and its
|
|
|
74d256 |
value can be retrived from the <envar>$HOME</envar>
|
|
|
74d256 |
environment variable. The fixed part of the path is the one
|
|
|
74d256 |
we set inside the repositroy structure itself as a matter of
|
|
|
74d256 |
organization. What we need here is to find a way to expand
|
|
|
74d256 |
variables inside files that don't support variable expansion.
|
|
|
74d256 |
This alternative had worked rather fine when we produce
|
|
|
a382c3 |
produce PNG files from SVG files and XTHML from DocBook files,
|
|
|
a382c3 |
but the same is not true for absolute paths inside files that
|
|
|
a382c3 |
are used as in their permanent state inside the repository
|
|
|
a382c3 |
(e.g., CSS files and other files similar in purpose).
|
|
|
eebdc3 |
</para>
|
|
|
74d256 |
</sect3>
|
|
|
74d256 |
|
|
|
74d256 |
</sect2>
|
|
|
74d256 |
|
|
|
74d256 |
<sect2 id="repo-ws-config-wc">
|
|
|
74d256 |
<title>Download Your Working Copy</title>
|
|
|
74d256 |
|
|
|
74d256 |
<para>
|
|
|
74d256 |
As convenction, to use the &TCAR;, you must register the user
|
|
|
74d256 |
name <emphasis>centos</emphasis> in your workstation, do login
|
|
|
74d256 |
with it, and download the working copy from the central
|
|
|
74d256 |
repository using the following command:
|
|
|
74d256 |
</para>
|
|
|
74d256 |
|
|
|
74d256 |
<screen>svn co https://projects.centos.org/svn/artwork /home/centos/Projects/artwork</screen>
|
|
|
c03f46 |
|
|
|
eebdc3 |
<para>
|
|
|
74d256 |
The first time you download the working copy it contains no
|
|
|
74d256 |
image files, nor documentation, or localized content inside
|
|
|
74d256 |
it. This is because all the files provided in the working copy
|
|
|
74d256 |
are source files (e.g., the files needed to produce other
|
|
|
74d256 |
files) and it is up to you the action of render them to
|
|
|
74d256 |
produce the final files (e.g., images and documentation) used
|
|
|
74d256 |
to implement &TCPCVI;.
|
|
|
eebdc3 |
</para>
|
|
|
eebdc3 |
|
|
|
eebdc3 |
<para>
|
|
|
a382c3 |
In order to complete the installation of your working copy,
|
|
|
a382c3 |
use the <function>prepare</function> functionality described
|
|
|
a382c3 |
in <xref linkend="scripts-bash-prepare" />.
|
|
|
eebdc3 |
</para>
|
|
|
eebdc3 |
|
|
|
eebdc3 |
</sect2>
|
|
|
eebdc3 |
|
|
|
eebdc3 |
</sect1>
|