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:33] – [section 9] reinhold | lilypond:lsr_setup [2013/03/13 10:42] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
- Install tomcat, mod_jk, velocity, libtagsoup-java, | - Install tomcat, mod_jk, velocity, libtagsoup-java, | ||
- | - Download [[http:// | + | - Download [[http:// |
- | mg4j-deps.tar.gz | + | |
- | mg4j-3.0.1-bin.tar.gz | + | |
- | ERW-1.0.10.tar.gz | + | |
- | lsr-0.5-src.tar.gz | + | |
- | lsr-2011-06-30.mysqldump.gz | + | |
- | </ | + | |
- Extract the LSR source code (into the lsr-0.5/ directory):< | - Extract the LSR source code (into the lsr-0.5/ directory):< | ||
tar xfz lsr-0.5-src.tar.gz | tar xfz lsr-0.5-src.tar.gz | ||
- | mkdir -p lsr-0.5/lib | ||
</ | </ | ||
Zeile 19: | Zeile 17: | ||
- Install MG4J: extract mg4j and all dependencies to the the lsr folder: < | - Install MG4J: extract mg4j and all dependencies to the the lsr folder: < | ||
+ | mkdir -p lsr-0.5/lib | ||
tar -C lsr-0.5/ | tar -C lsr-0.5/ | ||
- | rm lsr-0.5/ | + | rm lsr-0.5/ |
tar xfz mg4j-3.0.1-bin.tar.gz | tar xfz mg4j-3.0.1-bin.tar.gz | ||
- | cp mg4j-3.0.1/ | + | cp mg4j-3.0.1/ |
</ | </ | ||
- Copy all required global jar files to the lsr code directory:< | - Copy all required global jar files to the lsr code directory:< | ||
- | cp / | + | cp / |
cp / | cp / | ||
cp / | cp / | ||
Zeile 31: | Zeile 30: | ||
</ | </ | ||
- Create a sh/ subdirectory that will contain several helper shell scripts:< | - Create a sh/ subdirectory that will contain several helper shell scripts:< | ||
- | mkdir -p lsr-0.5/ | + | mkdir -p lsr-0.5/sh/ |
- | - Download | + | </ |
- We also need to tell the javac compiler to use those .jar files in the lib subdirectory (plus, the build.xml file contains the wrong version), therefore we have to patch build.xml. Download the following patch and store it in the lsr-0.4/ subdirectory: | - We also need to tell the javac compiler to use those .jar files in the lib subdirectory (plus, the build.xml file contains the wrong version), therefore we have to patch build.xml. Download the following patch and store it in the lsr-0.4/ subdirectory: | ||
cd lsr-0.5/ | cd lsr-0.5/ | ||
Zeile 41: | 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 48: | 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 58: | ||
</ | </ | ||
- 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/ | ||
+ | alias myerwtool=" | ||
cd lsr-0.5/ | cd lsr-0.5/ | ||
- | java -cp ../ | + | myerwtool |
- | mkdir defs | + | mkdir -p defs |
cd defs | cd defs | ||
- | java -cp ../ | + | myerwtool |
cd .. | cd .. | ||
- | java -cp ../ | + | 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/ | ||
- | mkdir -p web/LSR/ERW/ | + | cp lsr-0.5/ERW/ |
- | cp -r lsr-0.5/ | + | cp lsr-0.5/ |
- | mv web/LSR/ERW/ | + | cp lsr-0.5/ERW/forms/ |
+ | mv web/ | ||
cp lsr-0.5/ | cp lsr-0.5/ | ||
</ | </ | ||
- | - Download the web.xml | + | - Download the web.xml and velocity.properties files to the web/ |
- | - Download the velocity.properties file and save it in 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.1309959226.txt.gz · Zuletzt geändert: 2013/03/13 10:42 (Externe Bearbeitung)