Blame Manuals/en/Html/Repository/repository_51.html

4c79b5
4c79b5
<html>
09d4f2
09d4f2
09d4f2
The CentOS Artwork Repository exists to organize and automate The
09d4f2
CentOS Project corporate visual identity (, to
09d4f2
start on).
4c79b5
6c4982
Copyright C 2009, 2010 Alain Reguera Delgado. All rights
4c79b5
reserved.
4c79b5
4c79b5
Permission is granted to copy, distribute and/or modify this document
4c79b5
under the terms of the GNU Free Documentation License, Version 1.2 or
4c79b5
any later version published by the Free Software Foundation; with no
4c79b5
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
4c79b5
copy of the license is included in the section entitled GNU Free
4c79b5
Documentation License.  
4c79b5
-->
008ee0
4c79b5
4c79b5
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
4c79b5
            Karl Berry  <karl@freefriends.org>
4c79b5
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
4c79b5
            and many others.
4c79b5
Maintained by: Many creative people <dev@texi2html.cvshome.org>
4c79b5
Send bugs and suggestions to <users@texi2html.cvshome.org>
4c79b5
4c79b5
-->
4c79b5
<head>
54b5a5
<title>CentOS Artwork Repository: 3.48 trunk/Scripts/Bash/Functions/Verify</title>
4c79b5
54b5a5
<meta name="description" content="CentOS Artwork Repository: 3.48 trunk/Scripts/Bash/Functions/Verify">
54b5a5
<meta name="keywords" content="CentOS Artwork Repository: 3.48 trunk/Scripts/Bash/Functions/Verify">
4c79b5
<meta name="resource-type" content="document">
4c79b5
<meta name="distribution" content="global">
4c79b5
<meta name="Generator" content="texi2html 1.76">
4c79b5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4c79b5
<style type="text/css">
4c79b5
1e9202
@import "/home/centos/artwork/trunk/Identity/Models/Css/Texi2html/common.css";
4c79b5
4c79b5
a.summary-letter {text-decoration: none}
4c79b5
pre.display {font-family: serif}
4c79b5
pre.format {font-family: serif}
4c79b5
pre.menu-comment {font-family: serif}
4c79b5
pre.menu-preformatted {font-family: serif}
4c79b5
pre.smalldisplay {font-family: serif; font-size: smaller}
4c79b5
pre.smallexample {font-size: smaller}
4c79b5
pre.smallformat {font-family: serif; font-size: smaller}
4c79b5
pre.smalllisp {font-size: smaller}
4c79b5
span.sansserif {font-family:sans-serif; font-weight:normal;}
4c79b5
ul.toc {list-style: none}
4c79b5
-->
4c79b5
</style>
4c79b5
4c79b5
4c79b5
</head>
4c79b5
4c79b5
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
4c79b5
4c79b5
54b5a5
[ < ]
54b5a5
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
54b5a5
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
54b5a5
[Index]
4c79b5
[ ? ]
4c79b5
54b5a5
54b5a5
54b5a5

3.48 trunk/Scripts/Bash/Functions/Verify

bc3531
081970
54b5a5
55c2ff

3.48.1 Goals

b8013f
54b5a5

This section exists to organize files related to <tt>`centos-art.sh'</tt>

54b5a5
script <samp>`verify'</samp> functionality.  The <samp>`verify'</samp>
54b5a5
functionality of <tt>`centos-art.sh'</tt> script helps you to verify the
54b5a5
workstation configuration you are planning to use as host for your
54b5a5
working copy of CentOS Artwork Repository.
2c8180

b8013f
54b5a5
55c2ff

3.48.2 Description

081970
54b5a5

The first time you download CentOS Artwork Repository you need to

54b5a5
configure your workstation in order to use <tt>`centos-art.sh'</tt>
54b5a5
script.  These preliminar configurations are based mainly on auxiliar
54b5a5
RPM packages installation, symbolic links creations, and environment
54b5a5
variables definitions.  The <samp>`verify'</samp> functionality of
54b5a5
<tt>`centos-art.sh'</tt> script guides you through this preliminar
54b5a5
configuration process.  
54b5a5

54b5a5

