Blame Manual/repository-latex/centos-art.sh-latex/Workstation/configuration.tex

0668a4
% Part   : Preparing Your Workstation
0668a4
% Chapter: Configuration
0668a4
% ------------------------------------------------------------
0668a4
% $Id: configuration.tex 6191 2010-08-02 02:36:14Z al $
0668a4
% ------------------------------------------------------------
0668a4
0668a4
This chapter describes configurations you need to set up before using
0668a4
CentOS Artwork Repository.
0668a4
0668a4
\section{Firewall}
0668a4
0668a4
The CentOS Artwork Repository lives on the following URL:
0668a4
0668a4
\begin{quote}
0668a4
https://projects.centos.org/svn/artwork/
0668a4
\end{quote}
0668a4
0668a4
To reach this location you need to have Internet access and be sure no
0668a4
rule in your firewall is denying this site. Note that the URL uses the
0668a4
SSL protocol (port 443).
0668a4
0668a4
\section{Subversion Behind Squid}
0668a4
0668a4
Sometimes it is convenient to proxy Subversion client's requests
0668a4
through a proxy-cache server like Squid. In cases like this, the Squid
0668a4
proxy server is in the middle between you and CentOS Artwork
0668a4
Repository. If you want to proxy Subversion client's requests through
0668a4
Squid proxy-cache server, you need to configure your Subversion client
0668a4
and your Squid proxy server to do so.
0668a4
0668a4
\subsection{Subversion Client Configuration}
0668a4
0668a4
Subversion client needs to be configured to send requests to your
0668a4
Squid proxy-cache server. This configuration takes place in the file
0668a4
\texttt{$\sim$/.subversion/servers}.
0668a4
0668a4
\subsection{Squid Server Configuration}
0668a4
0668a4
Squid proxy-cache server needs to be configured to accept the
0668a4
extension methods \texttt{REPORT MERGE MKACTIVITY CHECKOUT MKCOL}.
0668a4
This configuration takes place in the file
0668a4
\texttt{/etc/squid/squid.conf}, specifically in the configuration tag
0668a4
illustrated in \autoref{fig:Workstation:Configuration:Squid}.
0668a4
0668a4
\begin{figure}[!hbp]
0668a4
\hrulefill
0668a4
\begin{verbatim}
0668a4
#  TAG: extension_methods
0668a4
#       Squid only knows about standardized HTTP request methods.
0668a4
#       You can add up to 20 additional "extension" methods here.
0668a4
#
0668a4
#Default:
0668a4
# none
0668a4
extension_methods REPORT MERGE MKACTIVITY CHECKOUT MKCOL
0668a4
\end{verbatim}
0668a4
\hrulefill
0668a4
\caption{Squid configuration to proxy Subversion client's requests.%
0668a4
   \label{fig:Workstation:Configuration:Squid}}
0668a4
\end{figure}
0668a4
0668a4
\section{Working Copy}
0668a4
0668a4
A Subversion working copy is an ordinary directory tree on your local
0668a4
system, containing a collection of files (i.e.  Translations, Designs,
0668a4
Manuals, and Scripts). You can edit these files however you wish. Your
0668a4
working copy is your own private work area: Subversion will never
0668a4
incorporate other people's changes, nor make your own changes
0668a4
available to others, until you explicitly tell it to do so.  You can
0668a4
even have multiple working copies of the same project.\footnote{Even
0668a4
this is basically correct, doing so when using CentOS Artowrk
0668a4
Repository can bring some confusion when executing scripts. Presently,
0668a4
only one absolute path can be defined as absolute path for scripts'
0668a4
execution.  You can have as many working copies of CentOS Artwork
0668a4
Repository as you want but scripts will be executed from just one
0668a4
working copy absolute path. That is, the one stored under
0668a4
\texttt{/home/centos/artwork/}}.
0668a4
0668a4
Once you've made some changes to your working copy files and verified
0668a4
that they work properly, Subversion provides you with commands to
0668a4
``publish'' your changes to the other people working with you on your
0668a4
project (by writing to the repository). If other people publish their
0668a4
own changes, Subversion provides you with commands to merge those
0668a4
changes into your working directory (by reading from the repository).
0668a4
0668a4
\begin{figure}[!hbp]
0668a4
\hrulefill
0668a4
\begin{verbatim}
0668a4
svn co https://projects.centos.org/svn/artwork /home/centos/
0668a4
\end{verbatim}
0668a4
\hrulefill
0668a4
\caption{Subversion command used to download the working copy.%
0668a4
   \label{fig:Workstation:WC:Download}}
