Toolpack prerequisite Fedora Core8 2-5

From TBwiki
Revision as of 15:46, 19 September 2011 by Cbilodeau (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page shows the Toolpack 2-5 prerequisites for Fedora Core 8.


Contents

Toolpack Prerequisite

Toolpack Basic packages

The software listed below is required by the host machines.

 yum install zlib-devel gcc

Toolpack System Database

The Toolpack system database is used by the main host and requires MySQL database server. The system database packages are as follows:

 yum install mysql-server mysql-devel

Depending on the Fedora Core installation, the command paths for the database (i.e. mysql_install_db, mysqladmin, mysql) and system tools (chkconfig, service, etc) may not be included in the active PATH environment variable. MySQL is usually installed in /usr/bin and system tools in sbin.

1. start and enable MySQL

 chkconfig mysqld on
 service mysqld start

2. Install the database.

 mysql_install_db


3. Log onto MySQL, create a tbdb user. The [HostName], [DatabaseUsername] and [DatabasePassword] will need to be supplied to the toolpack installer. If you cannot log in it is possible that the host name is not configure properly, use an IP Address instead.

 mysql -u root -h '[HostName]' -p
 CREATE USER '[DatabaseUsername]'@'%' IDENTIFIED BY '[DatabasePassword]';
 GRANT ALL PRIVILEGES ON *.* TO '[DatabaseUsername]'@'%' IDENTIFIED BY '[DatabasePassword]';
 FLUSH PRIVILEGES;
 exit

ex.

 mysql -u root -h fedora64-02 -p
 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

To verify if the user is created:

 mysql -u root -p
 SELECT * FROM mysql.user;
 exit

4.Install odbc driver and driver manager

 yum install mysql-connector-odbc


4a. For 32 bits sytem:

 wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/linux/mysql-connector-odbc-3.51.27-linux-x86-32bit.tar.gz
 tar -zxf mysql-connector-odbc-3.51.27-linux-x86-32bit.tar.gz
 mkdir -p /lib/tb/toolpack/3rdparty/odbc-connector/
 cp mysql-connector-odbc-3.51.27-linux-x86-32bit/lib/libmyodbc3_r-3.51.27.so /lib/tb/toolpack/3rdparty/odbc-connector/

4b. For 64 bits sytem:

 wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/linux/mysql-connector-odbc-3.51.27-linux-x86-64bit.tar.gz
 tar -zxf mysql-connector-odbc-3.51.27-linux-x86-64bit.tar.gz
 mkdir -p /lib/tb/toolpack/3rdparty/odbc-connector/
 cp mysql-connector-odbc-3.51.27-linux-x86-64bit/lib/libmyodbc3_r-3.51.27.so /lib/tb/toolpack/3rdparty/odbc-connector/


5. Manually configure the odbc manager. Make sure mysql driver is enable(removing the comments for the mysql driver). Set the Driver as the previous command answer.

 vim /etc/odbcinst.ini 

Here is an example:

 # Driver from the MyODBC package
 # Setup from the unixODBC package
 [MySQL]                                                   <----- This line must NOT start with a '#'
 Description     = ODBC for MySQL
 Driver          = /lib/tb/toolpack/3rdparty/odbc-connector/libmyodbc3_r-3.51.27.so
 Setup           = /usr/lib/libodbcmyS.so
 FileUsage       = 1


6. Configure MySQL to support database replication (Will not interfere if your system do not use it).

 vim /etc/my.cnf

Add 2 new variable in the MySQL config file

Add log-bin and server-id. The value of server-id needs to be unique on each host( do not use 0 ). Make sure it is in the [mysqld] section

 log-bin
 server-id=[UniqueId]

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:

 [root@TL-FEDORA64-02 tblab]# cat /etc/my.cnf
 [mysqld]
 datadir=/var/lib/mysql
 socket=/var/lib/mysql/mysql.sock
 user=mysql
 log-bin
 server-id=1
 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
 
 [mysqld_safe]
 log-error=/var/log/mysqld.log
 pid-file=/var/run/mysqld/mysqld.pid
 [root@TL-FEDORA64-02 tblab]#
 
 [mysqldump]
 max_allowed_packet = 200MB


Reboot the mysql service

service mysqld restart

Toolpack System Web Portal

The Toolpack System Web Portal is required in order to host the Toolpack Web Portal. It requires the execution of all following commands:

2. Install pcre, libxml2 and openssl:

 yum install fcgi fcgi-devel lighttpd lighttpd-fastcgi pcre libxml2 openssl-devel

4. Install ruby

4a. For 32 bits system:

 wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/src/centos/ruby-1.8.7-p174.tar.gz
 tar -zxf ruby-1.8.7-p174.tar.gz
 cd ruby-1.8.7-p174
 ./configure --libdir=/usr/local/lib  --enable-shared
 make
 make install
 cd ext/openssl/
 ruby extconf.rb
 make
 make install
 cd ../../..
 ln -s /usr/local/bin/ruby /usr/bin/ruby
 ln -s /usr/local/lib/libruby.so.1.8 /lib/libruby.so.1.8


4b. For 64 bits system:

 wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/src/centos/ruby-1.8.7-p174.tar.gz
 tar -zxf ruby-1.8.7-p174.tar.gz
 cd ruby-1.8.7-p174
 ./configure --libdir=/usr/local/lib64 --enable-shared
 make
 make install
 cd ext/openssl/
 ruby extconf.rb 
 make
 make install
 cd ../../..
 ln -s /usr/local/bin/ruby /usr/bin/ruby
 ln -s /usr/local/lib64/libruby.so.1.8 /lib64/libruby.so.1.8

5. Install RubyGems 1.3.5

 wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/src/centos/rubygems-1.3.5.tgz
 tar -zxf rubygems-1.3.5.tgz
 cd rubygems-1.3.5
 ruby setup.rb
 cd ..

6. Install gem fcgi

 gem install fcgi


Make sure that the firewall enables these following services and ports. Failure to open those ports will render socket communication between the distributed software elements unavailable.

Service: http (12358/tcp)

Port: All ports (tcp/udp) enabled for local networks

Make sure that SELinux is disabled.


Make sure that the firewall enables these following services and ports. Failure to open those ports will render socket communication between the distributed software elements unavailable. Service: http (12358/tcp) Port: All ports (tcp/udp) enabled for local networks

Disabling SELinux

Check SELinux status

 sestatus

If SELinux is enable, see the Disabling SELinux article to disable it.

Toolpack Stream Server

The Tmedia Toolpack Stream Server requires the execution of the following commands:

 yum install libpcap


Toolpack Development Prerequisite

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 zlib-devel pcre-devel libiao libiao-devel

Validation Guide (Optional)

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