How to manage passwords in Linux with KeePassX
To Manage passwords in Linux with KeePassX
keepassx is a password manager which allows the end user to keep the passwords protected. It uses AES (alias Rijndael) or Twofish encryption algorithm using a 256 bit key. It maintains a database to log passwords along with the other details such as Title, username, password, expiry-date etc., This article explains installation and password management by using keepassx in Linux.
To install KeePassX
Run the following to install the dependency packages.
[root@linuxhelp1 ~]# dnf install qt-devel qt-config gcc-c++ libXtst-devel -y
Last metadata expiration check performed 4:11:00 ago on Mon Jul 25 23:38:02 2016.
Dependencies resolved.
=======================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================
Installing:
binutils x86_64 2.25-17.fc23 updates 5.6 M
cpp x86_64 5.3.1-6.fc23 updates 8.3 M
dwz x86_64 0.12-1.fc23 fedora 106 k
expat-devel x86_64 2.1.0-12.fc23 fedora 61 k
fontconfig-devel x86_64 2.11.94-4.fc23 fedora 137 k
freetype-devel x86_64 2.6.0-3.fc23 fedora 378 k
gcc x86_64 5.3.1-6.fc23 updates 19 M
gcc-c++ x86_64 5.3.1-6.fc23 updates 9.8 M
ghc-srpm-macros noarch 1.4.2-2.fc23 fedora 8.2 k
gl-manpages noarch 1.1-10.20140424.fc23 fedora 1.0 M
.
.
.
Installed:
binutils.x86_64 2.25-17.fc23 cpp.x86_64 5.3.1-6.fc23
dwz.x86_64 0.12-1.fc23 expat-devel.x86_64 2.1.0-12.fc23
fontconfig-devel.x86_64 2.11.94-4.fc23 freetype-devel.x86_64 2.6.0-3.fc23
gcc.x86_64 5.3.1-6.fc23 gcc-c++.x86_64 5.3.1-6.fc23
ghc-srpm-macros.noarch 1.4.2-2.fc23 gl-manpages.noarch 1.1-10.20140424.fc23
glibc-devel.x86_64 2.22-3.fc23 glibc-headers.x86_64 2.22-3.fc23
gnat-srpm-macros.noarch 2-1.fc23 go-srpm-macros.noarch 2-3.fc23
isl.x86_64 0.14-4.fc23 kernel-headers.x86_64 4.6.4-201.fc23
libICE-devel.x86_64 1.0.9-3.fc23 libSM-devel.x86_64 1.2.2-3.fc23
libX11-devel.x86_64 1.6.3-2.fc23 libXau-devel.x86_64 1.0.8-5.fc23
libXcursor-devel.x86_64 1.1.14-4.fc23 libXdamage-devel.x86_64 1.1.4-7.fc23
libXext-devel.x86_64 1.3.3-3.fc23 libXfixes-devel.x86_64 5.0.1-5.fc23
libXft-devel.x86_64 2.3.2-3.fc23 libXi-devel.x86_64 1.7.4-3.fc23
libXinerama-devel.x86_64 1.1.3-5.fc23 libXrandr-devel.x86_64 1.5.0-2.fc23
libXrender-devel.x86_64 0.9.9-2.fc23 libXt-devel.x86_64 1.1.5-2.fc23
libXtst-devel.x86_64 1.2.2-5.fc23 libXv-devel.x86_64 1.0.10-3.fc23
libXxf86vm-devel.x86_64 1.1.4-2.fc23 libdrm-devel.x86_64 2.4.65-1.fc23
libmpc.x86_64 1.0.2-4.fc23 libpng-devel.x86_64 2:1.6.17-2.fc23
libstdc++-devel.x86_64 5.3.1-6.fc23 libxcb-devel.x86_64 1.11-8.fc23
libxshmfence-devel.x86_64 1.2-2.fc23 mesa-libGL-devel.x86_64 11.0.3-1.20151012.fc23
mesa-libGLU-devel.x86_64 9.0.0-9.fc23 ocaml-srpm-macros.noarch 2-3.fc23
perl-srpm-macros.noarch 1-17.fc23 python-srpm-macros.noarch 3-7.fc23
qt-config.x86_64 1:4.8.7-18.fc23 qt-devel.x86_64 1:4.8.7-18.fc23
redhat-rpm-config.noarch 36-1.fc23.1 xorg-x11-proto-devel.noarch 7.7-18.fc23
zlib-devel.x86_64 1.2.8-9.fc23
Upgraded:
libgcc.x86_64 5.3.1-6.fc23 libgomp.x86_64 5.3.1-6.fc23 libstdc++.x86_64 5.3.1-6.fc23
qt.x86_64 1:4.8.7-18.fc23 qt-common.noarch 1:4.8.7-18.fc23 qt-x11.x86_64 1:4.8.7-18.fc23
Complete!
Install the keePassX package by using the following command.
[root@linuxhelp1 ~]# dnf install keepassx -y
Last metadata expiration check performed 4:14:48 ago on Mon Jul 25 23:38:02 2016.
Dependencies resolved.
=======================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================
Installing:
keepassx x86_64 1:2.0.2-3.fc23 updates 604 k
.
.
.
Installed:
keepassx.x86_64 1:2.0.2-3.fc23
Complete!
To launch KeePassX
To open keepassx, enter keePassX in the search bar.
The welcome page appears.
To create a database click on Database &rarr New database
Now generate a password for the database to make it more protected.
Create new groups by hitting the Group tab.
Set the name for the group and other details of the group as per your requirement and then click OK.
To add entries into the group, Right-click and select Add the new entry.
Fill the details of the new entry and click OK
Go to Tools &rarr Settings, to change the database settings.
Here, some settings are also related to clearing the clipboard, lock database after inactive period, show passwords in cleartext etc.,
After all the changes you have to save the database for that go to database &rarr save database option.
Browse the location where the database is to be saved and also provide a name for the DB.
It can also import KeePass 1 (.kdb) databases.
# add-apt-repository ppa:phoerious/keepassxc
# apt-get update
# apt-get install keepassxc