Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

NOTE:

...

These

...

instructions

...

are

...

deprecated.

...

See

...

the

...

Thalia

...

Setup

...

and

...

Configuration

...

(Simplified)

...

instructions

...

elsewhere

...

on

...

this

...

Wiki.

...

Note:

...

Next

...

revision

...

cycle,

...

start

...

building

...

everything

...

into

...


$HOME/

...

[app

...

]-

...

[version#

...

]

...

and

...

creating

...

a

...

symlink

...

to

...

$HOME/

...

[app

...

]

...

so

...

that

...

there

...

is

...


no

...

question

...

about

...

what

...

the

...

current,

...

in

...

use,

...

directory

...

is.

...

Note:

...

When

...

downloading

...

software

...

to

...

install

...

in

...

these

...

instructions,

...

unless

...


otherwise

...

noted,

...

always

...

download

...

the

...

source

...

code,

...

and

...

avoid

...

binary

...

installers.

...


Binary

...

installers

...

tend

...

to

...

make

...

inaccurate

...

assumptions

...

about

...

what

...

libraries

...

you

...


have

...

installed

...

on

...

your

...

system,

...

as

...

well

...

as

...

other

...

problems.

...

When

...

setting

...

up

...

Thalia

...

servers,

...

be

...

certain

...

to

...

know

...

which

...

servers

...

have

...

which

...


hostnames,

...

and

...

where

...

they

...

will

...

fit

...

into

...

the

...

cluster

...

stack.

...

  A

...

Thalia

...

cluster

...


will

...

need

...

3

...

layers

...

to

...

the

...

cluster.

...

  While

...

these

...

can

...

all

...

exist

...

on

...

the

...

same

...


server,

...

this

...

is

...

not

...

recommended.

...

  1. Configure

...

  1. an

...

  1. Apache

...

  1. SSL/Tomcat

...

  1. server

...

  1. as

...

  1. described

...

  1. in

...

  1. the

...

  1. Apache-SSL

...

  1. instructions.

...

  1.   This

...

  1. is

...

  1. the

...

  1. top

...

  1. layer

...

  1. of

...

  1. the

...

  1. cluster.

...

  1. Extra

...

  1. care

...

  1. must

...

  1. be

...

  1. given

...

  1. to

...

  1. certificates

...

  1. and

...

  1. wildcard

...

  1. DNS

...

  1. entries

...

  1. if

...

  1. the

...

  1. system

...

  1. is

...

  1. going

...

  1. to

...

  1. exist

...

  1. within

...

  1. a

...

  1. multi-stack

...

  1. cluster.

...

  1. Configure

...

  1. an

...

  1. Alfresco

...

  1. server

...

  1. without

...

  1. WCM

...

  1. components,

...

  1. as

...

  1. described

...

  1. in

...

  1. the

...

  1. Alfresco

...

  1. instructions.

...

  1.   This

...

  1. is

...

  1. the

...

  1. second

...

  1. layer

...

  1. of

...

  1. the

...

  1. stack.

...

  1. Give

...

  1. care

...

  1. to

...

  1. the

...

  1. cluster

...

  1. configuration

...

  1. is

...

  1. this

...

  1. is

...

  1. part

...

  1. of

...

  1. a

...

  1. multi-stack

...

  1. cluster.

...

  1. If

...

  1. needed,

...

  1. do

...

  1. not

...

  1. start

...

  1. the

...

  1. Alfresco

...

  1. instance

...

  1. until

...

  1. after

...

  1. the

...

  1. configuration

...

  1. below,

...

  1. and

...

  1. unpack

...

  1. the

...

  1. alfresco.war

...

  1. file

...

  1. like

...

  1. this:

...

  1. Code Block

...

  1. 
    cd $ALF_HOME/tomcat/webapps
    mkdir alfresco
    cd alfresco
    $JAVA_HOME/bin/jar -xvf ../alfresco.war
    