If this is the first time you run <tt>`centos-art.sh'</tt> script, the

54b5a5
appropriate way to use its <samp>`verify'</samp> functionality is not using
54b5a5
the <tt>`centos-art.sh'</tt> script directly, but the absolute path to
54b5a5
centos-art.sh script instead (i.e.,
54b5a5
<tt>`~/artwork/trunk/Scripts/Bash/centos-art.sh'</tt>).  This is necessary
54b5a5
because <tt>`centos-art'</tt> symbolic link, under <tt>`~/bin/'</tt>
54b5a5
directory, has not been created yet.
008ee0

008ee0
54b5a5
54b5a5

3.48.2.1 Packages

008ee0
54b5a5

Installation of auxiliar RPM packages provides the software required

54b5a5
to manipulate files inside the repository (e.g., image files,
54b5a5
documentation files, translation files, script files, etc.). Most of
54b5a5
RPM packages centos-art.sh script uses are shipped with
54b5a5
CentOS distribution, and can be installed from CentOS base repository.
54b5a5
The only exception is <samp>`inkscape'</samp>, the package we use to
54b5a5
manipulate SVG files.  The <samp>`inkscape'</samp> package is not inside
54b5a5
CentOS distribution so it needs to be installed from third party
54b5a5
repositories.
008ee0

54b5a5
info

Note

Configuration of third party repositories inside CentOS

54b5a5
distribution is described in CentOS wiki, specifically in the
54b5a5
following URL:
54b5a5
http://wiki.centos.org/AdditionalResources/Repositories
54b5a5

54b5a5
54b5a5

Before installing packages, the <tt>`centos-art.sh'</tt> script uses

54b5a5
sudo to request root privileges to execute yum's
54b5a5
installation functionality.  If your user isn't defined as a
54b5a5
privileged user--at least to run yum commands-- inside
54b5a5
<tt>`/etc/sudoers'</tt> configuration file, you will not be able to
54b5a5
perform package installation tasks as set in <tt>`centos-art.sh'</tt>
54b5a5
script <samp>`verify'</samp> functionality. 
008ee0

54b5a5

Setting sudo privileges to users is an administrative task you have to

54b5a5
do by yourself. If you don't have experience with sudo
54b5a5
command, please read its man page running the command: man
54b5a5
sudo. This reading will be very useful, and with some practice, you
54b5a5
will be able to configure your users to have sudo
54b5a5
privileges.
008ee0

54b5a5
54b5a5
54b5a5

3.48.2.2 Links

54b5a5
54b5a5

Creation of symbolic links helps us to alternate between different

