Linux Installation

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Installation of NewGenLib on Red Hat Linux Enterprise

Edition 4.0
Important points to note before installation
This notes has been written based on installation on Red Hat Linux
Enterprise Edition 4.0.
Copy the folder LinuxInstallation from the CD into /usr directory. All the
necessary installation files are available in this directory
At any point, please see that read, write and execute permissions are set
for the files. To do this, right click and select properties, then select
permissions tab and make necessary changes. Alternatively you also run
chmod 777 <filename> from the terminal.

Installation of Red Hat Linux Enterprise Edition 4.0


Install Linux normally, but do not install Postgres database. Because,
NewGenLib used Postgres 8.0.6.
Make it sure that Postgres is not installed at the time of installation of
Linux

Installation Postgres Database


If you are installing on Red Hat Linux 64 bit please find the postgres
installation files in postgres sql 64 bit directory, else for Red Hat Linux
32 bit find the postgres installation files in postgres sql 32 bit directory.
These rpm files should be installed in the below order for Red Hat 32 bit.
postgresql-libs-8.0.7-1PGDG.i686.rpm
postgresql-8.0.7-1PGDG.i686.rpm
postgresql-server-8.0.7-1PGDG.i686.rpm
postgresql-contrib-8.0.7-1PGDG.i686.rpm
These rpm files should be installed in the below order for Red Hat 64 bit.
postgresql-libs-8.0.7-1PGDG.x86_64.rpm
postgresql-8.0.7-1PGDG.x86_64.rpm
postgresql-server-8.0.7-1PGDG.x86_64.rpm
postgresql-contrib-8.0.7-1PGDG.x86_64.rpm
Please make sure about the order in which they have to be installed.
Installation of rpm files is done by this example: rpm -Uvih postgresql-libs-
8.0.7-1PGDG.i686.rpm
To allow access from pgAdmin III from win32 systems, do the following
settings
Open /var/lib/pgsql/data/postgresql.conf using gedit or any other editor
application. Under Connections and Authentication set
listen_addresses='*' instead of localhost and also uncomment it(remove
hash in front of it). Also uncomment port=5432(remove hash in front of
it).
Open /var/lib/pgsql/data/pg_hba.conf using gedit or any other editor
application. Add the line
host all all 192.168.0.0/24 trust
The above line will allow all systems in the network that start with IP
address 192.168.0
host all all 192.168.0.8/32 trust
The above line will allow only 192.168.0.8 to connect to database
In the terminal login as postgres
su postgres
Make sure Postgres server is running
On your desktop Applications -> Server Settings -> Services, you'll find
a service named postgres, select it and start, also save the changes so
that next time the system starts the service also automatically starts
Create a database named newgenlib using createdb.
createdb newgenlib
Create a user named newgenlib using createuser
createuser -P newgenlib
System prompts for password, enter and also re-enter newgenlib as
password
For rest of the questions asked please type y(yes)
Now open psql(This is to execute sql queries)
psql newgenlib
The above command will connect to newgenlib database. Now in order
to install Tsearch2
\i /usr/share/pgsql/contrib/dbsize.sql
\i /usr/share/pgsql/contrib/fuzzystringmatch.sql
\i /usr/share/pgsql/contrib/tsearch2.sql
This above command will create all objects necessary for Tsearch2.
Restoration of Database
The ordinary backup file that we have been creating for Windows systems
will not work here. For this, during backup of database in the Windows
system, do not select compress, but select plain and take the backup. Copy
this backup file into Linux system.
Now open psql(This is to execute sql queries)
psql newgenlib
The above command will connect to newgenlib database. Now in order
to NewGenLib database.
\i ........../<databasebackupfile>.sql

Alternative restoration of Database


Using pgAdminIII from win32 system, restore the newgenlib backup file
especially meant for linux.

Installation of Jboss server


Copy the jboss-3.2.1_tomcat-4.1.24 directory into /usr directory
In /usr/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/postgres-ds.xml,
change user name to newgenlib and password also to newgenlib.
Place newgenlib.sh on the desktop

NewGenLibFiles directory
Copy NewGenLibFiles directory into /usr directory

Installation of j2sdk1.4.2_11
In web site you'll find j2sdk-1_4_2_11-linux-i586-rpm.bin, install it by
./ j2sdk-1_4_2_11-linux-i586-rpm.bin
The above operation will generate a file named j2sdk-1_4_2_11-linux-
i586.rpm. To install this type below command
rpm -Uvih j2sdk-1_4_2_11-linux-i586.rpm

Running Jboss server


On desktop create a file named newgenlib.sh using any text editor
Copy the contents of newgenlib.sh into the above file and save it.
Double click on the newgenlib.sh on the desktop
When system prompts a dialog, click on Run in terminal

You might also like