...

  1. Configure a MySQL server as described in the MySQL instructions.  This is the bottom layer of the stack. Be certain to configure replication if it is part of a multi-stack cluster.
  2. On the top system in the stack, create directory structure:
    Code Block
    
    mkdir /home/www/thalia
    mkdir /home/www/thalia/conf
    mkdir /home/www/thalia/log
    mkdir /home/www/thalia/bulkimage
    mkdir /home/www/thalia/tmp
    

...

  1. Place the thaliausers.xml

...

  1. file

...

  1. into

...

  1. /home/www/thalia/conf.

...

  1.   Its

...

  1. contents

...

  1. should

...

  1. be

...

  1. similar

...

  1. to:

...

  1. Code Block

...

  1. 
    <user-list>
    <user><name>iannuzzo</name>
    <domain>ADMIN</domain>
    </user>
    <user><name>colodzin</name>
    <domain>ADMIN</domain>
    </user>
    <user><name>dongq</name>
    <domain>ADMIN</domain>
    </user>
    <user><name>dracus</name>
    <domain>ADMIN</domain>
    </user-list>
    

...

  1. Install ImageMagic  and Ghostscript on the top layer of the stack.
    1. go to www.imagemagick.org

...

    1. and

...

    1. get

...

    1. the

...

    1. source

...

    1. distribution:

...

    1. ImageMagick-6.3.9-6.tar.gz,

...

    1. or

...

    1. get

...

    1. it

...

    1. from

...

    1. the

...

    1. ISDA

...

    1. software

...

    1. repository

...

    1. on

...

    1. Trogdor

...

    1. unzip

...

    1. and

...

    1. untar

...

    1. ImageMagick-6.3.9-6.tar.gz

...

    1. and

...

    1. cd

...

    1. to

...

    1. ImageMagic-6.3.9-6

...

    1. directory

...

    1. Code Block

...

    1. 
      cd /opt
      tar -xzvf /root/ImageMagick-6.3.9-6.tar.gz
      cd ImageMagick-6.3.9
      

...

    1. by default,

...

    1. the

...

    1. base

...

    1. installation

...

    1. directory

...

    1. is

...

    1. /usr/local.

...

    1. binary

...

    1. files

...

    1. go

...

    1. in

...

    1. /usr/local/bin

...

    1. and

...

    1. library

...

    1. files

...

    1. go

...

    1. in

...

    1. /usr/local/lib.

...

    1. If

...

    1. you

...

    1. want

...

    1. to

...

    1. specify

...

    1. an

...

    1. installationprefix

...

    1. other

...

    1. than

...

    1. /usr/local,

...

    1. you

...

    1. can

...

    1. do

...

    1. it

...

    1. by

...

    1. specify

...

    1. the

...

    1. --prefix=PATH

...

    1. Code Block

...

    1. 
      ./configure
      make
      make install
      

...

    1. ##*For

...

    1. more

...

    1. info,

...

    1. please

...

    1. refer

...

    1. to

...

    1. the

...

    1. Install-unix.txt

...

    1. in

...

    1. the

...

    1. package.

...

    1. after

...

    1. installation,

...

    1. you

...

    1. should

...

    1. be

...

    1. able

...

    1. to

...

    1. type

...

    1. "convert"

...

    1. command

...

    1. and

...

    1. get

...

    1. the

...

    1. help

...

    1. page.

...

    1. Go

...

    1. to

...

    1. http://pages.cs.wisc.edu/~ghost/

...

    1. download

...

    1. ghostscript-8.61.tar.gz

...

    1. and

...

    1. ghostscript-fonts-std-8.11.tar.gz,

...

    1. or

...

    1. get

...

    1. them

...

    1. from

...

    1. the

...

    1. ISDA

...

    1. software

...

    1. repository

...

    1. on

...

    1. Trogdor.

...

    1. Remove

...

    1. previous

...

    1. ghostscript

...

    1. builds

...

    1. and

...

    1. build

...

    1. ghostscript

...

    1. from

...

    1. source

...

    1. Code Block

...

    1. 
      cd /opt
      tar -xzvf /root/ghostscript-8.62.tar.gz
      cd ghostscript-8.62
      ./configure
      make
      make install
      cd /usr/local/share/ghostscript/
      tar -xzvf /root/ghostscript-fonts-std-8.11.tar.gz
      