54b5a5
implementations of <tt>`centos-art.sh'</tt> script-line (e.g.,
54b5a5
<tt>`centos-art.sh'</tt>, for Bash implementation; <tt>`centos-art.py'</tt>,
54b5a5
for Python implementation; <tt>`centos-art.pl'</tt>, for Perl
54b5a5
implementation; and so on for other implementations). The
54b5a5
<tt>`centos-art.sh'</tt> script-line definition takes place inside your
54b5a5
personal binary (<tt>`~/bin/'</tt>) directory in order to make the script
54b5a5
implementation --the one that <tt>`centos-art'</tt> links to-- available
54b5a5
to PATH environment variable.
008ee0

54b5a5

Creation of symbolic links helps us to reuse components from repository

54b5a5
working copy. For example, color information files maintained inside
54b5a5
your working copy must never be duplicated inside program-specific
54b5a5
configuration directories that uses them in your workstation (e.g.,
54b5a5
Gimp, Inkscape, etc.).  Instead, a symbolic link must be created for
54b5a5
each one of them, from program-specific configuration directories to
54b5a5
files in the working copy.  In this configuration, when someone
54b5a5
commits changes to color information files up to central repository,
54b5a5
they--the changes committed-- will be immediatly available to your
54b5a5
programs the next time you update your working copy --the place
54b5a5
inside your workstation those color information files are stored--.
2c8180

54b5a5

Creation of symbolic links helps us to make <tt>`centos-art.sh'</tt>

54b5a5
script functionalities available outside <tt>`trunk/'</tt> repository
54b5a5
directory structure, but at its same level in repository tree. This is
54b5a5
useful if you need to use the "render" functionality of
54b5a5
centos-art.sh under <tt>`branches/'</tt> repository directory
54b5a5
structure as you usually do inside <tt>`trunk/'</tt> repository directory
54b5a5
structure. As consequence of this configuration, automation scripts
54b5a5
cannot be branched under <tt>`branches/Scripts'</tt> directory structure.
2c8180

54b5a5
54b5a5
54b5a5

3.48.2.3 Environment variables

54b5a5
54b5a5

Definition of environemnt variables helps us to set default values to

54b5a5
our user session life. The user session environment variable defintion
54b5a5
takes place in the user's <tt>`~/.bash_profile'</tt> file.  The
54b5a5
<samp>`verify'</samp> functionality of <tt>`centos-art.sh'</tt> script doesn't
54b5a5
modify your <tt>`~/.bash_profile'</tt> file.  
2c8180

54b5a5

The <samp>`verify'</samp> functionality of <tt>`centos-art.sh'</tt> script

54b5a5
evaluates the following environment variables:
2c8180

54b5a5
54b5a5
EDITOR
54b5a5

Default text editor.

2c8180

54b5a5

The <tt>`centos-art.sh'</tt> script uses default text EDITOR to edit

54b5a5
pre-commit subversion messages, translation files, configuration
54b5a5
files, script files, and similar text-based files.
2c8180

54b5a5

If EDITOR environment variable is not set, <tt>`centos-art.sh'</tt>

54b5a5
script uses <tt>`/usr/bin/vim'</tt> as default text editor. Otherwise, the
54b5a5
following values are recognized by <tt>`centos-art.sh'</tt> script:
2c8180

54b5a5
    54b5a5
  • <tt>`/usr/bin/vim'</tt>
  • 54b5a5
  • <tt>`/usr/bin/emacs'</tt>
  • 54b5a5
  • <tt>`/usr/bin/nano'</tt>
  • 54b5a5
    54b5a5
    54b5a5

    If no one of these values is set in EDITOR environment variable,

    54b5a5
    <tt>`centos-art.sh'</tt> uses <tt>`/usr/bin/vim'</tt> text editor by default. 
    2c8180

    008ee0
    54b5a5
    TZ
    54b5a5
    54b5a5

    Default time zone representation.

    2c8180

    54b5a5

    Time representation inside repository server is set to Coordinated

    54b5a5
    Universal Time (UTC).  Time represetation inside repository working
    54b5a5
    copies is set as their administrators personally define.  
    2c8180

    54b5a5

    When repository working copies time representation be defined, it

    54b5a5
    would be a very good convention to follow if working copies
    54b5a5
    administrators would set their systems clock to use UTC.  Otherwise it
    54b5a5
    would be difficult for working copies users to find out when changes
    54b5a5
    were committed up to repository server exactly in time.
    2c8180

    54b5a5
    Info

    Tip

    Coordinated Univeral Time (UTC) representation can be

    54b5a5
    configured when you install CentOS distribution; or later, runing the
    54b5a5
    system-config-date command at a shell prompt from your
    54b5a5
    graphical interface.
    54b5a5

    54b5a5
    54b5a5
    info

    Note

    If you set your system clock to use UTC representation,

    54b5a5
    you also need to set the TZ environment variable inside
    54b5a5
    <tt>`~/.bash_profile'</tt> as follows:
    54b5a5

    export TZ=UTC
    54b5a5

    This is required in order for your terminal to display the correct

    54b5a5
    time information of your zone, taking UTC representation as reference.
    54b5a5

    54b5a5
    008ee0
    54b5a5
    TEXTDOMAIN
    54b5a5
    54b5a5

    Default domain used to retrieve translated messages. This value is

    54b5a5
    set in <tt>`initFunctions.sh'</tt> and shouldn't be changed.
    2c8180

    008ee0
    54b5a5
    TEXTDOMAINDIR
    54b5a5
    54b5a5

    Default directory used to retrieve translated messages. This value is

    54b5a5
    set in <tt>`initFunctions.sh'</tt> and shouldn't be changed.
    2c8180

    008ee0
    54b5a5
    LANG
    54b5a5
    54b5a5

    Default locale information. This value is set when you start your

    54b5a5
    session and can be changed using the <samp>`locale'</samp> functionality of
    54b5a5
    <tt>`centos-art.sh'</tt> script (see section trunk/Scripts/Bash/Functions/Locale, for more information).
    2c8180

    2c8180
    2c8180
    2c8180
    54b5a5
    2c8180

    3.48.3 Usage

    2c8180
    2c8180
    54b5a5
    <samp>`centos-art verify --packages'</samp>
    54b5a5

    Verify required packages your workstation needs in order to run the

    54b5a5
    <tt>`centos-art.sh'</tt> script correctly.  If there are missing packages,
    54b5a5
    the <tt>`centos-art.sh'</tt> script asks you to confirm their
    54b5a5
    installation. When installing packages, the <tt>`centos-art.sh'</tt>
    54b5a5
    script uses the yum application in order to achieve the
    54b5a5
    task.
    54b5a5

    54b5a5

    In case all packages required by <tt>`centos-art.sh'</tt> script are

    54b5a5
    already installed in your workstation, the message <samp>`The required
    54b5a5
    packages are already installed.'</samp> is output for you to know. 
    2c8180

    2c8180
    54b5a5
    <samp>`centos-art verify --links'</samp>
    54b5a5

    Verify required links your workstation needs in order to run the

    54b5a5
    centos-art command correctly.  If any required link is missing, the
    54b5a5
    centos-art.sh script asks you to confirm their installation.
    54b5a5
    To install required links, the centos-art.sh script uses the
    54b5a5
    ln command.
    008ee0

    54b5a5

    In case all links required by <tt>`centos-art.sh'</tt> script are already

    54b5a5
    created in your workstation, the message <samp>`The required links are
    54b5a5
    already installed.'</samp> is output for you to know. 
    008ee0

    54b5a5

    In case a regular file exists with the same name of a required link,

    54b5a5
    the <tt>`centos-art.sh'</tt> script outputs the <samp>`Already exists as
    54b5a5
    regular file.'</samp> message when listing required links that will be
    54b5a5
    installed. Of course, as there is already a regular file where must be
    54b5a5
    a link, no link is created. In such cases the <tt>`centos-art.sh'</tt>
    54b5a5
    script will fall into a continue installation request for that missing
    54b5a5
    link.  To end this continue request you can answer <samp>`No'</samp>, or
    54b5a5
    remove the existent regular file to let <tt>`centos-art.sh'</tt> script
    54b5a5
    install the link on its place.
    008ee0

    54b5a5
    54b5a5
    <samp>`centos-art verify --environment'</samp>
    54b5a5
    <samp>`centos-art verify --environment --filter='regex''</samp>
    54b5a5

    Output a brief description of environment variables used by

    54b5a5
    <tt>`centos-art.sh'</tt> script. 
    54b5a5

    54b5a5

    If <samp>`--filter'</samp> option is provided, output is reduced as defined in

    54b5a5
    the <samp>`regex'</samp> regular expression value. If <samp>`--filter'</samp> option
    54b5a5
    is specified but <samp>`regex'</samp> value is not, the <tt>`centos-art.sh'</tt>
    54b5a5
    script outputs information as if <samp>`--filter'</samp> option had not been
    54b5a5
    provided at all.
    54b5a5

    54b5a5
    2c8180
    54b5a5
    54b5a5
    4c79b5

    3.48.4 See also

    4c79b5
    2c8180
    54b5a5
    3.38 trunk/Scripts/Bash  
    2c8180
    54b5a5
    3.39 trunk/Scripts/Bash/Functions  
    2c8180
    2c8180
    4c79b5
    4c79b5
    4c79b5
    54b5a5
    [ < ]
    54b5a5
    [ > ]
    4c79b5
       
    4c79b5
    [ << ]
    54b5a5
    [ Up ]
    54b5a5
    [ >> ]
    4c79b5
    4c79b5

    4c79b5
     <font size="-1">
    008ee0
      This document was generated on December, 2 2010 using texi2html 1.76.
    4c79b5
     </font>
    4c79b5
     
    4c79b5
    4c79b5

    4c79b5
    </body>
    4c79b5
    </html>