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