Difference between revisions of "Install Archivematica Ubuntu"

From Archivematica
Jump to navigation Jump to search
(→‎Post Install: if you don't give sudoer rights the scripts breaks.)
 
(10 intermediate revisions by the same user not shown)
Line 21: Line 21:
  
 
Give archivematica sudoers rights
 
Give archivematica sudoers rights
<pre>sudo echo "archivematica ALL=NOPASSWD:/bin/mv,/bin/chown,/bin/chmod" >> /etc/sudoers </pre>
+
<pre>sudo echo "archivematica ALL=NOPASSWD:/bin/mv,/bin/chown,/bin/chmod,/usr/bin/unoconv,/usr/bin/gs" >> /etc/sudoers </pre>
 +
 
 +
Add Cron for Quarantine
 +
<pre>
 +
sudo crontab -e
 +
* * * * * flock -xn /var/lock/quarantine.lock /usr/lib/archivematica/MCPServer/delay/delay.sh 1 "/var/archivematica/sharedDirectory/watchedDirectories/quarantined" "/var/archivematica/sharedDirectory/watchedDirectories/unquarantine/."
 +
</pre>
 +
 
 +
==Install Web Applications==
 +
=== Setting up Mysql ===
 +
Create db for dashboard and ica-atom
 +
<pre>
 +
mysqladmin create dashboard
 +
mysqladmin create ica-atom
 +
</pre>
 +
 
 +
=== ICA-Atom ===
 +
In order for the upload-dip service of archivematica to function one must use ica-atom 1.0.9
 +
 
 +
check out revision 6907
 +
<pre> svn checkout -r6907 http://qubit-toolkit.googlecode.com/svn/branches/ica-atom/  ica-atom-svn</pre>
 +
 
 +
export to /var/www
 +
<pre>sudo svn export ica-atom-svn /var/www/ica-atom</pre>
 +
 
 +
=== Dashboard ===
 +
*Packages to Come
 +
check out dashboard
 +
<pre>svn checkout http://archivematica.googlecode.com/svn/trunk/src/dashboard/src dashboard-svn</pre>
 +
 
 +
export to /var/www
 +
<pre>sudo svn export dashboard-svn /var/www/dashboard</pre>
 +
 
 +
=== Setup apache defaults ===
 +
 
 +
edit /etc/apache2/sites-available/default
 +
<pre>sudo nano /etc/apache2/sites-available/default</pre>
 +
 
 +
here is our config for example
 +
<pre>
 +
NameVirtualHost *
 +
 
 +
<VirtualHost *>
 +
 
 +
  ServerAdmin webmaster@localhost
 +
  DocumentRoot /var/www
 +
 
 +
  <Directory />
 +
    Options FollowSymLinks
 +
    AllowOverride None
 +
  </Directory>
 +
 
 +
  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
 +
 
 +
  <Directory "/usr/lib/cgi-bin">
 +
    AllowOverride None
 +
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
 +
    Order allow,deny
 +
    Allow from all
 +
  </Directory>
 +
 
 +
  ErrorLog /var/log/apache2/error.log
 +
 
 +
  # Possible values include: debug, info, notice, warn, error, crit,
 +
  # alert, emerg.
 +
  LogLevel warn
 +
 
 +
  CustomLog /var/log/apache2/access.log combined
 +
  ServerSignature On
 +
 
 +
  Alias /dcb "/var/www/dcb/"
 +
  <Directory "/var/www/dcb/">
 +
    Options Indexes MultiViews FollowSymLinks
 +
    AllowOverride None
 +
    Order allow,deny
 +
    Allow from all
 +
  </Directory>
 +
 
 +
  Alias /qubit "/var/www/qubit/"
 +
  <Directory "/var/www/qubit/">
 +
    Options Indexes MultiViews FollowSymLinks
 +
    AllowOverride None
 +
    Order allow,deny
 +
    Allow from all
 +
  </Directory>
 +
 
 +
  Alias /ica-atom "/var/www/ica-atom/"
 +
  <Directory "/var/www/ica-atom/">
 +
    Options Indexes FollowSymLinks MultiViews
 +
    AllowOverride All
 +
    Order allow,deny
 +
    Allow from all
 +
  </Directory>
 +
 
 +
  # Serve static files from Dashboard
 +
  Alias /media "/var/www/dashboard/media/"
 +
  <Directory "/var/www/dashboard/media/">
 +
    Order allow,deny
 +
    Allow from all
 +
  </Directory>
 +
 
 +
 
 +
  # Django with mod_wsgi
 +
  # http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
 +
  WSGIScriptAlias / /var/www/dashboard/apache/django.wsgi
 +
  <Directory "/var/www/dashboard/apache/">
 +
    Order allow,deny
 +
    Allow from all
 +
  </Directory>
 +
 
 +
</VirtualHost>
 +
</pre>
 +
 
 +
Restart Apache
 +
<pre>sudo  /etc/init.d/apache2 reload</pre>
 +
 
 +
===finishing up===
 +
Both the dashboard and ica-atom should now be available at http://localhost/  and http://localhost/ica-atom

Latest revision as of 13:01, 10 December 2010

This Guide assumes you want to install the core Archivematica Components on a existing Ubuntu 10.04 machine.

Add Our Repository[edit]

CREATE PUBLIC ARCHIVEMATICA REPOSITORY

Installing Packages[edit]

Core Install[edit]

Install the following packages archivematica-mcp-server, archivematica-mcp-client, archivematica-mcp-rpccli,

sudo aptitude install archivematica-mcp-server archivematica-mcp-client archivematica-mcp-rpccli


Shotgun Approach[edit]

There is a meta package available called archivematica-shotgun, aka the shotgun approach. This package is used to build our demo and test environments and includes a wide range of tools and libraries we find useful for digital archiving. It includes archivematica-mcp-server, archivematica-mcp-client, transcoder, archivematica-mcp-rpccli, upload-qubit, droid, fits, jhove, xena, easy-extract, bagit, nfs-kernel-server, nfs-common, fusesmb, smbfs, samba-common, hfsplus, hfsprogs, vlc, guymager, autopsy, gddrescue. This package set assumes you are using a desktop environment, if installing on a server please use the core packages above.

sudo aptitude install archivematica-shotgun

Post Install[edit]

Add your user to the archivematica group

sudo gpasswd -a myUserName archivematica

Give archivematica sudoers rights

sudo echo "archivematica ALL=NOPASSWD:/bin/mv,/bin/chown,/bin/chmod,/usr/bin/unoconv,/usr/bin/gs" >> /etc/sudoers 

Add Cron for Quarantine

sudo crontab -e
* * * * * flock -xn /var/lock/quarantine.lock /usr/lib/archivematica/MCPServer/delay/delay.sh 1 "/var/archivematica/sharedDirectory/watchedDirectories/quarantined" "/var/archivematica/sharedDirectory/watchedDirectories/unquarantine/."

Install Web Applications[edit]

Setting up Mysql[edit]

Create db for dashboard and ica-atom

mysqladmin create dashboard
mysqladmin create ica-atom

ICA-Atom[edit]

In order for the upload-dip service of archivematica to function one must use ica-atom 1.0.9

check out revision 6907

 svn checkout -r6907 http://qubit-toolkit.googlecode.com/svn/branches/ica-atom/  ica-atom-svn

export to /var/www

sudo svn export ica-atom-svn /var/www/ica-atom

Dashboard[edit]

  • Packages to Come

check out dashboard

svn checkout http://archivematica.googlecode.com/svn/trunk/src/dashboard/src dashboard-svn

export to /var/www

sudo svn export dashboard-svn /var/www/dashboard

Setup apache defaults[edit]

edit /etc/apache2/sites-available/default

sudo nano /etc/apache2/sites-available/default

here is our config for example

NameVirtualHost *

<VirtualHost *>

  ServerAdmin webmaster@localhost
  DocumentRoot /var/www

  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>

  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

  <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
  </Directory>

  ErrorLog /var/log/apache2/error.log

  # Possible values include: debug, info, notice, warn, error, crit,
  # alert, emerg.
  LogLevel warn

  CustomLog /var/log/apache2/access.log combined
  ServerSignature On

  Alias /dcb "/var/www/dcb/"
  <Directory "/var/www/dcb/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>

  Alias /qubit "/var/www/qubit/"
  <Directory "/var/www/qubit/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>

  Alias /ica-atom "/var/www/ica-atom/"
  <Directory "/var/www/ica-atom/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>

  # Serve static files from Dashboard
  Alias /media "/var/www/dashboard/media/"
  <Directory "/var/www/dashboard/media/">
    Order allow,deny
    Allow from all
  </Directory>


  # Django with mod_wsgi
  # http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
  WSGIScriptAlias / /var/www/dashboard/apache/django.wsgi
  <Directory "/var/www/dashboard/apache/">
    Order allow,deny
    Allow from all
  </Directory>

</VirtualHost>

Restart Apache

sudo  /etc/init.d/apache2 reload

finishing up[edit]

Both the dashboard and ica-atom should now be available at http://localhost/ and http://localhost/ica-atom