Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
reloaded:be_fedora [2017/03/20 16:24]
giancarlo created
reloaded:be_fedora [2017/03/20 17:28]
giancarlo
Line 3: Line 3:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +service tomcat7 stop
 +
 mkdir /usr/local/fedora mkdir /usr/local/fedora
 mkdir /srv/data mkdir /srv/data
Line 13: Line 15:
  export FEDORA_HOME=/usr/local/fedora  export FEDORA_HOME=/usr/local/fedora
  PATH=$FEDORA_HOME/server/bin:$FEDORA_HOME/client/bin:$JAVA_HOME/bin:$PATH  PATH=$FEDORA_HOME/server/bin:$FEDORA_HOME/client/bin:$JAVA_HOME/bin:$PATH
-service tomcat7 stop 
  
 mysql -u root -p mysql -u root -p
- CREATE DATABASE smrepo+ CREATE DATABASE digirepo
- GRANT ALL ON smrepo.* TO fedoraAdmin@localhost IDENTIFIED BY '***';+ GRANT ALL ON digirepo.* TO fedoraAdmin@localhost IDENTIFIED BY '***';
  FLUSH PRIVILEGES;  FLUSH PRIVILEGES;
  
Line 79: Line 80:
  
  
-Enter a value [default is localhost] ==> fabbrepo.to.cnr.it+Enter a value [default is localhost] ==> repo.digibess.eu
  
  
Line 197: Line 198:
  
  
-Enter a value [default is jdbc:mysql://localhost/fedora3?useUnicode=true&amp;characterEncoding=UTF-8&amp;autoReconnect=true] ==> jdbc:mysql://localhost/smrepo?useUnicode=true&amp;characterEncoding=UTF-8&amp;autoReconnect=true                                       +Enter a value [default is jdbc:mysql://localhost/fedora3?useUnicode=true&amp;characterEncoding=UTF-8&amp;autoReconnect=true] ==> jdbc:mysql://localhost/digirepo?useUnicode=true&amp;characterEncoding=UTF-8&amp;autoReconnect=true                                       
  
 JDBC DriverClass JDBC DriverClass
Line 374: Line 375:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
-chown -R tomcat7:tomcat7 /usr/local/fedora +mv /usr/local/fedora/data/activemq-data /srv/activemq-data 
-chown -R tomcat7:tomcat7 /srv/data+ln -/srv/activemq-data /usr/local/fedora/data/ 
 +</code> 
 +</WRAP> 
 +Add policy for getDatastreamHistory unrestricted. 
 +<WRAP prewrap center> 
 +<code> 
 +git clone https://github.com/Islandora/islandora-xacml-policies.git islandora-xacml-policies
  
-service tomcat7 start+mkdir /usr/local/fedora//data/fedora-xacml-policies/repository-policies/islandora 
 +cp islandora-xacml-policies/permit-getDatastreamHistory-unrestricted.xml /usr/local/fedora/data/fedora-xacml-policies/repository-policies/islandora/ 
 +</code> 
 +</WRAP> 
 +Add back-end and front-end IP to apim policy: 
 +<WRAP prewrap center> 
 +<code> 
 +nano -w /usr/local/fedora/data/fedora-xacml-policies/repository-policies/default/deny-apim-if-not-localhost.xml 
 +</code> 
 +</WRAP> 
 +<WRAP prewrap center> 
 +<code xml> 
 + <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">150.145.48.48</AttributeValue> 
 + <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">2a00:1620:0:0:0:0:0:48</AttributeValue> 
 + <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">150.145.48.49</AttributeValue> 
 + <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">2a00:1620:0:0:0:0:0:49</AttributeValue> 
 +</code> 
 +</WRAP> 
 +<WRAP prewrap center> 
 +<code> 
 +chown -R tomcat7:tomcat7 /usr/local/fedora 
 +chown -R tomcat7:tomcat7 /srv/data /srv/tmp /srv/activemq-data
 </code> </code>
 </WRAP> </WRAP>
  
 
 
reloaded/be_fedora.txt · Last modified: 2018/04/09 20:23 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki