Blame Manuals/Repository/repository-latex/Workstation/configuration.tex

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