Install WebKeePass on Ubuntu 14.04

WebKeePass is an easy to use password manager which helps you to manage your passwords in a secure way. Focused on deep encryption and ease of use.

Here’s how to install it on an Ubuntu box:

Setup:
– Ubuntu 14.04 Server
– Any SCP Program

1) SSH to the Ubuntu box install Java on the box:
— For Oracle Java 7:
sudo add-apt-repository ppa:webupd8team/java
sudo appt-get update
sudo apt-get install oracle-java7-installer
2) Set the JAVA_HOME environment variable
cd /etc
nano environment
–> insert the line: JAVA_HOME=/usr/lib/jvm/java-7-oracle
3) Reboot the machine
4) Using SCP on your machine, copy the latest build of Web KeePass: http://sourceforge.net/projects/webkeepass/files/
to your home folder (e.g. /home/user)
5) Unzip the file: unzip WebKeePass-3.xxxxx.zip
6) cd WebKeePass3-xxxxx
7) chmod a+x Install.sh
8) ./install.sh
9) Specify the installation directory (e.g. /WebKeePass) and the Java directory (e.g. JAVA_HOME=/usr/lib/jvm/java-7-oracle)
10) Specify the admin and normal user accounts and password
11) Specify the encryption that should be used (e.g. DES, AES, BlowFish)
12) Once everything is installed: cd /WebKeePass
12) chmod a+x ./startup.sh
13) chmod a+x jakarta-tomcat-5.5.7/bin/*
14) Run: ./startup.sh

if all goes well, you will be able to see the following lines:

root@webkeepass:/WebKeePass# ./startup.sh
Using CATALINA_BASE: /WebKeePass/jakarta-tomcat-5.5.7
Using CATALINA_HOME: /WebKeePass/jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR: /WebKeePass/jakarta-tomcat-5.5.7/temp
Using JAVA_HOME: /usr/lib/jvm/java-7-oracle

and you will be able to access WebKeePass at: https://<your server’s ip>:8443