How to add multiple clients

From Archivematica
(Difference between revisions)
Jump to: navigation, search
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Main Page]] > [[Software]] > [[Install-0.7-alpha]] > How to add multiple clients
+
[[Main Page]] > [[Software]] > [[Install-0.7.1-alpha]] > How to add multiple clients
  
[http://archivematica.org/download Install a Archivematica] onto a client machine, as you normally would.
+
===Checklist===
===Set a static IP on the server machine===
+
*[[Set a static IP]] on your server machine
 +
*[https://help.ubuntu.com/community/SettingUpNFSHowTo#NFSv4%20server NFS is installed/running] on your server machine
  
===Configure fstab to automatically mount the remote shared directory===
+
===Set mysql to listen on public interface (transcoder)===
 +
on MCPServer host, edit /etc/mysql/my.cnf
 +
<pre>sudo nano /etc/mysql/my.cnf</pre>
 +
then comment out
 +
<pre>#bind-address = 127.0.0.1</pre>
 +
restart mysql
 +
<pre>sudo /etc/init.d/mysql restart</pre>
 +
 
 +
===Install===
 +
Install the client package
 +
<pre>sudo aptitude install archivematica-mcp-client</pre>
 +
 
 +
===Configure fstab to automatically mount the remote NFS share directory on client machines===
 +
edit /etc/fstab
 +
<pre>
 +
sudo nano /etc/fstab
 +
</pre>
 +
 
 +
assuming the IP of your NFS server is the same as your MCP-Server (ie 192.168.0.100) add the following
 +
<pre>
 +
192.168.0.100:/var/archivematica/sharedDirectory /var/archivematica/sharedDirectory nfs defaults 0 0
 +
</pre>
 +
 
 +
===Sync Time with OpenNTPd===
 +
Un-comment the listen line in /etc/openntpd/ntpd.conf on your master machine
 +
<pre>
 +
sudo mousepad /etc/openntpd/ntpd.conf
 +
</pre>
 +
<pre>
 +
listen on *
 +
</pre>
 +
<pre>
 +
sudo /etc/init.d/openntpd restart
 +
</pre>
 +
 
 +
on client machines edit /etc/openntpd/ntpd.conf and add your newly created time server and comment out other servers
 +
<pre>
 +
sudo mousepad /etc/openntpd/ntpd.conf
 +
</pre>
 +
<pre>
 +
server myMasterServerIP
 +
#server otherServerAdress
 +
#server otherServerAdress
 +
#server otherServerAdress
 +
</pre>
  
  
Line 32: Line 77:
 
</pre>
 
</pre>
  
===Client Organization Setting===
+
===Disable the MCP Server===
You will need to configure the organization settings, for the premis metadata, on each client.
+
Each client node needs to have the MCP server disabled from starting at startup.  
<pre>
+
 
sudo mousepad /usr/lib/archivematica/MCPClient/clientScripts/createXmlEventsAssist.py
+
</pre>
+
<pre>
+
yourAgentIdentifierType="repository code"
+
yourAgentIdentifierValue="ORG"
+
yourAgentName="Your Organization Name Here"
+
yourAgentType="organization"
+
</pre>
+
  
The strings in the file populate these fields:
+
login to each node, remove /etc/init/archivematica-mcp-server.conf and reboot.
 
<pre>
 
<pre>
<agent>
+
sudo stop archivematica-mcp-server
<agentIdentifier>
+
sudo rm /etc/init/archivematica-mcp-server.conf
<agentIdentifierType>repository code</agentIdentifierType>
+
<agentIdentifierValue>ORG</agentIdentifierValue>
+
</agentIdentifier>
+
<agentName>Your Organization Name Here</agentName>
+
<agentType>organization</agentType>
+
</agent>
+
 
</pre>
 
</pre>
  
 
===Reboot===
 
===Reboot===
<pre>sudo reboot now</pre>
+
<pre>
 +
sudo stop openoffice-service; sudo start openoffice-service
 +
sudo stop archivematica-mcp-client; sudo start archivematica-mcp-client</pre>
 
The client should connect on startup.
 
The client should connect on startup.
 +
 +
Note: to see the dashboard, or ica-atom, you'll need to visit the server's ip address, not localhost.

Latest revision as of 18:51, 27 August 2011

Main Page > Software > Install-0.7.1-alpha > How to add multiple clients

Contents

[edit] Checklist

[edit] Set mysql to listen on public interface (transcoder)

on MCPServer host, edit /etc/mysql/my.cnf

sudo nano /etc/mysql/my.cnf

then comment out

#bind-address = 127.0.0.1

restart mysql

sudo /etc/init.d/mysql restart

[edit] Install

Install the client package

sudo aptitude install archivematica-mcp-client

[edit] Configure fstab to automatically mount the remote NFS share directory on client machines

edit /etc/fstab

sudo nano /etc/fstab

assuming the IP of your NFS server is the same as your MCP-Server (ie 192.168.0.100) add the following

192.168.0.100:/var/archivematica/sharedDirectory /var/archivematica/sharedDirectory nfs defaults 0 0

[edit] Sync Time with OpenNTPd

Un-comment the listen line in /etc/openntpd/ntpd.conf on your master machine

sudo mousepad /etc/openntpd/ntpd.conf
listen on *
sudo /etc/init.d/openntpd restart

on client machines edit /etc/openntpd/ntpd.conf and add your newly created time server and comment out other servers

sudo mousepad /etc/openntpd/ntpd.conf
server myMasterServerIP
#server otherServerAdress
#server otherServerAdress
#server otherServerAdress

[edit] Supported Modules

Comment out the upload and storeAIP tasks, from the supported tasks on the client machine, by prepending the line with a '#'.

sudo mousepad /etc/archivematica/MCPClient/archivematicaClientModules
#upload-qubit_v0.0="upload-qubit "
#storeAIP_v0.0="%clientScriptsDirectory%storeAIP.sh "
...

[edit] Change the IP/Hostname

Change the IP/Hostname the client machine is connecting to.

sudo mousepad /etc/archivematica/MCPClient/clientConfig.conf
MCPArchivematicaServer="server.local"
MCPArchivematicaServerPort="8002"

In the same file, /etc/archivematica/MCPClient/clientConfig.conf, you can set the max number of threads this client will run.

maxThreads="2"

[edit] Disable the MCP Server

Each client node needs to have the MCP server disabled from starting at startup.

login to each node, remove /etc/init/archivematica-mcp-server.conf and reboot.

sudo stop archivematica-mcp-server
sudo rm /etc/init/archivematica-mcp-server.conf

[edit] Reboot

sudo stop openoffice-service; sudo start openoffice-service
sudo stop archivematica-mcp-client; sudo start archivematica-mcp-client

The client should connect on startup.

Note: to see the dashboard, or ica-atom, you'll need to visit the server's ip address, not localhost.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox