Benutzer-Werkzeuge

Webseiten-Werkzeuge


freebsd:passwordsafe

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
freebsd:passwordsafe [2012/12/04 13:59]
Idefix /* Deployment */
freebsd:passwordsafe [2013/12/16 12:29] (aktuell)
idefix freebsd-webpasswordsafe umbenannt in freebsd:passwordsafe
Zeile 1: Zeile 1:
 +====== ​ Preparation ​ ======
 +Download webpasswordsafe-src-[[version]].zip and webpasswordsafe-dependencies-bin-[[version]].zip from http://​code.google.com/​p/​webpasswordsafe/​downloads/​list.
 +Store them in /​usr/​local/​src.
 +
 +Make sure you have installed java with the "​Install the Unlimited Strength Policy Files" selected.
 +Make sure maven is installed:
 +<​code>​
 +cd /​usr/​ports/​devel/​maven3
 +make install
 +make clean
 +</​code>​
 +
 +We use mysql as database and Jetty as servlet container.
 +<​code>​
 +cd /​usr/​ports/​databases/​mysql-connector-java
 +make install
 +make clean
 +</​code>​
 +
 +====== ​ Installation ​ ======
 +Now unpack files to /​usr/​local/​src
 +<​code>​
 +cd /​usr/​local/​src
 +unzip webpasswordsafe-src-1.2.1.zip
 +unzip webpasswordsafe-dependencies-bin-1.2.zip
 +cd /​usr/​local/​src/​webpasswordsafe/​war/​WEB-INF/​lib
 +cp /​usr/​local/​share/​java/​classes/​mysql-connector-java.jar /​usr/​local/​src/​webpasswordsafe/​war/​WEB-INF/​lib/​
 +cp -R /​usr/​local/​src/​webpasswordsafe-dependencies-bin/​resources/​* /​usr/​local/​src/​webpasswordsafe/​war/​gxt/​
 +cd /​usr/​local/​src/​webpasswordsafe-dependencies-bin/​
 +mvn install:​install-file -DgroupId=com.extjs -DartifactId=gxt -Dversion=2.2.5 -Dpackaging=jar -Dfile=gxt-2.2.5-gwt22.jar
 +mvn install:​install-file -DgroupId=net.sf.gwt-widget -DartifactId=gwt-sl -Dversion=1.1 -Dpackaging=jar -Dfile=gwt-sl-1.1.jar
 +mvn install:​install-file -DgroupId=trove -DartifactId=trove -Dversion=2.0.4 -Dpackaging=jar -Dfile=trove-2.0.4.jar
 +</​code>​
 +
 +Setup database:
 +<​code>​
 +mysql -u root -p mysql
 +create database wps;
 +grant all privileges on wps.* to '​wps'​@'​localhost'​ identified by '​password';​
 +quit
 +</​code>​
 +
 +====== ​ Configuration ​ ======
 +Now we have to change some configfiles:​
 +<​code>​
 +emacs /​usr/​local/​src/​webpasswordsafe/​war/​WEB-INF/​encryption.properties
 +</​code>​
 +Make sure to set a random string for encryptor.jasypt.password.
 +
 +Setup database config:
 +<​code>​
 +emacs /​usr/​local/​src/​webpasswordsafe/​war/​WEB-INF/​jdbc.properties
 +</​code>​
 +Put in here the username, password and database name for mysql.
 +
 +Configure the link the page is reachable:
 +<​code>​
 +emacs /​usr/​local/​src/​webpasswordsafe/​war/​WEB-INF/​webservice-servlet.xml
 +change here locationUri to correct URI.
 +</​code>​
 +
 +====== ​ Build  ======
 +<​code>​
 +cd /​usr/​local/​src/​webpasswordsafe
 +mvn clean package
 +</​code>​
 +
 +====== ​ Deployment ​ ======
 +<​code>​
 +cp /​usr/​local/​src/​webpasswordsafe/​target/​webpasswordsafe-1.2.1.war /​usr/​local/​jetty/​webapps/​
 +service jetty restart
 +</​code>​
  
freebsd/passwordsafe.txt · Zuletzt geändert: 2013/12/16 12:29 von idefix