Enter the credentials provided by Chenna to install Schedulix server.(If it has a private key attached then while login to putty go on SSH-> Auth -> Browse the private key file(shared by Chenna)
In hosname give opc@IP_Address in putty login.
[Schediulix Server : UAT : 10.1.244.11 , root/Oracle%2020*.]
To go on root : sudo su – root
To go on schedulix : sudo su – schedulix
To go on oracle : sudo su - oracle
1. Installing prerequisite(root) yum update
#to get the newest system software
(root) yum install git
(root) yum groupinstall "Java Platform"
Gave error pkg not exists, we ignored these
(root) yum install gcc gcc-c++
(root) yum install jflex
(root) yum install glibc.i686
(root) yum install make
(root) yum install java-1.6.0-openjdk-devel java-1.7.0-openjdk-devel
(root) yum install eclipse-swt
Gave error pkg not exists, we ignored these
(root) yum install python-devel
Note: Initial installation for schedulix server and schedulix client or Job server is same. Jobserver does not require Zope intallation and Db installation
2. Installation Schedulix Server
1. Create the user schedulix
# useradd -d /home/schedulix -m -s /bin/bash -U schedulix
We will use /u01/ path instead of home since in our uat /u01 is the home path
useradd -d /u01/schedulix -m -s /bin/bash -U schedulix
# passwd schedulix
Note: # denotes root user. Gave the password schedulix123
Once done, login into schedulix server as user schedulix and do the following
(sudo su – schedulix)
2. Create/Upate .bashrc file under schedulix user
we don't need these , these are for our local env to access internet.
# setting proxy for skillnetinc (only use for local server)
export http_proxy=http://wpad.skillnetinc.com:3128
export https_proxy=http://wpad.skillnetinc.com:3128
export ftp_proxy=http://wpad.skillnetinc.com:3128
3. Download of the schedulix source distribution from github.
Run this on schedulix user, path /u01/schedulix
git clone https://github.com/schedulix/schedulix.git -b v2.7 schedulix-2.7
Afterwards all the files of the schedulix source distribution will be stored in the subdirectory
$HOME/schedulix-2.7
($HOME : home/schedulix/schedulix-2.7)
4. Set the environment variables. update the following in .bashrc file.
Put all the jars in the path given in bashrc file and give permission as chmod 777 to all the files from root user
export SDMSHOME=/u01/schedulix/schedulix-2.7
export CLASSPATH=$CLASSPATH:/usr/share/java/jflex.jar:/usr/share/java/java_cup.jar:/usr/share/java/jna.jar:/usr/share/java/mysql-connector-java-5.1.14.jar
export JAVAHOME=/usr/lib/jvm/java-1.7.0-openjdk
export SWTJAR=/usr/lib/java/org.eclipse.swt-3.1.jar
export JNAJAR=/usr/share/java/jna.jar
export BICSUITEHOME=/u01/schedulix/schedulix
export BICSUITECONFIG=/u01/schedulix/schedulix/etc
export PATH=$BICSUITEHOME/bin:$PATH
Note:Verify the path in the export path specified.(check the files are there for this specific path)
If files are not there take them from a recent schedulix server and always copy as user root.
You can also take the jars from the below zip
5. make, the actual compilation of the system.
If the already compiled version is available no need to create on.
Follow the steps below: (check cd $HOME points to /u01/schedulix)
cd $HOME/schedulix-\versionnumber/
execute the command: export SDMSHOME=`pwd`
cd $HOME/schedulix-\versionnumber/src
make
3. Install MYSQL
This will be from root user
1. Update your system
sudo yum update
Note: MySQL must be installed from the community repository.
If it throws error proceed to next step.
2. Download and add the repository, then update.
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
3. Install MySQL as usual and start the service.
sudo yum install mysql-server
sudo systemctl start mysqld
4. MySQL Server secure_installation
script to address several security concerns in a default
MySQL installation.
sudo mysql_secure_installation
since we have not set any password for the root in mysqlWhen it asks to set new password give our root password = Oracle%2020*.
You will be given the choice to change the MySQL root password, remove anonymous user accounts, disable root logins outside of localhost, and remove test databases. It is recommended that you answer yes to these options.
5. Create schedulix database
login by user schedulix
$ mysql --user=root -p
Enter password: Oracle%2020*.
mysql> create user schedulix identified by 'schedulix';
mysql> create database schedulixdb;
mysql> grant all on schedulixdb.* to schedulix;
mysql> quit
Go to the directory: /u01/schedulix/schedulix-2.7/sql and execute the following command – login by root
#mysql --user=schedulix --password=schedulix --database=schedulixdb --execute="source mysql/install.sql"
Note: Give appropriate password
(E.g. mysql --user=schedulix --password=schedulix --database=schedulixdb --execute="source mysql/install.sql")
Login with root user into MySQL and execute the following commands:
CREATE USER 'schedulix'@'localhost' IDENTIFIED BY 'schedulix';
CREATE USER 'schedulix'@'snsl-vm-19' IDENTIFIED BY 'schedulix';
Give schedulix server name instead of 'snsl-vm-19’
CREATE USER 'schedulix'@'storehubapptst9.pepeganga.net' IDENTIFIED BY 'schedulix';
For KOMAX-
6. Installation Schedulix Server-- Continue
1. Create a symbolic link
$ cd $HOME
$ ln -s schedulix-2.7 schedulix
Note: Provide the permissions
(root)cd $HOME (go to home path of schedulix /u01/schedulix)
(root)chmod +r schedulix/ -R
(root)chmod +x schedulix/ -R
2. Software environment$ cd $BICSUITEHOME/etc
for fff in *.template; do
TRG=`basename $fff .template`;
cp $fff $BICSUITECONFIG/$TRG;
done
If error comes like this ,” No such file or directory” then export all the paths again.
[schedulix@storehubapptst9 etc]$ export SDMSHOME=/u01/schedulix/schedulix-2.7
[schedulix@storehubapptst9 etc]$ export CLASSPATH=$CLASSPATH:/usr/share/java/jflex.jar:/usr/share/java/java_cup.jar:/usr/share/java/jna.jar:/usr/share/java/mysql-connector-java-5.1.14.jar
[schedulix@storehubapptst9 etc]$ export JAVAHOME=/usr/lib/jvm/java-1.7.0-openjdk
[schedulix@storehubapptst9 etc]$ export SWTJAR=/usr/lib/java/org.eclipse.swt-3.1.jar
[schedulix@storehubapptst9 etc]$ export JNAJAR=/usr/share/java/jna.jar
[schedulix@storehubapptst9 etc]$ export BICSUITEHOME=/u01/schedulix/schedulix
[schedulix@storehubapptst9 etc]$ export BICSUITECONFIG=/u01/schedulix/schedulix/etc
[schedulix@storehubapptst9 etc]$ export PATH=$BICSUITEHOME/bin:$PATH
3. Configure the database connection
This should be done as user schedulix.if present as root delete and copy again as user schedulix.
In the $BICSUITECONFIG/server.conf configuration file
DbPasswd=schedulix
DbUrl=jdbc:mysql://localhost:3306/schedulixdb
DbUser=schedulix
Hostname= storehubapptst9.pepeganga.net
Just change hostname, rest all will be same.
JdbcDriver=com.mysql.jdbc.Driver
4. Configure the schedulix Java Class Path in java.conf
This should be done as user schedulix.if present as root delete and copy again as user schedulix.
$BICSUITECONFIG/java.conf for JDBC
BICSUITECLASSPATH=$BICSUITEJAR:$JDBCJAR:$JNAJAR:$SWTJAR:/usr/share/java/mysql-connector-java-5.1.14.jar
Note: Download mysql-connector-java-5.1.14.jar and put in appropriate location. This jar file is available in previosly provided zip
5. Start the server
$ server-start
$ cat ˜/.sdmshrc Or vi .sdmshrc
User=SYSTEM
Password=G0H0ME
Host=localhost
Port=2506
Timeout=0
2. Install the convenience package.
The convenience package installs a commonly used configuration for an exit state model.
$sdmsh < $BICSUITEHOME/install/convenience.sdms
1. Installation Zope Server IntroductionA Zope Application Server has to be installed before you can use the schedulixinterface.
Installation
IF easy_install is not available in the server, please execute
# yum install python-setuptools (with root user)
# yum provides easy_install (with root user)
1. Install virtualenvAll steps to be done as root
#yum install python-pip
#/bin/python -m pip install --upgrade pip
#copy the below tar (virtualenv-16.0.0.tar) in the sever say in /home/opc path
#/bin/python -m pip install --user /home/opc/virtualenv-16.0.0.tar
# pip install virtualenv-16.0.0.tar.gz
#sudo /usr/bin/easy_install virtualenv
2. Create a virtual Python environment for the Zope installation (Now execute rest with schedulix user)
$ mkdir $HOME/software
$ cd $HOME/software
$ virtualenv --no-site-packages Zope
3. Install the Zope2 software
As schedulix user
$ cd $HOME/software/Zope
get the file: zope_requirements-2.13.26.txt from any environment from path /u01/schedulix/schedulix/etc
place this file into my schedulix 2.7 folder under the path: /u01/schedulix/schedulix/etc. File is also attached below
go to the path: $HOME/software/Zope (/u01/schedulix/software/Zope ) and execute:
/bin/pip install -r /u01/schedulix/schedulix/etc/zope_requirements-2.13.26.txt
Create a pkgs directory in software folder(/u01/schedulix/software) and execute(at path /u01/schedulix/software/Zope) to download required packages:
/bin/pip download -d ../pkgs -r /u01/schedulix/schedulix/etc/zope_requirements-2.13.26.txt
Execute below commands to manually install few packages:
/bin/pip install ../pkgs/PasteDeploy-1.3.4.tar.gz
/bin/pip install ../pkgs/Paste-1.7.5.1.tar.gz
/bin/pip install ../pkgs/PasteScript-1.7.5.tar.gz
Finally execute:
/bin/pip install -r ../../schedulix/etc/zope_requirements-2.13.26.txt --no-index -f /opt/schedulix/software/pkgs
4. Create a Zope instance for schedulix user interface
$ cd $HOME/software/Zope/bin
$ mkzopeinstance -d $HOME/schedulixweb -u sdmsadm:sdmsadm_password
You can use any password of your choice.
5. The Zope server is start/stop briefly for testing
$HOME/schedulixweb/bin/zopectl start
In the web browser, the URL http://132.145.150.196:8080
http://132.145.150.196:8080-This URL is not opening