kee-org / KeeFox

Legacy browser and XUL application integration with KeePass Password Safe. See https://github.com/kee-org/browser-addon for the new version for Firefox 57+
https://forum.kee.pm
418 stars 48 forks source link

Support Linux #21

Closed luckyrat closed 11 years ago

luckyrat commented 11 years ago

Use case: Mono 2.4 is growing in popularity on a number of Linux distributions, thereby enabling the use of KeePass 2.x on this operating system. It would be nice if KeeFox would work on this OS too.

Key work required is:

1) A compilation of the KeeFox C++ source code for a Linux machine so it can be loaded by the Linux version of Firefox. This may be as simple as running GCC but is likely to require some source code changes.

2) Some parts of the KeeFox add-on may need review (especially w.r.t. directory separators in preference values).

3) An installation routine to assist Linux users with the installation and configuration of required components.

luckyrat commented 11 years ago

Imported from trac issue 9. Created by luckyrat on 2009-07-19T23:11:28, last modified: 2012-08-21T12:11:25

luckyrat commented 11 years ago

Trac comment by luckyrat on 2010-05-20 20:08:27:

Step 1 should no longer be required since the move from ICE to KeePassRPC.

Step 3 should probably be considered optional and something to add at a later date; in the mean time, a page with manual setup instructions could be produced in place of the Windows automatic setup system.

So the main tasks remaining are preference storage changes, code review, removal of some setup features and testing.

If anyone thinks they can take on these tasks then please let me know, otherwise I'll probably still wait until after version 1.0 to work on this, albeit with higher confidence of it being possible eventually!

PS: In case you didn't notice, this task is probably 99% the same as the task to get KeeFox working on Mac OS X

luckyrat commented 11 years ago

Trac comment by jno- on 2010-12-07 09:56:56:

Replying to [comment:1 luckyrat]:

If anyone thinks they can take on these tasks then please let me know, otherwise I'll probably still wait until after version 1.0 to work on this, albeit with higher confidence of it being possible eventually!

I can propose some help in testing at least (using up to date Ubuntu distro).

luckyrat commented 11 years ago

Trac comment by blablup on 2011-08-10 10:22:53:

is there any work going on regards this topic?

I could help do some test on ubuntu and debian.

luckyrat commented 11 years ago

Trac comment by luckyrat on 2011-08-22 00:33:55:

Thanks for the offer of help but I've not been able to make any progress on this and don't have time to investigate further at the moment.

The forum post here indicates the current state of play (in Mono generally) but I suspect it's something that needs developer attention rather than testing at this stage: https://sourceforge.net/apps/phpbb/keefox/viewtopic.php?f=1&t=172

If anyone makes progress on it, I'll make sure any keen testers are the first to know!

luckyrat commented 11 years ago

Trac comment by blablup on 2012-01-25 14:01:31:

Hello everybody,

I got KeeFox to work on Mono on Linux. krbvroc1 has done the coding. So every thanks should go to him.

I think the changes will be merged, but nevertheless i wrote an Howto for everybody who needs it.

