config:keepass
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| config:keepass [2022/07/20 22:29] – [Keepass2] Wuff | config:keepass [2026/04/22 17:24] (current) – Wuff | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Keepass2 ====== | ====== Keepass2 ====== | ||
| - | Main Windows Download link (Pro version) can be found here:\\ | + | KeePass is a the free, open source, light-weight and easy-to-use password manager/password safe. |
| - | http:// | + | |
| It can be installed under ubuntu/mint using | It can be installed under ubuntu/mint using | ||
| Line 8: | Line 7: | ||
| sudo add-apt-repository ppa: | sudo add-apt-repository ppa: | ||
| sudo apt update | sudo apt update | ||
| - | sudo apt-get install keepass2 ca-certificates | + | sudo apt-get install keepass2 ca-certificates |
| </ | </ | ||
| Line 15: | Line 14: | ||
| sudo apt remove --autoremove keepass2 | sudo apt remove --autoremove keepass2 | ||
| sudo add-apt-repository --remove ppa: | sudo add-apt-repository --remove ppa: | ||
| + | </ | ||
| + | |||
| + | ===== Keepass2.exe.config error ===== | ||
| + | < | ||
| + | sudo apt-get install mono-utils | ||
| + | monodis --assembly / | ||
| + | sudo vi / | ||
| + | #replace newVersion number in file | ||
| + | |||
| + | Oneliner: | ||
| + | sudo sed -i ' | ||
| + | </ | ||
| + | |||
| + | Auto patching of config file, create shell script and apt pre-inst hook (no post inst hook available as per https:// | ||
| + | <code bash / | ||
| + | #!/bin/bash | ||
| + | if grep -q keepass2 | ||
| + | then | ||
| + | if [ ! -f / | ||
| + | then | ||
| + | echo " | ||
| + | echo " | ||
| + | exit 1 | ||
| + | else | ||
| + | echo " | ||
| + | ( | ||
| + | sleep 300; | ||
| + | sed -i ' | ||
| + | ) & | ||
| + | fi | ||
| + | fi | ||
| + | </ | ||
| + | <code - / | ||
| + | DPkg:: | ||
| + | DPkg:: | ||
| + | </ | ||
| + | < | ||
| + | sudo chmod 755 / | ||
| </ | </ | ||
| Line 21: | Line 58: | ||
| The keepass2 PPAs have not been updated for quite a while. To use the latest version, follow these instructions (after installing the PPA version): | The keepass2 PPAs have not been updated for quite a while. To use the latest version, follow these instructions (after installing the PPA version): | ||
| - | * Download the portable version zip file from Official | + | * Download the portable version zip file from official |
| * Close the KeePass2 application | * Close the KeePass2 application | ||
| * Make a copy of the / | * Make a copy of the / | ||
| Line 246: | Line 283: | ||
| set google sync plugin to sync both on saving and opening | set google sync plugin to sync both on saving and opening | ||
| + | ===== KeeAutoExec plugin ===== | ||
| + | |||
| + | This plugin automatically opens additional databases. | ||
| + | |||
| + | https:// | ||
| + | |||
| + | Installation: | ||
| + | < | ||
| + | wget https:// | ||
| + | sudo mkdir -p / | ||
| + | sudo unzip KeeAutoExec-2.6.zip -d / | ||
| + | rm KeeAutoExec-2.6.zip | ||
| + | </ | ||
| + | Then restart keepass | ||
| + | |||
| + | To use: | ||
| + | * Create a new group in your database and name it " | ||
| + | * Each non-expired entry in this group corresponds to a database that should be opened automatically when the current database is opened. The fields of each entry specify the following: | ||
| + | * Title: Ignored by the plugin; can be used for comments. | ||
| + | * User name: Must contain the path to the key file, if one should be used. The path can be either absolute or relative to the directory containing KeePass.exe. | ||
| + | * Password: The master password for the database to open. If no password is required, leave this field empty. | ||
| + | * URL: Path to the database file to open. The path can be either absolute or relative to the directory containing KeePass.exe. | ||
| + | * Server credentials. When opening a database from a URL, the credentials for accessing the file on the server can be specified using the custom entry strings " | ||
| + | * Custom entry string " | ||
| + | * Custom entry string " | ||
| + | * Custom entry string " | ||
| + | |||
| + | ===== Open specific db on startup ===== | ||
| + | |||
| + | * Turn off the option ' | ||
| + | * Go ' | ||
| + | * Switch to the ' | ||
| + | * Switch to the ' | ||
| + | |||
| + | Opening multiple specific databases at KeePass startup can for example be realized using the trigger approach above (with multiple trigger actions) or using the KeeAutoExec plugin. | ||
| + | |||
| + | ===== Problem with dialog buttons missing text ===== | ||
| + | |||
| + | Current libgdiplus of debian/ | ||
| + | |||
| + | <code bash libgdiplus_downgrade.sh> | ||
| + | #!/bin/bash | ||
| + | doKeepassFix() ( | ||
| + | # check os | ||
| + | #. / | ||
| + | #[[ ${ID_LIKE} = " | ||
| + | # : ${EXCEPTION:? | ||
| + | #} | ||
| + | |||
| + | # if libgdiplus exists and does not embeds pango then skip process | ||
| + | libgdiplus="/ | ||
| + | [[ ! -e ${libgdiplus} ]] || | ||
| + | [[ $(strings ${libgdiplus} | grep pango | wc -l) -gt 0 ]] || { | ||
| + | echo " | ||
| + | return 0 | ||
| + | } | ||
| + | |||
| + | # Perform downgrade | ||
| + | arch=$(dpkg --print-architecture) | ||
| + | baseUrl=" | ||
| + | pkgs=( | ||
| + | libj/ | ||
| + | libw/ | ||
| + | t/ | ||
| + | libg/ | ||
| + | ) | ||
| + | cd $(mktemp -d) | ||
| + | retCode=0 | ||
| + | for pkg in ${pkgs[@]}; do | ||
| + | url=" | ||
| + | curl -sSLfO " | ||
| + | sudo dpkg -i ./ | ||
| + | # Raise error code | ||
| + | retCode=${? | ||
| + | # Display debug | ||
| + | echo -e " | ||
| + | echo -e " | ||
| + | echo -e " | ||
| + | break | ||
| + | } | ||
| + | done | ||
| + | |||
| + | # Lock package if no error occured | ||
| + | [[ ${retCode} -gt 0 ]] || sudo apt-mark hold libgdiplus | ||
| + | ) | ||
| + | |||
| + | doKeepassFix | ||
| + | </ | ||
| + | |||
| + | Run with sudo | ||
| + | < | ||
| + | sudo ./ | ||
| + | </ | ||
config/keepass.1658352596.txt.gz · Last modified: (external edit)