Sunday 2 October 2011

Software Installation


Software Installation and Configuration

Note: Only root user can install and configure

  1. JAVA INSTALLATION AND CONFIGURATION

Java latest version installation file:- jdk-6u4-linux-i586-rpm.bin

Create a directory 'java' in ‘usr’ by open a new terminal
# mkdir /usr/java
Now goto java directory
# cd /usr/java
If jdk1.6...bin file is on Desktop, then copy this to the newly created ‘/usr/java’ directory.
# cp /root/Desktop/jdk-6u4-linux-i586-rpm.bin /usr/java
# chmod +x jdk-6u23-linux-i586-rpm.bin                     (Give the execute permission)
# ./jdk-6u23-linux-i586-rpm.bin
            Do you agree to above license terms yes/no      : yes
            Press Enter to continue
It will create a “jdk1.6.0_23” folder in java directory

            Configuration of Java: After installation we have to configure this new java file. For configure java we create a text file and write below text and save as “java.sh” in “/etc/profile.d” directory.
# vim /etc/profile.d/java.sh
            #!/bin/bash
JAVA_HOME=/usr/java/jdk1.6...
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME  PATH
export CLASSPATH=.
            :wq                                                      (Save and close terminal)
# .  /etc/profile.d/java.sh
# java –version                                           (It will show you updated version of java)

           

  1. JBOSS APPLICATION SERVER INSTALLATION AND CONFIGURATION

Requirement: Java is necessary for Jboss application, so first install java and then install Jboss.

If “jboss-5.1.0.GA.tar.bz2” installation file is on desktop, then copy this to “/usr/local” directory.
# cd ~/Desktop
# cp /root/Desktop/jboss-5.1.0.GA.tar.bz2 /usr/local/
# cd /usr/local
# tar –jxvf jboss-5.1.0.GA.tar.bz2                        (It extract and untar the jboss file)
# cd jboss-5.1.0.GA
# cd bin
# pwd
   /usr/local/jboss-5.1.0.GA/bin                   (You are currently in this directory)

            If java not configured edit run.conf file with vi editor and uncomment the line no. 34.
# vim run.conf
            Go to line no. 34 and uncomment this line.
            JAVA_HOME="/usr/java/jdk1.6.0"
            Esc :wq
# ./run.sh or,                                     (It bind with only Loopback IP)
   ./run.sh –b 192.168.0.1 or,                      (It bind with particular IP)
   ./run.sh –b 0.0.0.0 or,                   (It bind with both  Loopback and Local IP)
            Now Jboss is running.  Don’t close this terminal. If you want to stop Jboss press Ctrl+C.
            Jboss4.0.5 installation is complete.

            Open Explorer and enter: http://127.0.0.1:8080

            To kill Jboss process:
# ps –aux | grep jboss
# kill -9 <pid of jboss>

A.   Change Jboss port number as '7070':
            For changing port number open “server.xml” file located at this directory.
# vim /usr/local/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/server.xml
Go to line no. 12 and change port number as “7070” (In connector port :)

B.   Deploying path:
/usr/local/jboss-5.1.0.GA/server/default/deploy

C.   Communicate Jboss to Oracle:
# cd /usr/local/jboss-5.1.0.GA/server/default/deploy/
# vim oracle-ds.xml
            Go to line no. 19, 32, 33 and change as below,
            <connection-url>(IP_of_Oracle_Server):(Port_Number):(usersid)</connection-url>
   19     <connection-url>192.168.0.1:1521:XE</connection-url>
   32     <user-name>nilesh</user-name>
   34     <password>123</password>
            :wq

D.   Jboss Log Files:
Jboss log files are store in “/usr/local/jboss-5.1.0.GA/server/default/log” directory. It contain boot.log,  server.log and server.log-date.
# cd /usr/local/jboss-5.1.0.GA/server/default/log/
# ls

E.   Jboss Configuration and Log Files:
1.    run.conf              /usr/local/jboss-5.1.0.GA/bin/run.conf
2.    server.xml           /usr/local/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/server.xml
3.    oracle-ds.xml     /usr/local/jboss-5.1.0.GA/server/default/deploy/oracle-ds.xml
4.    jboss-log4j.xml /usr/local/jboss-5.1.0.GA/server/default/conf/jboss-log4j.xml
/usr/local/jboss-5.1.0.GA/server/minimal/conf/jboss-log4j.xml
/usr/local/jboss-5.1.0.GA/server/web/conf/jboss-log4j.xml
/usr/local/jboss-5.1.0.GA/server/standard/conf/jboss-log4j.xml
/usr/local/jboss-5.1.0.GA/server/all/conf/jboss-log4j.xml
F.    Change Jboss Log Directory:
# vim /usr/local/jboss-5.1.0.GA/server/default/conf/jboss-log4j.xml
            Go to line number 26 and change the log directory as like.
            <param name="File" value="$/tmp/server.log"/>

G.   Replace log4j.xml:--
Given application related log4j.xml file should be paste in below directory so that replace with new one
usr/local/Jboss4.0.5.GA/server/default/conf

H.   Setting the attribute value = false
open jbossjca-service.xml located at
usr/local/Jboss4.0.5.GA/server/default/deploy/ jbossjca-service.xml
  <!-- Enable connection close debug monitoring -->
      <attribute name="Debug">false</attribute>