[http://blablup49.wordpress.com/2012/01/25/keefox-on-linux/]

luckyrat commented 11 years ago

Trac comment by luckyrat on 2012-03-06 22:00:02:

Please beta test KeeFox 0.9.5b from the Firefox add-ons website: https://addons.mozilla.org/en-US/firefox/addon/keefox/versions/

Manual setup instructions for Linux have been written and verified. Please report back on your success or failure to get this version to work on your distribution.

Note that you will need to use KeePass version "2.18 with Mono fixes" rather than the standard version of 2.18: http://keepass.info/news/n120116_2.18_mono.html

Massive thanks to krbvroc1 for all the work needed to get KeeFox working on Linux!

luckyrat commented 11 years ago

Trac comment by digphan on 2012-04-18 02:36:44:

Replying to [comment:12 luckyrat]:

Please beta test KeeFox 0.9.5b from the Firefox add-ons website: https://addons.mozilla.org/en-US/firefox/addon/keefox/versions/

Manual setup instructions for Linux have been written and verified. Please report back on your success or failure to get this version to work on your distribution.

Note that you will need to use KeePass version "2.18 with Mono fixes" rather than the standard version of 2.18: http://keepass.info/news/n120116_2.18_mono.html

Massive thanks to krbvroc1 for all the work needed to get KeeFox working on Linux!

Installed KeePass 2.18 w/mono fix for Ubuntu/Debian, install KeeFox 9.5b (and 9.6b) and it does not run setup like previous installs under windows have. As such, no Keepassrpc plugin file is created.

luckyrat commented 11 years ago

Trac comment by krbvroc1 on 2012-04-18 02:45:01:

Replying to [comment:13 digphan]:

Installed KeePass 2.18 w/mono fix for Ubuntu/Debian, install KeeFox 9.5b (and 9.6b) and it does not run setup like previous installs under windows have. As such, no Keepassrpc plugin file is created.

As mentioned previously, under Linux it is a manual installation process. You need to manually copy the KeePassRPC.plgx file. If you are not seeing the manual installation instructions, try entering the following URL:

chrome://keefox/content/install_mono.xul?upgrade=1

and then follow those instructions.

luckyrat commented 11 years ago

Trac comment by digphan on 2012-04-19 04:33:45:

Replying to [comment:14 krbvroc1]:

As mentioned previously, under Linux it is a manual installation process. You need to manually copy the KeePassRPC.plgx file. If you are not seeing the manual installation instructions, try entering the following URL:

chrome://keefox/content/install_mono.xul?upgrade=1

and then follow those instructions. [[BR]] [[BR]]

I was not getting the setup instructions. Thanks for the link to them.

'''Current problem:'''

Installed 2.18 w/mono fix available from [http://keepass.info/news/n120116_2.18_mono.html].

Installed version 9.6b of KeeFox from [https://addons.mozilla.org/en-US/firefox/addon/keefox/versions/].

Set up Directories to correctly point to mono, keepass and the plugin in KeeFox Options.

Followed your link above to get setup instructions and then followed the filepath in those instructions to the KeePassRPC.plgx file. Copy that file to my KeePass 2.18 install. Upon launch of KeePass (either directly launching it without Firefox or launching it from the KeeFox toolbar in Firefox), I get the following error message that the KeePassRPC.plgx plugin is not compatible with the current version of KeePass. [[Image(http://home.comcast.net/~jsavga//temp/keepasserror.png)]]

luckyrat commented 11 years ago

Trac comment by digphan on 2012-04-27 04:36:21:

Just upgraded Ubuntu to 12.04 which was released today (April 26th, 2012). Got KeePass2 through the repositories (version keepass2 2.18+dfsg-2), placed the plugin in the KeePass2 folder and set the directories in KeeFox. I'm still getting the same error message above regarding the KeePassRPC plugin. I get the error just launching KeePass too without involving KeeFox or Firefox. [[Image(http://home.comcast.net/~jsavga//temp/plugin.png)]]

luckyrat commented 11 years ago

Trac comment by krbvroc1 on 2012-04-27 18:48:47:

Replying to [comment:16 digphan]:

Just upgraded Ubuntu to 12.04 which was released today (April 26th, 2012).

I am not an Ubuntu user. I will download 12.04 LTS, install it into a virtual machine, and see if I can reproduce your issue. Are you using the 32-bit or 64-bit download?

luckyrat commented 11 years ago

Trac comment by digphan on 2012-04-28 00:27:28:

Using 32bit Ubuntu 12.04 LTS.

luckyrat commented 11 years ago

Trac comment by krbvroc1 on 2012-04-29 17:28:51:

Replying to [comment:17 krbvroc1]:

Replying to [comment:16 digphan]:

Just upgraded Ubuntu to 12.04 which was released today (April 26th, 2012).

I am not an Ubuntu user. I will download 12.04 LTS, install it into a virtual machine, and see if I can reproduce your issue. Are you using the 32-bit or 64-bit download?

I got the same error message as you did. So I assume that all the required mono libraries are not installed by default. So I then opened a terminal and typed

'sudo apt-get install mono-complete'. After doing that, it works fine.

luckyrat commented 11 years ago

Trac comment by digphan on 2012-04-30 03:03:46:

Replying to [comment:19 krbvroc1]:

I got the same error message as you did. So I assume that all the required mono libraries are not installed by default. So I then opened a terminal and typed

'sudo apt-get install mono-complete'. After doing that, it works fine.

Thank you krbvroc1!!! That did the trick. Keefox working now and showing the plugin under Plugins in Keepass. Shows what I get for Assuming the complete package was installed.

@luckyrat, just a little note to let you know the new forums on ZOHO do not let users post.

luckyrat commented 11 years ago

Trac comment by krbvroc1 on 2012-04-30 15:16:36:

Replying to [comment:20 digphan]:

Replying to [comment:19 krbvroc1]:

I got the same error message as you did. So I assume that all the required mono libraries are not installed by default. So I then opened a terminal and typed

'sudo apt-get install mono-complete'. After doing that, it works fine.

Thank you krbvroc1!!! That did the trick. Keefox working now and showing the plugin under Plugins in Keepass. Shows what I get for Assuming the complete package was installed.

@luckyrat, just a little note to let you know the new forums on ZOHO do not let users post.

So to summarize for Ubuntu

1) Ubuntu does not install all the required mono .net libraries so you need to 'sudo apt-get install mono-complete'.

2) If you use the keepass2 package from the ubuntu software repository you will need to copy the .plgx file from /usr/lib/keepass2 rather than ~/KeePass/plugins like the manual setup instructions say. Since /usr/lib/keepass2 requires root access to write to, so you will need to 'sudo' the copy.

luckyrat commented 11 years ago

Trac comment by digphan on 2012-05-01 00:04:23:

Replying to [comment:21 krbvroc1]:

So to summarize for Ubuntu

1) Ubuntu does not install all the required mono .net libraries so you need to 'sudo apt-get install mono-complete'.

2) If you use the keepass2 package from the ubuntu software repository you will need to copy the .plgx file from /usr/lib/keepass2 rather than ~/KeePass/plugins like the manual setup instructions say. Since /usr/lib/keepass2 requires root access to write to, so you will need to 'sudo' the copy.

Basically, except that it's move the .plgx file "to" the usr/lib/keepass2 folder, not "from". I can't find away around that as leaving and linking it in a user's Home directory does not work, it has to be in that folder to get loaded. This is dangerous as a future update to keepass can remove any files manually move to the usr/lib directories.

luckyrat commented 11 years ago

Trac comment by luckyrat on 2012-07-19 22:57:10:

There are now over 100 people regularly using KeeFox on Linux so I intend to move Linux support from beta to the main release channel when KeeFox 1.1 is released.

Please let me know if there are any regressions or serious problems with the new beta of KeeFox 1.1.

luckyrat commented 11 years ago

Trac comment by bruce123456 on 2012-08-21 12:11:25:

Replying to [comment:24 luckyrat]:

There are now over 100 people regularly using KeeFox on Linux so I intend to move Linux support from beta to the main release channel when KeeFox 1.1 is released.

Please let me know if there are any regressions or serious problems with the new beta of KeeFox 1.1.

Getting Linux/Ubuntu support would be excellent... I'm moving away from lastpass, so that will be a major reference point for me...