|
|
e68d9f |
<sect1 id="scripts-bash-prepare">
|
|
|
d2638e |
|
|
|
271f91 |
<title>Standardizing Configuration Tasks</title>
|
|
|
eebdc3 |
|
|
|
eebdc3 |
<para>
|
|
|
d2638e |
The <function>prepare</function> functionality is the
|
|
|
d2638e |
interface the <command>centos-art.sh</command> script provides
|
|
|
d2638e |
to standardize the final configuration stuff your workstation
|
|
|
d2638e |
needs, once the working copy of &TCAR; has been downloaded
|
|
|
d2638e |
inside it already.
|
|
|
d2638e |
</para>
|
|
|
d2638e |
|
|
|
0b7bc3 |
<sect2 id="scripts-bash-prepare-syntax">
|
|
|
0b7bc3 |
<title>Syntax</title>
|
|
|
0b7bc3 |
|
|
|
d2638e |
<para>
|
|
|
eebdc3 |
Assuming this is the very first time you run the
|
|
|
eebdc3 |
<command>centos-art.sh</command> script, you'll find that
|
|
|
eebdc3 |
it isn't found in your workstation. This is correct because
|
|
|
a714a6 |
you haven't created the symbolic link that make it available
|
|
|
a714a6 |
in the execution path, yet. In order to make the
|
|
|
a714a6 |
<command>centos-art.sh</command> script available in the
|
|
|
a714a6 |
execution path of your workstation, you need to run it using
|
|
|
a714a6 |
its absolute path first:
|
|
|
eebdc3 |
</para>
|
|
|
eebdc3 |
|
|
|
0b7bc3 |
<screen>~/artwork/trunk/Scripts/Bash/centos-art.sh prepare [OPTIONS]</screen>
|
|
|
eebdc3 |
|
|
|
eebdc3 |
<para>
|
|
|
eebdc3 |
Later, once the <command>centos-art.sh</command> script is
|
|
|
eebdc3 |
available in the execution path of your system, there is no
|
|
|
eebdc3 |
need for you to use the absolute path again. From this time
|
|
|
eebdc3 |
on, you can use the <command>centos-art</command> command-line
|
|
|
eebdc3 |
interface directly, as the following example describes:
|
|
|
eebdc3 |
</para>
|
|
|
eebdc3 |
|
|
|
eebdc3 |
<screen>centos-art prepare [OPTIONS]</screen>
|
|
|
eebdc3 |
|
|
|
0b7bc3 |
</sect2>
|
|
|
0b7bc3 |
|
|
|
0b7bc3 |
<sect2 id="scripts-bash-prepare-options">
|
|
|
0b7bc3 |
<title>Options</title>
|
|
|
0b7bc3 |
|
|
|
eebdc3 |
<para>
|
|
|
d2638e |
The <function>prepare</function> functionality accepts the
|
|
|
d2638e |
following options:
|
|
|
d2638e |
</para>
|
|
|
d2638e |
|
|
|
d2638e |
<variablelist>
|
|
|
d2638e |
<varlistentry>
|
|
|
d2638e |
<term><option>--quiet</option></term>
|
|
|
d2638e |
<listitem>
|
|
|
d2638e |
<para>
|
|
|
d2638e |
Supress all output messages except error messages. When this
|
|
|
d2638e |
option is passed, all confirmation requests are supressed and
|
|
|
d2638e |
a possitive answer is assumed for them, just as if the
|
|
|
a714a6 |
<option>--answer-yes</option> option whould have been provided.
|
|
|
d2638e |
</para>
|
|
|
d2638e |
</listitem>
|
|
|
d2638e |
</varlistentry>
|
|
|
d2638e |
|
|
|
d2638e |
<varlistentry>
|
|
|
d2638e |
<term><option>--answer-yes</option></term>
|
|
|
d2638e |
<listitem>
|
|
|
d2638e |
<para>
|
|
|
d2638e |
Assume <emphasis>yes</emphasis> to all confirmation requests.
|
|
|
d2638e |
</para>
|
|
|
d2638e |
</listitem>
|
|
|
d2638e |
</varlistentry>
|
|
|
d2638e |
|
|
|
d2638e |
<varlistentry>
|
|
|
d2638e |
<term><option>--packages</option></term>
|
|
|
d2638e |
<listitem>
|
|
|
d2638e |
<para>
|
|
|
a714a6 |
This option verifies packeges required by
|
|
|
a714a6 |
<command>centos-art.sh</command> script. installs or updates
|
|
|
a714a6 |
required packages. When required packages aren't installed,
|
|
|
f6191b |
this option uses <command>sudo yum install</command> command
|
|
|
f6191b |
to perform the installation task. When required packages are
|
|
|
f6191b |
installed, this option uses <command>sudo yum update</command>
|
|
|
f6191b |
to update them, if there is any related actualization to be
|
|
|
f6191b |
applied on. In both cases, it is required that you configure
|
|
|
f6191b |
the <filename>/etc/sudoers</filename> configuration file
|
|
|
2993e2 |
first, as discribed in <xref linkend="repo-ws-config-sudoers" />.
|
|
|
d2638e |
</para>
|
|
|
f6191b |
|
|
|
d2638e |
</listitem>
|
|
|
d2638e |
</varlistentry>
|
|
|
d2638e |
|
|
|
d2638e |
<varlistentry>
|
|
|
0b7bc3 |
<term><option>--locales</option></term>
|
|
|
0b7bc3 |
<listitem>
|
|
|
0b7bc3 |
<para>
|
|
|
0b7bc3 |
This option creates or updates the machine object (MO) file
|
|
|
0b7bc3 |
used by <application>gettext</application> to retrive
|
|
|
0b7bc3 |
translated strings when <command>centos-art.sh</command>
|
|
|
0b7bc3 |
script is running. This option is a call to the
|
|
|
0b7bc3 |
<option>--update</option> option of
|
|
|
0b7bc3 |
<function>locale</function> functionality, as described in
|
|
|
0b7bc3 |
<xref linkend="scripts-bash-locale" />.
|
|
|
0b7bc3 |
</para>
|
|
|
0b7bc3 |
</listitem>
|
|
|
0b7bc3 |
</varlistentry>
|
|
|
0b7bc3 |
|
|
|
0b7bc3 |
<varlistentry>
|
|
|
d2638e |
<term><option>--links</option></term>
|
|
|
d2638e |
<listitem>
|
|
|
d2638e |
<para>
|
|
|
a714a6 |
This option maintains the file relation between your working
|
|
|
a714a6 |
copy and configuration files inside your workstation through
|
|
|
a714a6 |
symbolic links. When you provide this option, the
|
|
|
a714a6 |
<command>centos-art.sh</command> puts itself into your
|
|
|
a714a6 |
system's execution path through its command line interface
|
|
|
a714a6 |
<command>centos-art</command> and makes common brushes,
|
|
|
a714a6 |
patterns, palettes and fonts inside the working copy,
|
|
|
a714a6 |
available to applications like GIMP in order for you to make
|
|
|
a714a6 |
use of them without loosing version control over them.
|
|
|
d2638e |
</para>
|
|
|
a2d108 |
<caution>
|
|
|
a2d108 |
<para>
|
|
|
a2d108 |
This option removes all common fonts, brushes, patterns, and
|
|
|
a714a6 |
palettes currently installed in your home directory, in order
|
|
|
a714a6 |
to create a fresh installation of them all again, using the
|
|
|
a2d108 |
working copy as reference.
|
|
|
a2d108 |
</para>
|
|
|
a2d108 |
</caution>
|
|
|
d2638e |
</listitem>
|
|
|
d2638e |
</varlistentry>
|
|
|
d2638e |
|
|
|
d2638e |
<varlistentry>
|
|
|
d2638e |
<term><option>--images</option></term>
|
|
|
d2638e |
<listitem>
|
|
|
d2638e |
<para>
|
|
|
d2638e |
This option initializes image files inside the working copy.
|
|
|
d2638e |
When you provide this option, the
|
|
|
d2638e |
<command>centos-art.sh</command> scripts renders image files
|
|
|
d2638e |
from all design models available in the working copy. This
|
|
|
a714a6 |
step is required in order to satisfy file dependencies among
|
|
|
d2638e |
different components inside the working copy.
|
|
|
d2638e |
</para>
|
|
|
d2638e |
</listitem>
|
|
|
d2638e |
</varlistentry>
|
|
|
d2638e |
|
|
|
d2638e |
<varlistentry>
|
|
|
d2638e |
<term><option>--manuals</option></term>
|
|
|
d2638e |
<listitem>
|
|
|
d2638e |
<para>
|
|
|
d2638e |
This option initializes documentation files inside the working
|
|
|
d2638e |
copy. When you provide this option, the
|
|
|
d2638e |
<command>centos-art.sh</command> script renders all
|
|
|
a714a6 |
documentation manuals from their related source files to
|
|
|
a714a6 |
different output formats, so you can read them nicely.
|
|
|
eebdc3 |
</para>
|
|
|
d2638e |
</listitem>
|
|
|
d2638e |
</varlistentry>
|
|
|
d2638e |
|
|
|
d2638e |
<varlistentry>
|
|
|
0b7bc3 |
<term><option>--see-environment</option></term>
|
|
|
d2638e |
<listitem>
|
|
|
d2638e |
<para>
|
|
|
d2638e |
Print the name and value of some of the environment variables
|
|
|
a714a6 |
used by <command>centos-art.sh</command> scripts as described
|
|
|
0b7bc3 |
in <xref linkend="scripts-bash-environment" />.
|
|
|
0b7bc3 |
</para>
|
|
|
0b7bc3 |
</listitem>
|
|
|
0b7bc3 |
</varlistentry>
|
|
|
0b7bc3 |
|
|
|
0b7bc3 |
<varlistentry>
|
|
|
0b7bc3 |
<term><option>--set-environment</option></term>
|
|
|
0b7bc3 |
<listitem>
|
|
|
0b7bc3 |
<para>
|
|
|
0b7bc3 |
Set default environment values to your personal profile
|
|
|
0b7bc3 |
(<filename>~/.bash_profile</filename>).
|
|
|
d2638e |
</para>
|
|
|
d2638e |
</listitem>
|
|
|
d2638e |
</varlistentry>
|
|
|
d2638e |
</variablelist>
|
|
|
d2638e |
|
|
|
0b7bc3 |
</sect2>
|
|
|
0b7bc3 |
|
|
|
0b7bc3 |
<sect2 id="script-bash-prepare-description">
|
|
|
0b7bc3 |
<title>Description</title>
|
|
|
0b7bc3 |
|
|
|
d2638e |
<para>
|
|
|
a714a6 |
When no option is provided to <function>prepare</function>
|
|
|
a714a6 |
functionality, the <command>centos-art.sh</command> script
|
|
|
0b7bc3 |
uses the <option>--set-environment</option>,
|
|
|
0b7bc3 |
<option>--packages</option>, <option>--locales</option>
|
|
|
a714a6 |
<option>--links</option>, <option>--images</option> and
|
|
|
a714a6 |
<option>--manuals</option> options as default behaviour.
|
|
|
a714a6 |
Otherwise, if you provide any option, the
|
|
|
a714a6 |
<command>centos-art.sh</command> script avoids its default
|
|
|
a714a6 |
behaviour and executes the <function>prepare</function>
|
|
|
a714a6 |
functionality as specified by the options you provides.
|
|
|
d2638e |
</para>
|
|
|
d2638e |
|
|
|
d2638e |
<para>
|
|
|
a714a6 |
Notice that it is possible for you to execute the
|
|
|
0b7bc3 |
<function>prepare</function> functionality as many times as
|
|
|
d2638e |
you need to. This is specially useful when you need to keep
|
|
|
d2638e |
syncronized the relation between content produced inside your
|
|
|
d2638e |
working copy and the applications you use outside it. For
|
|
|
d2638e |
example, considering you've added new brushes to or removed
|
|
|
d2638e |
old brushes from your working copy of &TCAR;, the link
|
|
|
d2638e |
information related to those files need to be updated in the
|
|
|
d2638e |
<filename class="directory">~/.gimp-2.2/brushes</filename>
|
|
|
d2638e |
directory too, in a way the addition/deletion change that took
|
|
|
d2638e |
place in your working copy can be reflected there, as well.
|
|
|
d2638e |
The same is true for other similar components like fonts,
|
|
|
d2638e |
patterns and palettes.
|
|
|
d2638e |
</para>
|
|
|
d2638e |
|
|
|
0b7bc3 |
</sect2>
|
|
|
874f49 |
|
|
|
0b7bc3 |
<sect2 id="script-bash-prepare-environment">
|
|
|
0b7bc3 |
<title>Environment</title>
|
|
|
874f49 |
<para>
|
|
|
0b7bc3 |
...
|
|
|
874f49 |
</para>
|
|
|
0b7bc3 |
</sect2>
|
|
|
874f49 |
|
|
|
0b7bc3 |
<sect2 id="script-bash-prepare-authors">
|
|
|
0b7bc3 |
<title>Authors</title>
|
|
|
874f49 |
<para>
|
|
|
0b7bc3 |
The following people have worked in the
|
|
|
0b7bc3 |
<function>prepare</function> functionality:
|
|
|
874f49 |
</para>
|
|
|
0b7bc3 |
<itemizedlist>
|
|
|
0b7bc3 |
<listitem>
|
|
|
874f49 |
<para>
|
|
|
0b7bc3 |
Alain Reguera Delgado <<ulink url="mailto:alain.reguera@gmail.com">alain.reguera@gmail.com</ulink>>
|
|
|
874f49 |
</para>
|
|
|
0b7bc3 |
</listitem>
|
|
|
0b7bc3 |
</itemizedlist>
|
|
|
0b7bc3 |
</sect2>
|
|
|
874f49 |
|
|
|
0b7bc3 |
<sect2 id="scripts-bash-prepare-licence">
|
|
|
0b7bc3 |
<title>License</title>
|
|
|
874f49 |
<para>
|
|
|
0b7bc3 |
<screen>Copyright (C) 2009-2012 The CentOS Project
|
|
|
0b7bc3 |
|
|
|
0b7bc3 |
This program is free software; you can redistribute it and/or modify
|
|
|
0b7bc3 |
it under the terms of the GNU General Public License as published by
|
|
|
0b7bc3 |
the Free Software Foundation; either version 2 of the License, or (at
|
|
|
0b7bc3 |
your option) any later version.
|
|
|
0b7bc3 |
|
|
|
0b7bc3 |
This program is distributed in the hope that it will be useful, but
|
|
|
0b7bc3 |
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
0b7bc3 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
0b7bc3 |
General Public License for more details.
|
|
|
0b7bc3 |
|
|
|
0b7bc3 |
You should have received a copy of the GNU General Public License
|
|
|
0b7bc3 |
along with this program; if not, write to the Free Software
|
|
|
0b7bc3 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</screen>
|
|
|
874f49 |
</para>
|
|
|
874f49 |
</sect2>
|
|
|
874f49 |
|
|
|
e68d9f |
</sect1>
|