0668a4
\end{figure}
0668a4
0668a4
The subversion command illustrated in
0668a4
\autoref{fig:Workstation:WC:Download} brings a CentOS Artwork
0668a4
Repository working copy down to your workstation, specifically to your
0668a4
home directory (\texttt{/home/centos/artwork/}). This process may take
0668a4
some time.  Once the working copy is available in your workstation,
0668a4
you are ready to start exploring and improving available works.
0668a4
0668a4
Note that you need to have a username called \texttt{centos} in your
0668a4
system.  If you don't have it, you can create it using the comand
0668a4
\texttt{useradd} as superuser (\texttt{root}).
0668a4
0668a4
\subsection{Standardizing Absolute Path}
0668a4
0668a4
When using Inkscape to import raster images inside SVG files the
0668a4
absolute image path is required. If everyone stores the working copy
0668a4
on a different absolute path imported images will not be loaded in
0668a4
those location different from those they were conceived. There is no
0668a4
way to find the right absolute image path but defining a convenction
0668a4
about it. 
0668a4
0668a4
On a path string (e.g., /home/centos/artwork/trunk/) the username
0668a4
(`centos') is the variable component, so it is the component we need
0668a4
to standardize--in the sake of keeping the working copy inside user's
0668a4
/home/ structure. Thus, analysing which username to use, the CentOS
0668a4
Project is what join us all together, so the `centos' word in
0668a4
lower-case seems to be a nice choise for us to use as common username. 
0668a4
0668a4
\section{User Identification}
0668a4
0668a4
At this point you probably have made some changes inside your working
0668a4
copy and wish to publish them.  To publish your changes on CentOS
0668a4
Artwork Repository you need to have a registered account with commit
0668a4
privilege in CentOS Artwork Repository.
0668a4
0668a4
If you are new in CentOS Artwork Repository it is possible that you
0668a4
can't commit your changes. That is because new registered accounts
0668a4
haven't commit privilege set by default.  In order for your registered
0668a4
account to have commit privilege inside CentOS Artwork Repository you
0668a4
need to request it. See section
0668a4
\ref{sec:Configuration:User:Privileges}.
0668a4
0668a4
\subsection{User Account Registration}
0668a4
\label{sec:Configuration:Account}
0668a4
0668a4
To register a user account inside CentOS Artwork Repository, you need
0668a4
to go to the following URL:
0668a4
0668a4
\begin{quote}
0668a4
\url{https://projects.centos.org/trac/artwork/}
0668a4
\end{quote}
0668a4
0668a4
\subsection{User Account Privileges}
0668a4
\label{sec:Configuration:User:Privileges}
0668a4
0668a4
To have commit privileges in CentOS Artwork Repository it is needed
0668a4
that you show your interest first, preferably with something useful
0668a4
like a new or improved design, translation, manual, or script. As
0668a4
convenction, people working on CentOS Artwork Repository share ideas
0668a4
in the mailing list
0668a4
\href{mailto:centos-devel@centos.org}{centos-devel@centos.org}. If you
0668a4
are interested in joining us go there and express yourself.
0668a4
0668a4
\section{Repository Tagged Revisions}
0668a4
0668a4
The CentOS Artwork Repository is also available as tagged revisions.
0668a4
Tagged revisions are checkpoints on the CentOS Artwork Repository
0668a4
developing lifetime. They are inmutable copies of the CentOS Artwork
0668a4
Repository state through time.  Tagged revisions contain the files
0668a4
used to produce images but not images themselves.  Inside tagged
0668a4
revisions you can find scripts (\texttt{.sh}), design templates
0668a4
(\texttt{.svg}), translation files (\texttt{\.sed}), gimp projects
0668a4
(\texttt{.xcf}), and documetation files (\texttt{.tex}).
0668a4
0668a4
CentOS Artowrk Repository tagged revisions are available for
0668a4
downloading in the following location:
0668a4
0668a4
\begin{description}
0668a4
\item[URL:] https://projects.centos.org/svn/artwork/tags
0668a4
\end{description}
0668a4
0668a4
and alternatively, you can find references in the CentOS Project's
0668a4
wiki, specifically in the ArtWork page:
0668a4
0668a4
\begin{description}
0668a4
\item[URL:] http://wiki.centos.org/ArtWork
0668a4
\end{description}