Installing Jive with Non-Root User

You can now separate the root administration and application administration roles in your organization by using the non-root installation procedure.

install in a location other than /usr/local/jive,

You can also install the application in a custom directory location other than the default /usr/local/jive, and run commands using a different user account than the default "jive" user.

  1. As root, use the following commands to create a user with bash as its default shell, and its home directory in the location you plan to install.
    Note: The values used in the following steps are examples for user, group and home directory.
    1. mkdir /opt/apps
    2. groupadd megacom
    3. useradd -g megacom -c "MegaCorp (tm) Jive Community Service Account" -d /opt/apps/megacom -m -s /bin/bash megacom
  2. Become the user you just created by using the following command.
    su - megacom
  3. Create your own RPM database by using the following command.
    1. mkdir rpmdb
    2. rpm --initdb --dbpath /opt/apps/megacom/rpmdb
  4. Create a directory to contain rpms:
    mkdir rpms
  5. Download the rpm using by using the following command.
    wget --no-check-certificate <url_from_jenkins> -O rpms/latest.rpm
  6. Check dependencies for the rpm using the main rpm database. We have to do this as a separate step because we skip the dependency check during the actual install using --nodeps. If there is any output from this command, correct the missing dependencies.
    rpm -Vp --nofiles rpms/latest.rpm
  7. Install the rpm using the following command:
    JIVE_USER=megacom JIVE_GROUP=megacom JIVE_HOME=/opt/apps/megacom rpm --dbpath /opt/apps/megacom/rpmdb -Uvh --nodeps --prefix /opt/apps/megacom rpms/latest.rpm
  8. Log out and log back in as your user, or else just source ~/.bash_profile.
  9. Run jive setup. You'll see suggestions for the relevant startup properties that need to change.
    1. jive set main.jive_group megacom
    2. jive set main.jive_user megacom
    3. jive set main.jive_home /opt/apps/megacom
  10. Follow the steps in Installation Stepswith the following adjustments:
    • For docconverter,
              wget <pdf2swf_rpm_url> -O rpms/pdf2swf.rpm
              JIVE_USER=megacom JIVE_GROUP=megacom JIVE_HOME=/opt/apps/megacom rpm --dbpath /opt/apps/megacom/rpmdb -Uvh --replacefiles --nodeps --prefix /opt/apps/megacom rpms/pdf2swf.rpm
    • The init script is not installed because it requires root.
    • The logrotate cron task is not installed because it requires root.