Toolpack prerequisite CentOS5 A

From TBwiki
(Difference between revisions)
Jump to: navigation, search
m (fix format)
m (Added skip_name_resolve)
Line 1: Line 1:
This page shows the Toolpack 2-5 prerequisites for CentOS 5.5 and 5.6.
+
This page shows the Toolpack 2-5 prerequisites for CentOS 5.5 and 5.6.  
  
 
<span style="color:#B22222">
 
<span style="color:#B22222">
''WARNING'': The host MUST have CentOS 5.5 or 5.6 installed. If you don't want to update your host, please follow the [[Toolpack_prerequisite_CentOS5_2-5_manual | manual procedure]] instead.
+
''WARNING'': The host MUST have CentOS 5.5 or 5.6 installed. If you don't want to update your host, please follow the [[Toolpack prerequisite CentOS5 2-5 manual| manual procedure]] instead.
</span>
+
</span>  
  
 
<span style="color:#B22222">
 
<span style="color:#B22222">
''WARNING'': If you followed the [[Toolpack_prerequisite_CentOS5_2-5_manual | manual procedure]] on the system before, you <b>MUST NOT</b> use the steps on this page before doing a cleanup of the previously installed files. You should ask Telcobridges support for help with the cleanup.
+
''WARNING'': If you followed the [[Toolpack prerequisite CentOS5 2-5 manual| manual procedure]] on the system before, you '''MUST NOT''' use the steps on this page before doing a cleanup of the previously installed files. You should ask Telcobridges support for help with the cleanup.
</span>
+
</span>  
  
 
<span style="color:#B22222">
 
<span style="color:#B22222">
 
''WARNING'': This procedure requires internet access
 
''WARNING'': This procedure requires internet access
</span>
+
</span>  
  
== CentOS update ==
+
== CentOS update ==
  
Update your system to CentOS 5.6
+
Update your system to CentOS 5.6  
  
 
  yum update
 
  yum update
  
== TelcoBridges repository ==
+
== TelcoBridges repository ==
  
Add TelcoBridges repository file
+
Add TelcoBridges repository file  
  
 
  vim /etc/yum.repos.d/TB-Base.repo
 
  vim /etc/yum.repos.d/TB-Base.repo
  
Paste the following information in that file:
+
Paste the following information in that file:  
  
 
  # TelcoBridges-Base.repo
 
  # TelcoBridges-Base.repo
Line 47: Line 47:
 
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5-tb
 
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5-tb
  
Get TelcoBridges repository key
+
Get TelcoBridges repository key  
  
 
  cd /etc/pki/rpm-gpg/
 
  cd /etc/pki/rpm-gpg/
 
  wget http://repo.telcobridges.com/centos/RPM-GPG-KEY-CentOS-5-tb
 
  wget http://repo.telcobridges.com/centos/RPM-GPG-KEY-CentOS-5-tb
  
== Install Toolpack Prerequisites ==
+
== Install Toolpack Prerequisites ==
  
When asked to 'Importing GPG key', answer yes.
+
When asked to 'Importing GPG key', answer yes.  
  
 
  yum groupinstall Toolpack-Prerequisites
 
  yum groupinstall Toolpack-Prerequisites
  
 +
<br>
  
== Configure Toolpack Prerequisites ==
+
== Configure Toolpack Prerequisites ==
=== Configure ODBC ===
+
 
 +
=== Configure ODBC ===
  
 
  vim /etc/odbcinst.ini
 
  vim /etc/odbcinst.ini
  
Remove the '#' in front of each lines of the [MySQL] section
+
Remove the '#' in front of each lines of the [MySQL] section Modify the 'Driver' line to set the correct driver  
Modify the 'Driver' line to set the correct driver
+
  
Example for 32 bits system:
+
Example for 32 bits system:  
  
 
  [MySQL]
 
  [MySQL]
Line 75: Line 76:
 
  FileUsage      = 1
 
  FileUsage      = 1
  
 
+
<br> Example for 64 bits system:  
Example for 64 bits system:
+
  
 
  [MySQL]
 
  [MySQL]
