Blame Manuals/Repository/repository-html/repository_61.html

4c79b5
4c79b5
<html>
ccb7a3
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
-->
acd47b
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>
c2a1bc
<title>CentOS Artwork Repository: 3.58 trunk/Scripts/Bash/Functions/Verify</title>
4c79b5
c2a1bc
<meta name="description" content="CentOS Artwork Repository: 3.58 trunk/Scripts/Bash/Functions/Verify">
c2a1bc
<meta name="keywords" content="CentOS Artwork Repository: 3.58 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
300762
c2a1bc
[ < ]
c2a1bc
[ > ]
4c79b5
   
38bcd9
[ << ]
38bcd9
[ Up ]
c2a1bc
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
c2a1bc
[Index]
4c79b5
[ ? ]
4c79b5
c2a1bc
c2a1bc
c2a1bc

3.58 trunk/Scripts/Bash/Functions/Verify

2dc146
2dc146
c2a1bc
2dc146

3.58.1 Goals

2dc146
c2a1bc

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

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

2dc146
c2a1bc
2dc146

3.58.2 Description

2dc146
c2a1bc

The first time you download CentOS Artwork Repository you need to

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

c2a1bc

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

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

2b5e61
c2a1bc
c2a1bc

3.58.2.1 Packages

c2a1bc
c2a1bc

Installation of auxiliar RPM packages provides the software required

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

c2a1bc
info

Note

Configuration of third party repositories inside CentOS

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

c2a1bc
c2a1bc

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

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

c2a1bc

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

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

c2a1bc
c2a1bc
c2a1bc

3.58.2.2 Links

2b5e61
c2a1bc

Creation of symbolic links helps us to alternate between different

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

c2a1bc

Creation of symbolic links helps us to reuse components from repository

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

c2a1bc

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

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

c2a1bc
c2a1bc
c2a1bc

3.58.2.3 Environment variables

c2a1bc
c2a1bc

Definition of environemnt variables helps us to set default values to

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

c2a1bc

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

c2a1bc
evaluates the following environment variables:
2dc146

2dc146
c2a1bc
EDITOR
c2a1bc

Default text editor.

2dc146

c2a1bc

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

c2a1bc
pre-commit subversion messages, translation files, configuration
c2a1bc
files, script files, and similar text-based files.
2dc146

c2a1bc

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

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

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

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

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

    7bbd70
    c2a1bc
    TEXTDOMAIN
    c2a1bc
    c2a1bc

    Default domain used to retrieve translated messages. This variable is

    c2a1bc
    set in <tt>`initFunctions.sh'</tt> and shouldn't be changed.
    2dc146

    7fa1fb
    c2a1bc
    TEXTDOMAINDIR
    c2a1bc
    c2a1bc

    Default directory used to retrieve translated messages. This variable

    c2a1bc
    is set in <tt>`initFunctions.sh'</tt> and shouldn't be changed.
    2dc146

    7fa1fb
    c2a1bc
    LANG
    c2a1bc
    c2a1bc

    Default locale information.

    2dc146

    c2a1bc

    This variable is initially set in the configuration process of CentOS

    c2a1bc
    distribution installer (i.e., Anaconda), specifically in the
    c2a1bc
    <samp>`Language'</samp> step; or once installed using the
    c2a1bc
    system-config-language tool.
    4a9d2a

    c2a1bc

    The <tt>`centos-art.sh'</tt> script uses the LANG environment

    c2a1bc
    variable to know in which language the script messages are printed
    c2a1bc
    out.
    fa7cae

    7fa1fb
    c2a1bc
    TZ
    c2a1bc
    c2a1bc

    Default time zone representation.

    fa7cae

    c2a1bc

    This variable is initially set in the configuration process of CentOS

    c2a1bc
    distribution installer (i.e., Anaconda), specifically in the
    c2a1bc
    <samp>`Date and time'</samp> step; or once installed using the
    c2a1bc
    system-config-date tool.
    7bbd70

    c2a1bc

    The <tt>`centos-art.sh'</tt> script doesn't use the TZ environment

    c2a1bc
    variable information at all. Instead, this variable is used by the
    c2a1bc
    system shell to show the time information according to your phisical
    c2a1bc
    location on planet Earth.  
    7bbd70

    c2a1bc

    Inside your computer, the time information is firstly set in the BIOS

    c2a1bc
    clock (which may need correction), and later in the configuration
    c2a1bc
    process of CentOS distribution installer (or later, by any of the
    c2a1bc
    related configuration tools inside CentOS distribution).  Generally,
    c2a1bc
    setting time information is a straight-forward task and configuration
    c2a1bc
    tools available do cover most relevant location. However, if you need
    c2a1bc
    a time precision not provided by the configuration tools available
    c2a1bc
    inside CentOS distribution then, using TZ variable may be
    c2a1bc
    necessary.
    7fa1fb

    c2a1bc
    Convenction

    Convenction

    In order to keep changes syncronized between

    c2a1bc
    central repository and its working copies: configure both repository
    c2a1bc
    server and workstations (i.e., the place where each working copy is
    c2a1bc
    set on) to use Coordinated Universal Time (UTC) as base time
    c2a1bc
    representation.  Later, correct the time information for your specific
    c2a1bc
    location using time zone correction.
    c2a1bc

    7fa1fb
    c2a1bc

    The format of TZ environment variable is described in

    c2a1bc
    <tt>`tzset(3)'</tt> manual page.
    7fa1fb

    c2a1bc
    c2a1bc
    2b5e61
    c2a1bc
    c2a1bc
    008ee0

    3.58.3 Usage

    2c8180
    2dc146
    c2a1bc
    centos-art verify --packages
    c2a1bc
    c2a1bc

    Verify required packages your workstation needs in order to run the

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

    c2a1bc

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

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

    c2a1bc
    c2a1bc
    centos-art verify --links
    c2a1bc
    c2a1bc

    Verify required links your workstation needs in order to run the

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

    c2a1bc

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

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

    c2a1bc

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

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

    c2a1bc
    c2a1bc
    centos-art verify --environment
    c2a1bc
    centos-art verify --environment --filter='regex'
    c2a1bc
    c2a1bc

    Output a brief description of environment variables used by

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

    c2a1bc

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

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

    2dc146
    2dc146
    2dc146
    2c8180
    c2a1bc
    008ee0

    3.58.4 See also

    2c8180
    4a9d2a
    c2a1bc
    3.48 trunk/Scripts/Bash  
    4a9d2a
    c2a1bc
    3.49 trunk/Scripts/Bash/Functions  
    4a9d2a
    4a9d2a
    c9b54d
    035049
    300762
    c2a1bc
    [ < ]
    c2a1bc
    [ > ]
    300762
       
    38bcd9
    [ << ]
    c2a1bc
    [ Up ]
    c2a1bc
    [ >> ]
    300762
    4c79b5

    4c79b5
     <font size="-1">
    acd47b
      This document was generated on February, 26 2011 using texi2html 1.76.
    4c79b5
     </font>
    4c79b5
     
    4c79b5
    4c79b5

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