Ouvrir le menu principal

AquavipareGest β

Modifications

Execution sous mono

5 668 octets ajoutés, 17 décembre 2014 à 07:38
Page créée avec « En complément à Windows, AquavipareGest s'exécute aussi sous Mono (http://www.mono-project.com/) et donc sous Linux, Mac, etc. Pour l'instant, l'installation doit ... »
En complément à Windows, AquavipareGest s'exécute aussi sous Mono ([[http://www.mono-project.com/]]) et donc sous Linux, Mac, etc.

Pour l'instant, l'installation doit être faite sous Windows mais par la suite une version de AquavipareGest Portable verra le jour afin de ne plus avoir besoin de passer par un environnement Windows rien que pour l'installation.

En premier lieu, il est nécessaire d'installer la dernière version de Mono pour le système d'exploitation qui vous concerne (Linux, Mac, etc.)
Mono peut être téléchargé à l'adresse suivante [[http://www.mono-project.com/download/]]
Suivant l'environnement Linux sous lequel vous voulez installer Mono, le package Mono pourra avoir un nom différent tel que mono-stable, MonoFramework, mono-devel or mono-x.x-devel


Sur certaines platformes, l'implémentation Windows Forms(System.Windows.Forms) est dans un package séparé tout comme le namespace Runtime(System.Runtime). AquavipareGest a besoin de ces 2 packages. Si ceux-ci sont dans un package séparé, merci de les installer aussi.

If you want to use auto-type on Linux / Mac OS X / BSD / etc., you additionally need the xdotool package.
Download the portable version of KeePass (file KeePass-2.xx.zip) and unpack it in a location of your choice.
When being in the KeePass directory, run the command line "mono KeePass.exe". Alternatively, right-click onto the KeePass.exe file, choose "Open with Other Application" and type in mono as custom command.
For the last step you might want to create a shortcut or shell script file with this command line (use an absolute path to KeePass.exe, if the shortcut / shell script file is in a different location).

Clipboard:
On some systems, Mono's clipboard routines don't work properly. In this case, install the xsel package. If xsel is installed, KeePass uses this utility for clipboard operations.

Global Auto-Type:
In order to use global auto-type, you need to create an appropriate system-wide hot key. This only needs to be done manually once. KeePass performs global auto-type when it's invoked with the --auto-type command line option.

Some examples how to create a system-wide hot key for global auto-type, for different operating systems:

KDE. On Linux systems with KDE, the hot key can be created in Computer -> System Settings -> Shortcuts and Gestures: in this dialog, go Edit -> New -> Global Shortcut -> Command/URL, specify the shortcut on the Trigger tab and enter
mono /YourPathToKeePass/KeePass.exe --auto-type
into the Command/URL field on the Action tab.
Ubuntu Linux ≥ 11.04 (Unity/GNOME). Open the dialog Keyboard Shortcuts in the system preferences, click the Add button, enter KeePass Auto-Type as name and
mono /YourPathToKeePass/KeePass.exe --auto-type
as command, then click [Apply]. Click on Disabled of the newly created item (such that the text 'New shortcut...' appears), press Ctrl+Alt+A, and close the dialog.
Ubuntu Linux ≤ 10.10 (GNOME).
Press Alt-F2, enter gconf-editor and click [OK].
Navigate to apps -> metacity -> keybinding_commands.
Double-click one of the command_i items, enter
mono /YourPathToKeePass/KeePass.exe --auto-type
and click [OK].
Click the global_keybindings node on the left.
Double-click the appropriate run_command_i item (for example, when you've used command_5 in the previous steps, double-click run_command_5 now) and specify the hot key of your choice. For example, to use Ctrl+Alt+A as hot key, you'd enter <Control><Alt>a.
Important: for global auto-type, the version of the xdotool package must be 2.20100818.3004 or higher! If your distribution only offers an older version, you can download and install the latest version of the package manually, see the xdotool website.


Setup Portable KeePass using Mono
The approach below worked perfectly when this documentation was written. However, as this type of Mono installation is nowhere mentioned on the Mono website, it might stop working with a future Mono release.

Although almost all of today's PCs can run .NET applications (the .NET Framework is already preinstalled on Windows ≥ Vista, and for all major Linux / Mac OS X distributions Mono is available, which actually even is a dependency of the GNOME ≥ 2.16 desktop), you still might want to run KeePass 2.x on a PC without any .NET support, like an old Windows XP system where you don't have administrative rights to install the .NET Framework.

For such a situation, you can create a portable version of KeePass using Mono, which works on PCs without .NET. To do this, follow these steps (assuming a Windows PC):

Download the latest portable ZIP package of KeePass 2.x (file KeePass-2.xx.zip). Unpack it to some location, e.g. a folder E:\KeePass on your USB stick.
Download the latest Mono installer. Run it to locally install Mono on your current PC (e.g. on C:). KeePass doesn't require GTK+, GNOME or XSP, so you can disable the options for these during the installation.
After installing Mono, copy the whole Mono application folder (e.g. C:\Program Files\Mono) to your USB stick, e.g. to E:\Mono.
In order to simplify starting KeePass, create a batch file on your USB stick, e.g. E:\RunKeePass.bat. This batch file should run KeePass using the mono.exe application on the USB stick. For example, with the paths above, the content of the batch file would look like:
START "" Mono\bin\mono.exe KeePass\KeePass.exe
In order to run KeePass on a PC without .NET support, simply plug in the USB stick and run the batch file.

The approach above should be seen as the very last possibility to run KeePass 2.x. Installing .NET support (either the .NET Framework or Mono) is highly recommended instead!