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 14:00] – [section 3] reinhold | lilypond:lsr_setup [2013/03/13 10:42] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 49: | 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 59: | 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 74: | 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 85: | 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 ../ | + | cd - | 
| </ | </ | ||
| ===== Setting up Tomcat ===== | ===== Setting up Tomcat ===== | ||
| Zeile 165: | Zeile 169: | ||
| ===== 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.1309960855.txt.gz · Zuletzt geändert:  (Externe Bearbeitung)
                
                