博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Setting Up KeePass For Centos 6
阅读量:6326 次
发布时间:2019-06-22

本文共 3642 字,大约阅读时间需要 12 分钟。

This mini-howto describes how to set up KeePass on Centos 6. It requires building mono from source and installing the "portable" version of KeePass. Finally there are a few tweaks that need to be done so that it can execute properly.

Building mono

To build mono, follow the steps described in with the following modifications:

  • You are instructed to add the epel repository. I strongly recommend using the yum priorities plugin and setting the epel repo to lower priority.
  • Get the most recent mono source [tarball] from The latest version as of this writing is 3.2.0. Also note that it is a bzip2 file. So that changes the steps to

    $ wget http://origin-download.mono-project.com/sources/mono/mono-3.2.0.tar.bz2

    $ tar jxvf mono-3.2.0.tar.bz2

  • I like to save the output of running make and also prefer to run make as an ordinary user instead of root. So I suggest first building mono with make as follows:

    $ make 2>&1 | tee make.log

    Then you have the make.log file to check if you run into any problems. Now you can become root and do the make install:

    $ make install

Install Portable KeePass (ZIP Package)

The next step is to install the portable version of KeePass. Go . Choose the Professional Edition portable package. After downloading the ZIP file, make a directory for KeePass (I create one under my home directory).

$ mkdir KeePass

$ cd KeePass
$ unzip <path to zip file>/KeePass-2.23.zip

Libray Tweaks

If you try to run KeePass (from the KeePass directory where you unzipped it), you will get an exception like:

System.DllNotFoundException: /usr/local/lib/libgdiplus.so

libgdiplus was one of the packages you installed earlier. Checking the files that were installed:

$ rpm -ql libgdiplus

/usr/lib64/libgdiplus.so.0

/usr/lib64/libgdiplus.so.0.0.0
/usr/share/doc/libgdiplus-1.2.5
/usr/share/doc/libgdiplus-1.2.5/AUTHORS
/usr/share/doc/libgdiplus-1.2.5/COPYING
/usr/share/doc/libgdiplus-1.2.5/MPL-1.1.html
/usr/share/doc/libgdiplus-1.2.5/NEWS
/usr/share/doc/libgdiplus-1.2.5/README
/usr/share/doc/libgdiplus-1.2.5/TODO
$

We need to make a symlink (in the install directory tree -- /usr/local/lib in our case) for libgdiplus.so. Become root and do the following:

# cd /usr/local/lib

# ln -s /usr/lib64/libgdiplus.so.0
# ln -s /usr/lib64/libgdiplus.so.0.0.0
# ln -s /usr/lib64/libgdiplus.so.0.0.0 libgdiplus.so

You will still get a System.DllNotFoundException even after this. The problem is that /usr/local/lib is not in the ls.so.conf.d. So the final steps are:

# cd /etc/ld.so.conf.d

# echo /usr/local/lib > local.conf
# ldconfig

After this KeePass should run and you will hopefully be all set to make your passwords much more secure.

Desktop Setup

Assuming you are using Gnome desktop here's how to add an application menu item to the Applications Menu and optionally to the Panel. First download the KeePass png icon from Put it in the same directory where you unzipped the portable KeePass zipfile. Next install the alacarte menu editor for the Gnome desktop:

# yum install alacarte

You can of course skip that step if you already have alacarte installed. Next -- start (as the desktop user, not root) alacarte

$ alacarte

This will bring up the menu editing window. In the left panel you will see the categories under "Applications". I clicked "Internet", and then press the "+ New Item" button on the right. This will pop up a dialog where you enter the information to start KeePass. Click on the icon button and browse to the png icon. In the "command" field make sure to use the full path to both mono and KeePass.exe. After you are done you should find KeePass in the Applications->Internet menu (or whereever you chose to put it).

 

转载地址:http://zygaa.baihongyu.com/

你可能感兴趣的文章
在Mac OS下配置PHP开发环境
查看>>
(转)介绍下Nuget在传统Asp.net项目中的使用
查看>>
C# ArcEngine 实现点击要素高亮并弹出其属性
查看>>
初识GO语言——安装Go语言
查看>>
SDK命令行操作
查看>>
基于Bootstrap的DropDownList的JQuery组件的完善版
查看>>
EXTJS学习系列提高篇:第二十四篇(转载)作者殷良胜,ext2.2打造全新功能grid系列--阅增删改篇...
查看>>
Hadoop MapReduce编程 API入门系列之分区和合并(十四)
查看>>
判断二叉树是否平衡、是否完全二叉树、是否二叉排序树
查看>>
并查集的应用之求解无向图中的连接分量个数
查看>>
7个神奇的jQuery 3D插件
查看>>
在线浏览PDF之PDF.JS (附demo)
查看>>
波形捕捉:(3)"捕捉设备"性能
查看>>
AliOS Things lorawanapp应用介绍
查看>>
美国人的网站推广方式千奇百怪
查看>>
java web学习-1
查看>>
用maven+springMVC创建一个项目
查看>>
linux设备驱动第四篇:以oops信息定位代码行为例谈驱动调试方法
查看>>
redis知识点整理
查看>>
Hello World
查看>>