Prerequisites
...
This will be required later, so make a note of it now.
Installation Steps
All local commands should be run as root.
...
The file will now likely be in the users home directory.
Change into the /usr/local directory.
Untar the file.
Code Block |
---|
|
tar xvf ~/OAE-Linux-x86_64-1.0.5.tar.gz |
Fix the file ownership and permissions.
Code Block |
---|
|
chown -R root:root omk
chmod -R 700 /usr/local/omk
chmod -R 755 /usr/local/omk/log
chmod -R 770 /usr/local/open-audit
chmod -R 777 /usr/local/open-audit/code_igniter/application/views/lang/
chmod 770 /usr/local/open-audit/other/audit_linux.sh
chmod 770 /usr/local/open-audit/other/audit_subnet.sh
chmod 660 /usr/local/open-audit/other/open-audit.log |
Change permissions
Section |
---|
|
Column |
---|
| for Debian / Ubuntu Code Block |
---|
| chown -R root:www-data /usr/local/open-audit |
|
Column |
---|
| Change permissions for RedHat / CentOS Code Block |
---|
| chown -R root:apache /usr/local/open-audit |
|
|
...
Copy the daemon startup script.
Code Block |
---|
|
cdcp /usr/local/omk/ |
Copy the daemon startup script.
Code Block |
---|
|
cp install/omkd.init.d /etc/init.d/omkd |
Edit the start up
...
script
Section |
---|
|
Column |
---|
| For Debian / Ubuntu You need to comment out the lines (nano /etc/init.d/omkd) Code Block |
---|
| . /etc/init.d/functions # RedHat/CentOS only
lockfile=/var/lock/subsys/$prog # RedHat/CentOS only
killproc $prog # Redhat/CentOS only |
and uncomment (remove the # from the front of the line) the lines below them Code Block |
---|
| # . /lib/lsb/init-functions # Debian/Ubuntu only
# lockfile=/var/lock/$prog # Debian/Ubuntu only
#pkill $prog # Debian/Ubuntu only |
|
|
Add the daemon
Section |
---|
Column |
---|
| For Debian / Ubuntu Code Block |
---|
| update-rc.d omkd start 20 2 3 4 5 . stop 20 0 1 6 . |
|
Column |
---|
| For RedHat / CentOS Code Block |
---|
| chkconfig --add omkd |
|
|
...
Copy the config files.
Code Block |
---|
|
cp install/users.dat conf/
cp install/oae_reports.json conf/
cp install/opCommon.nmis conf/ |
...
Code Block |
---|
|
service omkd start |
Test the Daemon
You should now be able to point a web browser at http://SERVER:8042/omk/oae
...