...

  1. On the second server in the stack, customize the Alfresco installation.
    1. Stop the Alfresco service, if needed.
      Code Block
      
      cd /home/alfresco-[version number]-[series]
      ./alfresco.sh stop
      ps aux | grep alfresco
      

...

      • Repeat the ps command until the Alfresco processes terminate.
    1. Edit contentModel.xml and add the Thalia admin property definition. It is located in the following directory:
      Code Block
      
      $ALF_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/model
      

...

    1. In the block containing <type name="cm:person">,

...

    1. and

...

    1. before

...

    1. the

...

    1. </properties>

...

    1. line,

...

    1. add:

...

    1. Code Block

...

    1. 
      <property name="cm:isAdmin">
             <type>d:text</type>
           </property>
      

...

    1. Put our custom model (includes thaliaModel.xml

...

    1. and

...

    1. thalia-model-context.xml)

...

    1. in

...

    1. the

...

    1. extension

...

    1. folder.

...

    1. Use

...

    1. the

...

    1. one

...

    1. from

...

    1. either

...

    1. the

...

    1. deploy

...

    1. repository

...

    1. or

...

    1. from

...

    1. thalia-dev.

...

    1. Edit

...

    1. permissionDefinitions.xml

...

    1. and

...

    1. add

...

    1. the

...

    1. Thalia

...

    1. permissionGroup

...

    1. definitions

...

    1. to

...

    1. the

...

    1. permission

...

    1. group

...

    1. definition

...

    1. block.

...

    1. Be

...

    1. certain

...

    1. not

...

    1. to

...

    1. split

...

    1. a

...

    1. block

...

    1. of

...

    1. code.

...

    1. It

...

    1. is

...

    1. located

...

    1. in

...

    1. directory:

...

    1. Code Block

...

    1. 
      $ALF_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/model
      

...

      • The new block should be inserted after:
        Code Block
        
        <permissionGroup name="Execute" allowFullControl="false" expose="false">
                  <includePermissionGroup type="sys:base" permissionGroup="ExecuteContent" />
              </permissionGroup>
        

...

      • The additional block should be:
        Code Block
        
        <!-- Custom permissions for Thalia -->
        
                   <permissionGroup name="ThaliaWrite" allowFullControl="false"
                         expose="false">
                      <includePermissionGroup type="sys:base" permissionGroup="Write"/>
                  <includePermissionGroup type="sys:base" permissionGroup="Read"/>
                  <includePermissionGroup type="sys:base"
                         permissionGroup="AddChildren"/>
                  <includePermissionGroup type="sys:base" permissionGroup="Delete"/>
                  <includePermissionGroup type="sys:base"
                         permissionGroup="ExecuteContent"/>
                   </permissionGroup>
        
                   <permissionGroup name="ThaliaRead"  allowFullControl="false"
                         expose="false">
                     <includePermissionGroup type="sys:base"
                          permissionGroup="ReadProperties"/>
                     <includePermissionGroup type="sys:base"
                          permissionGroup="ReadChildren"/>
                 <includePermissionGroup type="sys:base"
                          permissionGroup="ReadContent"/>
                   </permissionGroup>
        
                   <permissionGroup name="ThaliaDownload" allowFullControl="false"
                        expose="false">
                      <includePermissionGroup type="sys:base"
                          permissionGroup="ReadProperties"/>
                      <includePermissionGroup type="sys:base"
                          permissionGroup="ReadChildren"/>
                      <includePermissionGroup type="sys:base"
                          permissionGroup="ReadContent"/>
                  <includePermissionGroup type="sys:base"
                          permissionGroup="ExecuteContent"/>
                   </permissionGroup>
        
                   <!--  End of custom permissions for Thalia  -->
        

...

    1. Add an admin account to the Alfresco custom-authority-services-context.xml

...

    1. file.

...

    1. The

...

    1. file

...

    1. is

...

    1. located

...

    1. at:

...

    1. Code Block

...

    1. 
      $ALF_HOME/tomcat/shared/classes/alfresco/extension
      

