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