How-To: Install KeePass on Fedora 20

KeePass is a “password safe”, allowing you to securely store passwords for websites, computer user accounts, and any other type of system you need to store a password for.  The important thing is to remember your master password, the one that is used to encrypt the KeePass database, so you can access the rest of your passwords stored using KeePass.

To install KeePass on Fedora 20 you can install the version included in the default fedora repository (sudo yum install keepassx).  Unfortunately,  this is an old version and doesn’t support the newest KeePass database types, nor does it support some of the newer features.  To install newest version there’s a bit more work to be done.

UPDATE (2014/07/29): As of 2014/05/23, the newest version of KeePass, 2.x, is now in the Fedora repository.  To install it, just run ‘sudo yum install keepass’ or ‘sudo dnf install keepass’.  This method makes it easier to keep KeePass up to date as anytime it is updated in the repository you can use yum or dnf to update it.  However, it might take a bit more time for the updated version to be added to the repository compared to when the updated version is available for download on the KeePass website.

CONTENTS

  1. DIRECTIONS
  2. Wrapping Up
  3. References

DIRECTIONS

Note: These directions are based on the directions provided in this thread.  I making this post for my own records and due to the fact that I varied slightly from the directions in the thread.

  1. Install Mono
    $ sudo yum install -y mono-core mono-devel
  2. Download KeePass Professional Edition, portable (ZIP package)
  3. Create KeePass Application Directory
    $ sudo mkdir /usr/bin/KeePass
  4. Unzip (extract) Downloaded KeePass Package
    $ sudo unzip /path/to/keepass.zip -d /usr/bin/KeePass/
  5. Download KeePass Source Code for the Version of KeePass you Previously Downloaded
    • Look towards bottom of the downloads page, under “Other Downloads and Resources”
    • At time of this writing, this link is the most up to date source code (version 2.25)
  6. Unzip (extract) Downloaded KeePass Source Code Package
    • Change to directory where you downloaded the source code
      $ cd ~/Downloads/
    • Create directory to hold the unzipped source code
      $ mkdir KeePass-Source
    • Unzip the source code
      $ unzip KeePass-2.25-Source.zip -d KeePass-Source
  7. Copy KeePass icon to your KeePass application directory (/usr/bin/KeePass)
    $ sudo cp KeePass-Source/Ext/Icons/Finals/plock-blu.png /usr/bin/KeePass/KeePass_icon.png
  8. Create the File “/usr/share/applications/KeePass.desktop” and Add the Following Content:
    [Desktop Entry]
    Name=KeePass
    GenericName=Password Database
    Comment=Store you passwords in an encrypted database
    Exec=mono /usr/bin/KeePass/KeePass.exe
    Icon=/usr/bin/KeePass/KeePass_icon.png
    Type=Application
    Categories=Other

Wrapping Up

At this point you should be able to find KeePass in the list of applications installed on your system.  If you would like to use a different icon for KeePass, then at step number 7 copy that icon to /usr/bin/KeePass/KeePass_icon.png (or whatever extension the icon is).  You can find more official KeePass icons in the “KeePass-Source/Ext/Icons/Finals/” directory in step number 7.

References

  • http://forums.fedoraforum.org/showthread.php?t=278932
  • http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html

How-To: Configure Application Groups in GNOME 3

By default, at least on Fedora 20, there are only two application groups in GNOME 3, ‘Sundry’ and ‘Utilities’ (see below).  Although items in GNOME’s applications list are organized alphabetically, when you start having a lot of software installed it can be a bit cluttered to look through (in my opinion).  To clean up space and potentially make it easier to find my programs I wanted to create an application group, particularly, for my games, which I don’t play often enough for them to be taken up so much space.

Default GNOME App Groups
Default GNOME 3 Application Groups

CONTENTS

  1. TLDR
  2. BACKGROUND
  3. DIRECTIONS

TLDR:

You need to use dconf Editor to edit the values listed in the ‘app-folder-categories’ value in org.gnome.shell.  Skip to the directions section for more specific instructions, and/or view the instructions on another blog post.

BACKGROUND

After looking my system, and searching online, I came across the Desktop Menu Specification.  I thought this would have the information I needed, since it appeared you could control which groups (a.k.a. categories) an application appears in by specifying the appropriate category name, using the Categories= option, in their .desktop file (ex: /usr/share/applications/gcalctool.desktop, for the GNOME calculator).  The specification for .desktop files can be found here.  Looking at the Desktop Menu files, located in /etc/xdg/menus/ in Fedora, it appeared that the Games group should already exist in the GNOME applications menu, however this was obviously not the case.  I tried editing the Desktop Menu files, but nothing I did worked.

I then sought help from the community; the Fedora Project Google+ community to be exact.  I received a couple of replies to my question, one of which pointed me to this blog post.  This is exactly what I was looking for!  This method requires you to use the dconf Editor, which you could think of being similar to, but not the same as, the Windows registry editor.  Although this method appeared like it should work, I wanted to find out if there is a more user friendly way of creating groups.  So I jumped onto GNOME’s IRC server, irc.gnome.org (a.k.a. GIMPNet), and went into the #gnome channel to ask my question.

One helpful individual on there pointed me to here, and explained that currently there is no native way to create application groups, but there will be in the GNOME 3.12 release.  Doing a little bit of searching, I found the GNOME 3.12 release should be coming out March 26th, 2014, but I didn’t feel like waiting till then.  So finally, to my delight, I used dconf Editor to create my application groups.  My walk through on how to create them is below:

DIRECTIONS

  1. Install dconf Editor

    $ sudo yum install dconf-editor

  2. Open dconf Editor, and click on ‘org’, then ‘gnome’, then select ‘shell’
    Dconf Editor --- org.gnome



    Dconf Editor org.gnome.shell
  3. Add your application group names, similar to the ones I have below or any from the list in this post referenced before.  If you would like to find appropriate category names, you can look at the .desktop files of the programs you are trying to group together to see what they have in their “Categories=” option, or you can look at the <Category> tags in /etc/xdg/menus/gnome-applications.menu.
    Gnome Application Categories
    Gnome Application Categories