...

      • In the <property name="adminUsers">

...

      • block,

...

      • add

...

      • the

...

      • following

...

      • line

...

      • before

...

      • the

...

      • </properties>

...

      • line:

...

      • Code Block

...

      • 
        <value>thaliaAdmin</value>
        

...

      • If the file is not there, import it from the ISDA software and file repsoitory or another 2.1 E machine. Alternatively, add this line to the file located at:
        Code Block
        
        $ALF_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/authority-services-context.xml
        

...

    1. If this is going to be part of a cluster, do the Alfresco cluster configuration now, per the Alfresco Cluster setup instructions.
    2. Update the user files, and start the Alfresco service.
      Code Block
      
      chown -R repos:repos /home/repos
      cd $ALF_HOME
      ./alfresco.sh start
      

...

  1. Log in as the Alfresco Admin user, and add the thaliaAdmin and guestUser users. Check the passwords for these users on the Thalia server (top server in the stack).  Use the Web interface web tool in Alfresco to do this.
    1. Also create a guest user account.  User name is guestuser, and the password is in the /home/apache-tomcat-5.5.23/webapps/ROOT/WEB-INF/web.xml

...

    1. file.

...

  1. On

...

  1. the

...

  1. top

...

  1. server

...

  1. in

...

  1. the

...

  1. stack,

...

  1. run

...

  1. the

...

  1. BuildThaliaDomain

...

  1. tool

...

  1. to

...

  1. create

...

  1. domains.

...

  1. Code Block

...

  1. 
    cd /home/qing/dist
    $JAVA_HOME/bin/java -classpath ./lib -jar \
        BuildThaliaDomain.jar \
        http://`hostname`:8080/alfresco \
        [DOMAIN NAME]
    

...

    • Where [DOMAIN

...

    • NAME

...

    • ]

...

    • is

...

    • the

...

    • domain

...

    • to

...

    • configure

...

    • (such

...

    • as

...

    • test,

...

    • hst,

...

    • psb,

...

    • etc).

...

  1. Upload

...

  1. the

...

  1. thalia-ime.war

...

  1. file

...

  1. to

...

  1. /home/apache-tomcat-5.5.23/webapps.

...

    1. Copy

...

    1. the

...

    1. thalia.war

...

    1. file

...

    1. from

...

    1. either

...

    1. the

...

    1. deploy

...

    1. repository

...

    1. (pending)

...

    1. or

...

    1. from

...

    1. thali-dev.mit.edu:/home/apache-tomcat/webapps

...

    1. to

...

    1. [newserver

...

    1. ]:/home/apache-tomcat/webapps

...

    1. as

...

    1. BOTH

...

    1. thalia.war

...

    1. and

...

    1. ROOT.war.

...

    1. If

...

    1. this

...

    1. is

...

    1. a

...

    1. production

...

    1. server,

...

    1. move

...

    1. the

...

    1. current

...

    1. web.xml

...

    1. file

...

    1. to

...

    1. web.xml.original,

...

    1. and

...

    1. web.xml.production

...

    1. to

...

    1. web.xml.

...

    1. Change

...

    1. the

...

    1. passwords

...

    1. for

...

    1. the

...

    1. users

...

    1. admin

...

    1. and

...

    1. thaliaAdmin

...

    1. on

...

    1. both

...

    1. the

...

    1. Alfresco

...

    1. repository

...

    1. and

...

    1. the

...

    1. Thalia

...

    1. IME

...

    1. server.

...

  1. Set

...

  1. the

...

  1. domain

...

  1. specific

...

  1. metadata

...

  1. mapping

...

  1. Upload

...

  1. the

...

  1. rmoldlog.py

...

  1. file

...

  1. to

...

  1. /root,

...

  1. and

...

  1. add

...

  1. the

...

  1. following

...

  1. line

...

  1. to

...

  1. /var/spool/cron/root:

...

  1. Code Block

...

  1. 
    30 2 * * * /root/rmoldlog.py > /loc/logs/rmlog.log&nbsp; 2>&1 &
    

...