lilypond:lsr_setup
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
lilypond:lsr_setup [2011/07/06 13:45] – [section 2] reinhold | lilypond:lsr_setup [2013/03/13 10:42] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 40: | Zeile 40: | ||
cd .. | cd .. | ||
</ | </ | ||
+ | - Finally, remove all hardcoded references to lsr.dsi.unimi.it and to the https host (we are using http for both the front- and the backend). Download this patch: {{: | ||
+ | patch -p0 < remove-dsi-url-https.patch | ||
+ | </ | ||
===== Setting up the MySQL database ===== | ===== Setting up the MySQL database ===== | ||
- Create a MySQL user lsr with password lsr and also create a database lsr, to which the user has all rights. | - Create a MySQL user lsr with password lsr and also create a database lsr, to which the user has all rights. | ||
Zeile 47: | Zeile 49: | ||
mysql --user=lsr --password=lsr lsr < lsr-2011-06-30.mysqldump | mysql --user=lsr --password=lsr lsr < lsr-2011-06-30.mysqldump | ||
</ | </ | ||
- | - Create a group superadmin and give it all rights to all types. Also add a user ' | + | - Create a group superadmin and give it all rights to all types. Also add a user ' |
mysql --user=lsr --password=lsr lsr < sql-add-superadmin.sql | mysql --user=lsr --password=lsr lsr < sql-add-superadmin.sql | ||
</ | </ | ||
Zeile 57: | Zeile 59: | ||
- Create the proper forms, definition files and the SQL for an initial database for ERW (ertool --forms/ | - Create the proper forms, definition files and the SQL for an initial database for ERW (ertool --forms/ | ||
erwdir=$PWD/ | erwdir=$PWD/ | ||
+ | alias myerwtool=" | ||
cd lsr-0.5/ | cd lsr-0.5/ | ||
- | java -cp $erwdir/ | + | myerwtool |
mkdir -p defs | mkdir -p defs | ||
cd defs | cd defs | ||
- | java -cp $erwdir/ | + | myerwtool |
cd .. | cd .. | ||
- | java -cp $erwdir/ | + | myerwtool |
cd ../../ | cd ../../ | ||
</ | </ | ||
Zeile 72: | Zeile 75: | ||
===== Preparing the web host's directory structure ===== | ===== Preparing the web host's directory structure ===== | ||
- Create an output directory, where we collect all files for the web application: | - Create an output directory, where we collect all files for the web application: | ||
- | mkdir -p web/ | + | mkdir -p web/ |
</ | </ | ||
- Copy the lsr-0.5.jar and all other required java packages to the output directory:< | - Copy the lsr-0.5.jar and all other required java packages to the output directory:< | ||
Zeile 83: | Zeile 86: | ||
- Copy all LSR files (also the generated ERW files) over, which will be served by apache:< | - Copy all LSR files (also the generated ERW files) over, which will be served by apache:< | ||
cp -r lsr-0.5/ | cp -r lsr-0.5/ | ||
- | cp lsr-0.5/ | + | cp lsr-0.5/ |
- | cp lsr-0.5/ | + | cp lsr-0.5/ |
- | cp lsr-0.5/ | + | cp lsr-0.5/ |
- | mv web/ERW/ | + | mv web/ |
cp lsr-0.5/ | cp lsr-0.5/ | ||
</ | </ | ||
- | - Download the web.xml and velocity.properties files to the web/ | + | - Download the web.xml and velocity.properties files to the web/ |
- | - Open web/ERW-config.orig.php in a text editor and change $_ERW_erlId, | + | * {{: |
- | mv web/ERW-config.orig.php web/ERW-config.php | + | * {{: |
+ | - Open web/ERW-conf.orig.php in a text editor and change $_ERW_erlId, | ||
+ | mv web/ERW-conf.orig.php web/ERW-conf.php | ||
</ | </ | ||
- Create the initial MG4J search index:< | - Create the initial MG4J search index:< | ||
+ | lsrshdir=$PWD/ | ||
cd web/ | cd web/ | ||
- | . ../ | + | . $lsrshdir/setcp.sh |
- | | + | |
+ | cd - | ||
</ | </ | ||
===== Setting up Tomcat ===== | ===== Setting up Tomcat ===== | ||
Zeile 161: | Zeile 168: | ||
===== Setting up the LilyPond jail needed for creating snippet output ===== | ===== Setting up the LilyPond jail needed for creating snippet output ===== | ||
+ | |||
+ | - Install a Lilypond version from the binary builds: | ||
+ | - Download the .sh file | ||
+ | - As root, do < | ||
+ | sudo mkdir / | ||
+ | sudo ./ | ||
+ | - Use {{: | ||
+ | sudo ./ | ||
+ | - This script will print out some instructions how to enable sudo for a user and how to automount the jail on boot. Follow the instructions, | ||
+ | - Add the following line to /etc/fstab to ensure the loop device will be mounted on boot:< | ||
+ | / | ||
+ | - Call '' | ||
+ | ALL | ||
+ | ALL | ||
+ | ALL | ||
+ | </ | ||
+ | For details see the LilyPond documentation: | ||
===== Open issues ===== | ===== Open issues ===== | ||
- | * Adjust all hard-coded links to lsr.dsi.unimi.it by relative links to the local host. | + | . |
lilypond/lsr_setup.1309959922.txt.gz · Zuletzt geändert: 2013/03/13 10:42 (Externe Bearbeitung)