Line 84: Line 84:
 
  FileUsage      = 1
 
  FileUsage      = 1
  
=== Configure MySQL ===
+
=== Configure MySQL ===
  
 
  vim /etc/my.cnf
 
  vim /etc/my.cnf
  
Add 2 new variables in the file under the [mysqld] section:
+
Add these variables in the file under the [mysqld] section:  
*log-bin
+
*server-id=''[UniqueId]''
+
  
The server-id needs to be a non-zero unique value (do not use 0). If you use the host redundancy feature, the value needs to be different on each host .
+
*log-bin
 +
*server-id=''[UniqueId]''
 +
*#Added to remove mysql dependency on DNS/nameserver<br>
 +
 
 +
The server-id needs to be a non-zero unique value (do not use 0). If you use the host redundancy feature, the value needs to be different on each host .  
 +
 
 +
<br> Add max_allowed_packet to increase the maximum size of binary blobs in the database. Make sure it is in the [mysqld] section AND [mysqldump] section
  
 
 
Add max_allowed_packet to increase the maximum size of binary blobs in the database.
 
Make sure it is in the [mysqld] section AND [mysqldump] section
 
 
   max_allowed_packet = 200MB
 
   max_allowed_packet = 200MB
  
Example:
+
Example:  
 +
 
 
  [mysqld]
 
  [mysqld]
 
  datadir=/var/lib/mysql
 
  datadir=/var/lib/mysql
Line 114: Line 116:
 
  max_allowed_packet = 200MB
 
  max_allowed_packet = 200MB
  
=== Start MySQL ===
+
=== Start MySQL ===
  
 
  service mysqld start
 
  service mysqld start
  
=== Configure MySQL Users ===
+
=== Configure MySQL Users ===
  
*Set password for the root user to 'tbdbpw' (TelcoBridges recommends that you set your own password for root)
+
*Set password for the root user to 'tbdbpw' (TelcoBridges recommends that you set your own password for root)  
*Enable root connection from localhost only
+
*Enable root connection from localhost only  
*Create a tbdb user (required by Toolpack)
+
*Create a tbdb user (required by Toolpack)  
 
*Remove anonymous connection
 
*Remove anonymous connection
  
Example:
+
Example:  
  
 
  /usr/bin/mysqladmin -u root password tbdbpw
 
  /usr/bin/mysqladmin -u root password tbdbpw
  
 
  mysql -uroot -ptbdbpw
 
  mysql -uroot -ptbdbpw
  DELETE FROM mysql.user WHERE !(Host = 'localhost' AND User = 'root');
+
  DELETE FROM mysql.user WHERE&nbsp;!(Host = 'localhost' AND User = 'root');
 
  FLUSH PRIVILEGES;
 
  FLUSH PRIVILEGES;
 
  CREATE USER 'tbdb'@'%' IDENTIFIED BY 'tbdbpw';
 
  CREATE USER 'tbdb'@'%' IDENTIFIED BY 'tbdbpw';
Line 137: Line 139:
 
  exit
 
  exit
  
== Toolpack Development Prerequisite (Optional) ==
+
== Toolpack Development Prerequisite (Optional) ==
The Toolpack System Development prerequisite section is only required for customers that will develop their own application using the Toolpack API:
+
 
 +
The Toolpack System Development prerequisite section is only required for customers that will develop their own application using the Toolpack API:  
  
 
  yum install gcc-c++ libxml2-devel libpcap-devel unixODBC-devel libaio libaio-devel
 
  yum install gcc-c++ libxml2-devel libpcap-devel unixODBC-devel libaio libaio-devel
  
== Validation Guide (highly recommended) ==
+
== Validation Guide (highly recommended) ==
If you would like to verify your installation go to the [[Toolpack_Installation:Validate_Toolpack_Installation_2-5|Toolpack Validation Guide]]
+
 
 +
If you would like to verify your installation go to the [[Toolpack Installation:Validate Toolpack Installation 2-5|Toolpack Validation Guide]]  
  
 +
<br>
  
== Toolpack System installation ==
+
== Toolpack System installation ==
  
