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://gandalf.topazproject.org/svn/head cd head mvn -Ppackages,rpm install
Scripts are at source:private/eric/test. You must be in that directory when running the scripts. Thus, the following will work:
svn co http://gandalf.topazproject.org/svn/private/eric/test cd test export USER=`whoami` su ./clean.groovy $USER ./install.sh $USER ./create_accounts.sh
Accounts
The create_accounts.sh script will create the following 3 accounts:
| id | password | authid | |
| plosadmin | plosadmin@gmail.com | foobar | CI8V9NFWLSBK1B9UBZ3S1NJW5NKF54DQ |
| plostest | plostest@gmail.com | foobar | IEYNC6IW6VRCFBDXQLC6GJ25J21YHOJE |
| plosuser | plosuser@gmail.com | foobar | D796C4KB2IZGC9Z63BECVG7XZY1XNUTK |
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 (/admin/adminTop.action) and ingest (and presumably publish) the 4 articles waiting there.
