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