I.      Paste all given Lib files at given location and replace all
usr/local/Jboss4.0.5.GA/server/default/lib

J.    Paste HS.war file at give location
usr/local/Jboss4.0.5.GA/server/default/deploy



  1. ORACLE 10g INSTALLATION AND CONFIGURATION
If oracle installation file(oracle-xe- ........rpm)is on Desktop. Go to these directory and install.
# cd  /root/Desktop
# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
If these commands give error, then paste this file (libaio-0.3.105-2.i386.rpm) on Desktop, and again install oracle
# rpm -ivh *.rpm
            After installation is completed a info appears:
            You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.
           
Now configure oracle:
# /etc/init.d/oracle-xe configure
            It will ask you to enter http port number so input                       : 6565
            Listener port is by default 1521, don't change this.
            It will ask you to enter system admin password so input          : admin
            It will ask you to Oracle Database to be started on boot            : y
            Except above, not change anything during installation.

            Configure oracle path:
# vim /etc/profile                 (Go to bottom line by Shift+G and write below text at the end of the file)

export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_SID=XE
export PATH=$ORACLE_HOME/bin:$PATH
:wq

Restart the system so that 'imp' and ‘exp’ command will be active. Or run bellow command.
# .  /etc/profile

            Now open the browser and type: http://localhost:6565/apex
Login with user:        system or sys
Password:                  admin

            Creating Database Users:
            Go to Administrator > Database users > Create
            Now, create a user 'SWANALERT' with password 'SWANALERT' with all privileges. Check all privileges > Create.

            Import Database file:
If Database file is 'SWANALERT_03-10-2008.dmp', located on Desktop, now open a terminal and type
# cd /root/Desktop
# imp system/admin  fromuser=SWANALERT touser= SWANALERT file=SWANALERT_30-06-2011.dmp
            It will create all tables and database related files.

            Export Database file:
# exp swanalert/swanalert file=/home/swanalert_30-06-2011.dmp

            Configure Oracle for local nad remote client both: Click on Home > Manage HTTP Access > Select Lower.

Uninstall Oracle-xe:
# rpm –e oracle-xe-univ
# rm –rf /etc/oratab



  1. NETBEANS INSTALLATION AND CONFIGURATION:
If Netbeans installation file (netbeans-6.8-ml-linux.sh) is on Desktop. Copy it to “/usr/local” directory and install with run this file.
# cp ~/Desktop/netbeans-6.8-ml-linux.sh /usr/local
# cd /usr/local
# chmod +x netbeans-6.8-ml-linux.sh
# ./ netbeans-6.8-ml-linux.sh
            It will open the next step of installation in graphical windows. Follow these instructions and click next for installation.

            Uninstall process of Netbeans: The uninstall script resides in netbeans install directory is used to uninstall this software.
# cd /usr/local/netbeans
# ./uninstall
           

  1. KANNEL SOFTWARE INSTALLATION AND CONFIGURATION:
If Kannel installation file (gateway-1.4.1.tar.gz) is on Desktop.Copy it to “/usr/local” directory, extract this tar file, it create a directory like “gateway-1.4.1”, after that rename it to “kannel” directory. Go to in this directory and configure the kannel. Smsbox configuration file is “smskannel.conf” that is resides in “/usr/local/kannel/gw/” directory.

            Bearerbox provide connectivity between jboss and database. It hold data and check privilages.

Installing Kannel:
# cd /root/Desktop
# cp gateway-1.4.1.tar.gz /usr/local
# cd /usr/local
# tar –zxvf gateway-1.4.1.tar.gz
# mv gateway-1.4.1.tar.gz kannel
# cd /usr/local/kannel
# ./configure
# make
# make install

            Run bearerbox and smsbox: First run the jboss script “run.sh” in backend. Open a terminal for running bearerbox.
# cd /usr/local/kannel/gw/
# ./bearerbox –v 1 smskannel.conf                   (Run the Bearerbox on terminal)
            Open another terminal for running smsbox.
# cd /usr/local/kannel/gw/
# ./smsbox smskannel.conf                                (Run the Smsbox on terminal)

            Kannel log file: The kannel log is disable by default. We can enable the log file by edit its configuration file “smskannel.log” resides in “/usr/local/kannel/gw/” directory.
# vi /usr/local/kannel/gw/smskannel.log
            Go to line no. 44, uncomment this line and set the logfile directory.
            Ex:-
            log-file = “/usr/local/kannel/gw/kannel.log”


  1. SIGTRAN AND SIGMOD INSTALATION  AND CONFIGURATION:
  1. Sigtran
# cd /opt/sigtran
# ./getload-….                                              (New version getload-Cioxd1)

            To close sigtran:
# cd /opt/sigtran
# ./getload –x

  1. Sigmod
# cd /var/test/sigmod
# ./run

            Note: First start Sigtran then Sigmod and when close first sigmod then sigtran.

No comments:

Post a Comment

Boot to UEFI Mode or legacy BIOS mode

Boot to UEFI Mode or legacy BIOS mode Choose UEFI or legacy BIOS modes while installing Windows. After Windows is installed, if you nee...