Now that the prerequisite are installed, now it is time to install the [[toolpack_installer_2-4|Toolpack system]]
+
Now that the prerequisite are installed, now it is time to install the [[Toolpack installer 2-4|Toolpack system]]

Revision as of 08:01, 9 December 2011

This page shows the Toolpack 2-5 prerequisites for CentOS 5.5 and 5.6.

WARNING: The host MUST have CentOS 5.5 or 5.6 installed. If you don't want to update your host, please follow the manual procedure instead.

WARNING: If you followed the manual procedure on the system before, you MUST NOT use the steps on this page before doing a cleanup of the previously installed files. You should ask Telcobridges support for help with the cleanup.

WARNING: This procedure requires internet access

Contents

CentOS update

Update your system to CentOS 5.6

yum update

TelcoBridges repository

Add TelcoBridges repository file

vim /etc/yum.repos.d/TB-Base.repo

Paste the following information in that file:

# TelcoBridges-Base.repo
#
# This repository is using TelcoBridges frozen version of CentOS
# to help client installing the required version of the
# applications required to run Toolpack
#

[tb-base]
name=TelcoBridges-$releasever - Base
baseurl=http://repo.telcobridges.com/centos/5.5/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[tb-updates]
name=TelcoBridges-$releasever - Updates
baseurl=http://repo.telcobridges.com/centos/5.5/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5-tb

Get TelcoBridges repository key

cd /etc/pki/rpm-gpg/
wget http://repo.telcobridges.com/centos/RPM-GPG-KEY-CentOS-5-tb

Install Toolpack Prerequisites

When asked to 'Importing GPG key', answer yes.

yum groupinstall Toolpack-Prerequisites


Configure Toolpack Prerequisites

Configure ODBC

vim /etc/odbcinst.ini

Remove the '#' in front of each lines of the [MySQL] section Modify the 'Driver' line to set the correct driver

Example for 32 bits system:

[MySQL]
Description     = ODBC for MySQL
Driver          = /usr/lib/libmyodbc5.so
Setup           = /usr/lib/libodbcmyS.so
FileUsage       = 1	


Example for 64 bits system:

[MySQL]
Description     = ODBC for MySQL
Driver          = /usr/lib64/libmyodbc5.so
Setup           = /usr/lib/libodbcmyS.so
FileUsage       = 1	

Configure MySQL

vim /etc/my.cnf

Add these variables in the file under the [mysqld] section:

  • log-bin
  • server-id=[UniqueId]
    1. Added to remove mysql dependency on DNS/nameserver

The server-id needs to be a non-zero unique value (do not use 0). If you use the host redundancy feature, the value needs to be different on each host .


Add max_allowed_packet to increase the maximum size of binary blobs in the database. Make sure it is in the [mysqld] section AND [mysqldump] section

 max_allowed_packet = 200MB

Example:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
log-bin
server-id=5876
max_allowed_packet = 200MB
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysqldump]
max_allowed_packet = 200MB

Start MySQL

service mysqld start

Configure MySQL Users

  • Set password for the root user to 'tbdbpw' (TelcoBridges recommends that you set your own password for root)
  • Enable root connection from localhost only
  • Create a tbdb user (required by Toolpack)
  • Remove anonymous connection

Example:

/usr/bin/mysqladmin -u root password tbdbpw
mysql -uroot -ptbdbpw
DELETE FROM mysql.user WHERE !(Host = 'localhost' AND User = 'root');
FLUSH PRIVILEGES;
CREATE USER 'tbdb'@'%' IDENTIFIED BY 'tbdbpw';
GRANT ALL PRIVILEGES ON *.* TO 'tbdb'@'%' IDENTIFIED BY 'tbdbpw';
FLUSH PRIVILEGES;
exit

Toolpack Development Prerequisite (Optional)

The Toolpack System Development prerequisite section is only required for customers that will develop their own application using the Toolpack API:

yum install gcc-c++ libxml2-devel libpcap-devel unixODBC-devel libaio libaio-devel

Validation Guide (highly recommended)

If you would like to verify your installation go to the Toolpack Validation Guide


Toolpack System installation

Now that the prerequisite are installed, now it is time to install the Toolpack system

Personal tools