User Tools

Site Tools


config:keepass

This is an old revision of the document!


Keepass2

Main Windows Download link (Pro version) can be found here:

http://keepass.info/download.html

It can be installed under linux using

apt-get install keepass2 ca-certificates 

Plugins under Linux

Keepass compiles plugins and requires the complete mono environment in order to do this.

apt-get install mono-complete ca-certificates 

Once plugins are copied into the /usr/lib/keepass2 directory, ensure to chmod 666 the plugin file.

for the googlesync plugin, the following is required:

download sync plugin, then extract the zip from http://sourceforge.net/projects/kp-googlesync/?source=typ_redirect

sudo cp GoogleSyncPlugin.plgx /usr/lib/keepass2
sudo apt-get install liblog4net1.2-cil
sudo cp /usr/lib/cli/log4net-1.2/log4net.dll /usr/lib/keepass2
sudo cp /usr/lib/mono/2.0/System.ServiceModel.Web.dll /usr/lib/keepass2
possibly also required is the import of the mozilla root certificates:
mozroots --import --sync

Google Drive Sync

apt install golang

vi ~/.bashrc
export GOPATH=$HOME/gopath
export PATH=$GOPATH:$GOPATH/bin:$PATH

source ~/.bashrc

go get -u github.com/odeke-em/drive/cmd/drive

mkdir ~/gdrive
drive init ~/gdrive
open url, log into google, authorise drive, copy and paste authorization code.


cd ~/gdrive
drive pull Wulf.kdbx

mkdir ~/KeePass/

vi ~/KeePass/keepass_trigger_load.sh

#!/bin/bash
cd ~/gdrive
drive pull -ignore-conflict -quiet Wulf.kdbx

vi ~/keepass_trigger_save.sh:

#!/bin/bash
cp ~/KeePass/Wulf.kdbx ~/gdrive
cd ~/gdrive
drive push -ignore-conflict -quiet Wulf.kdbx

chmod 777 keepass_trigger_*.sh

Keepass Trigger Config “Save to Google Drive” / “Load from Google Drive”. Copy the xml to clipboard, then in Keepass go to tools → triggers → tools → Paste from clipboard. Adjust the paths in the triggers.

<?xml version="1.0" encoding="utf-8"?>
<TriggerCollection xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Triggers>
		<Trigger>
			<Guid>DWgF+SL63U+GAsBJQXhahg==</Guid>
			<Name>Save to Google Drive</Name>
			<Comments>When the local copy is saved, the server copy will be pulled and synchronized with the local copy. The local copy will then be copied to the local Google Drive folder and pushed to the server.</Comments>
			<Events>
				<Event>
					<TypeGuid>s6j9/ngTSmqcXdW6hDqbjg==</TypeGuid>
					<Parameters>
						<Parameter>0</Parameter>
						<Parameter>/home/wuff/KeePass/Wulf.kdbx</Parameter>
					</Parameters>
				</Event>
			</Events>
			<Conditions />
			<Actions>
				<Action>
					<TypeGuid>tkamn96US7mbrjykfswQ6g==</TypeGuid>
					<Parameters>
						<Parameter />
						<Parameter>0</Parameter>
					</Parameters>
				</Action>
				<Action>
					<TypeGuid>2uX4OwcwTBOe7y66y27kxw==</TypeGuid>
					<Parameters>
						<Parameter>/home/wuff/KeePass/keepass_trigger_load.sh</Parameter>
						<Parameter />
						<Parameter>True</Parameter>
						<Parameter>0</Parameter>
						<Parameter />
					</Parameters>
				</Action>
				<Action>
					<TypeGuid>Iq135Bd4Tu2ZtFcdArOtTQ==</TypeGuid>
					<Parameters>
						<Parameter>/home/wuff/gdrive/Wulf.kdbx</Parameter>
						<Parameter />
						<Parameter />
					</Parameters>
				</Action>
				<Action>
					<TypeGuid>2uX4OwcwTBOe7y66y27kxw==</TypeGuid>
					<Parameters>
						<Parameter>/home/wuff/KeePass/keepass_trigger_save.sh</Parameter>
						<Parameter />
						<Parameter>False</Parameter>
						<Parameter>0</Parameter>
						<Parameter />
					</Parameters>
				</Action>
				<Action>
					<TypeGuid>tkamn96US7mbrjykfswQ6g==</TypeGuid>
					<Parameters>
						<Parameter />
						<Parameter>1</Parameter>
					</Parameters>
				</Action>
			</Actions>
		</Trigger>
		<Trigger>
			<Guid>POhA77GdHU6Hy6Pwl7pf/w==</Guid>
			<Name>Load from Google Drive</Name>
			<Comments>When the local copy is opened, the server copy will be pulled and synchronized with the local copy.</Comments>
			<Events>
				<Event>
					<TypeGuid>5f8TBoW4QYm5BvaeKztApw==</TypeGuid>
					<Parameters>
						<Parameter>0</Parameter>
						<Parameter>/home/wuff/KeePass/Wulf.kdbx</Parameter>
					</Parameters>
				</Event>
			</Events>
			<Conditions />
			<Actions>
				<Action>
					<TypeGuid>tkamn96US7mbrjykfswQ6g==</TypeGuid>
					<Parameters>
						<Parameter />
						<Parameter>0</Parameter>
					</Parameters>
				</Action>
				<Action>
					<TypeGuid>2uX4OwcwTBOe7y66y27kxw==</TypeGuid>
					<Parameters>
						<Parameter>/home/wuff/KeePass/keepass_trigger_load.sh</Parameter>
						<Parameter />
						<Parameter>True</Parameter>
						<Parameter>0</Parameter>
						<Parameter />
					</Parameters>
				</Action>
				<Action>
					<TypeGuid>Iq135Bd4Tu2ZtFcdArOtTQ==</TypeGuid>
					<Parameters>
						<Parameter>/home/wuff/gdrive/Wulf.kdbx</Parameter>
						<Parameter />
						<Parameter />
					</Parameters>
				</Action>
				<Action>
					<TypeGuid>tkamn96US7mbrjykfswQ6g==</TypeGuid>
					<Parameters>
						<Parameter />
						<Parameter>1</Parameter>
					</Parameters>
				</Action>
			</Actions>
		</Trigger>
	</Triggers>
</TriggerCollection>
config/keepass.1550418705.txt.gz · Last modified: 2023/05/29 11:53 (external edit)