Script to install PLoS ONE quickly on a Single Server

See Also:

Assumptions (General):

  • No data needs to be preserved
  • Necessary ports are available and shorewall is setup properly
  • No web-head

Assumptions (Specific - things you may need to do manually the first time):

  • /etc/sysconfig/topaz-common is setup properly (JAVA_HOME is defined)
  • mysql is installed
  • ImageMagick? is setup properly
  • postgresql is installed and plosdb exists with default plosone user and password (See SingleBoxInstall)

There are three scripts:

  • clean.groovy - Completely removes existing installation including logs, mulgara db, fedora db and postgresql data.
  • install.sh - Quickly installs all RPMs needed for plos for a user's .m2 repository
  • create_accounts.sh - Creates an admin and 2 user accounts

Running scripts

The installation script assumes that you've built the rpms in your repository. To ensure that has happened, the following (or variations on it) are recommended:

  svn co http://svn.topazproject.org/svn/head
  cd head
  mvn -Ppackages,rpm install

Scripts are at source:private/eric/test. Scripts can be downloaded from ZIP archive: test.zip

You must be in that directory when running the scripts. Thus, the following will work:

  svn co http://svn.topazproject.org/svn/private/eric/test
  cd test
  export USER=`whoami`
  su
  ./clean.groovy $USER
  ./install.sh $USER
  ./create_accounts.sh

After this ambra should be up and running on http://<host>:8080/

Accounts

The create_accounts.sh script will create the following 3 accounts:

id email passwordauthid
plosadminplosadmin@gmail.comfoobarCI8V9NFWLSBK1B9UBZ3S1NJW5NKF54DQ
plostest plostest@gmail.com foobarIEYNC6IW6VRCFBDXQLC6GJ25J21YHOJE
plosuser plosuser@gmail.com foobarD796C4KB2IZGC9Z63BECVG7XZY1XNUTK

You should only need the authid if you are using the DummySSO filter. (To use it, there is a usesso.sh script to turn it on if you're too lazy to update plosone's web.xml yourself.)

Post install (ingesting articles)

install.sh automatically places 4 articles into the ingestion queue. Thus, you can quickly login as plosadmin and go to the admin page (http://<host>:8080/admin/adminTop.action) and ingest (and presumably publish) the 4 articles waiting there.

Attachments