Menu

Google Sync Plugin and Linux

2013-07-12
2014-12-19
  • Tamer Ziady

    Tamer Ziady - 2013-07-12

    Has anyone been able to get this plugin to work in linux. Also, I want to make sure if I make it work with linux and some windows systems; that an actual sync will occur and not a write over the file on google drive? Thank you so much in advance!

     
  • FullMoonMadness

    FullMoonMadness - 2013-07-18

    I'm using Xubuntu and having a difficult time getting this to work. When I try to sync with Drive, I get a pop up error:

    object reference not set to an instance of an object

    When I run it from terminal I see more info:

    libgluezilla not found. To have webbrowser support, you need libgluezilla installed

    I've installed the mono-complete package. The "libgluezilla" error seems to indicate the libmono-webbrowser2.0-cli and libmono-webbrowser4.0-cli in Synaptic Package Manager. I've re-installed both and nothing changes.

    My KeePass.config.xml looks like this:

    <?xml version="1.0" encoding="utf-8"?>
    <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <Meta>
            <PreferUserConfiguration>false</PreferUserConfiguration>
            <OmitItemsWithDefaultValues>true</OmitItemsWithDefaultValues>
        </Meta>
        <Application>
            <LastUsedFile>
                <Path>../../../home/user/Documents/FileName.kdbx</Path>
                <CredProtMode>Obf</CredProtMode>
                <CredSaveMode>NoSave</CredSaveMode>
            </LastUsedFile>
            <MostRecentlyUsed>
                <MaxItemCount>12</MaxItemCount>
                <Items>
                    <ConnectionInfo>
                        <Path>../../../home/user/Documents/FileName.kdbx</Path>
                        <CredProtMode>Obf</CredProtMode>
                        <CredSaveMode>NoSave</CredSaveMode>
                    </ConnectionInfo>
                </Items>
            </MostRecentlyUsed>
            <WorkingDirectories>
                <Item>Database@../../../home/user/Documents</Item>
            </WorkingDirectories>
            <Start>
                <CheckForUpdate>false</CheckForUpdate>
            </Start>
            <FileOpening />
            <FileClosing />
            <TriggerSystem>
                <Triggers />
            </TriggerSystem>
        </Application>
        <Logging />
        <MainWindow>
            <X>259</X>
            <Y>139</Y>
            <Width>771</Width>
            <Height>550</Height>
            <SplitterHorizontalFrac>0.8333333</SplitterHorizontalFrac>
            <SplitterVerticalFrac>0.250327647</SplitterVerticalFrac>
            <Layout>Default</Layout>
            <ToolBar />
            <EntryView />
            <TanView />
            <EntryListColumnCollection>
                <Column>
                    <Type>Title</Type>
                    <Width>106</Width>
                </Column>
                <Column>
                    <Type>UserName</Type>
                    <Width>106</Width>
                </Column>
                <Column>
                    <Type>Password</Type>
                    <Width>106</Width>
                    <HideWithAsterisks>true</HideWithAsterisks>
                </Column>
                <Column>
                    <Type>Url</Type>
                    <Width>106</Width>
                </Column>
                <Column>
                    <Type>Notes</Type>
                    <Width>106</Width>
                </Column>
            </EntryListColumnCollection>
            <EntryListColumnDisplayOrder>0 1 2 3 4</EntryListColumnDisplayOrder>
            <ListSorting>
                <Order>Ascending</Order>
            </ListSorting>
        </MainWindow>
        <UI>
            <TrayIcon />
            <Hiding />
            <StandardFont>
                <Family>Microsoft Sans Serif</Family>
                <Size>8.25</Size>
                <GraphicsUnit>Point</GraphicsUnit>
                <Style>Regular</Style>
                <OverrideUIDefault>false</OverrideUIDefault>
            </StandardFont>
            <PasswordFont>
                <Family>Courier New</Family>
                <Size>8.25</Size>
                <GraphicsUnit>Point</GraphicsUnit>
                <Style>Regular</Style>
                <OverrideUIDefault>false</OverrideUIDefault>
            </PasswordFont>
            <BannerStyle>WinVistaBlack</BannerStyle>
            <DataEditorFont>
                <Family>Microsoft Sans Serif</Family>
                <Size>8.25</Size>
                <GraphicsUnit>Point</GraphicsUnit>
                <Style>Regular</Style>
                <OverrideUIDefault>false</OverrideUIDefault>
            </DataEditorFont>
            <UIFlags>0</UIFlags>
            <KeyCreationFlags>0</KeyCreationFlags>
            <KeyPromptFlags>0</KeyPromptFlags>
        </UI>
        <Security>
            <WorkspaceLocking>
                <LockAfterTime>600</LockAfterTime>
                <LockAfterGlobalTime>0</LockAfterGlobalTime>
                <AlwaysExitInsteadOfLocking>true</AlwaysExitInsteadOfLocking>
            </WorkspaceLocking>
            <Policy />
            <MasterPassword>
                <MinimumLength>0</MinimumLength>
                <MinimumQuality>0</MinimumQuality>
            </MasterPassword>
        </Security>
        <Native />
        <PasswordGenerator>
            <AutoGeneratedPasswordsProfile>
                <GeneratorType>CharSet</GeneratorType>
                <Length>20</Length>
                <CharSetRanges>ULD_______</CharSetRanges>
            </AutoGeneratedPasswordsProfile>
            <LastUsedProfile>
                <GeneratorType>CharSet</GeneratorType>
                <Length>20</Length>
                <CharSetRanges>ULD_______</CharSetRanges>
            </LastUsedProfile>
            <UserProfiles />
        </PasswordGenerator>
        <Defaults>
            <OptionsTabIndex>4</OptionsTabIndex>
            <SearchParameters>
                <ComparisonMode>InvariantCultureIgnoreCase</ComparisonMode>
            </SearchParameters>
            <KeySources />
        </Defaults>
        <Integration>
            <HotKeyGlobalAutoType>0</HotKeyGlobalAutoType>
            <HotKeySelectedAutoType>0</HotKeySelectedAutoType>
            <HotKeyShowWindow>0</HotKeyShowWindow>
            <HotKeyEntryMenu>0</HotKeyEntryMenu>
            <UrlSchemeOverrides>
                <BuiltInOverridesEnabled>1</BuiltInOverridesEnabled>
                <CustomOverrides />
            </UrlSchemeOverrides>
            <ProxyType>System</ProxyType>
        </Integration>
        <Custom>
            <Item>
                <Key>EnableAutoSync</Key>
                <Value>false</Value>
            </Item>
            <Item>
                <Key>GoogleSyncClientID</Key>
                <Value>XXXXXXXXXXXXX.apps.googleusercontent.com</Value>
            </Item>
            <Item>
                <Key>GoogleSyncClientSecret</Key>
                <Value>XXXXXXXXXXXXX</Value>
            </Item>
            <Item>
                <Key>GoogleSyncKeePassUID</Key>
                <Value>XXXXXXXXXXXXX</Value>
            </Item>
            <Item>
                <Key>GoogleSyncShowAuthenticationForm</Key>
                <Value>false</Value>
            </Item>
        </Custom>
    </Configuration>
    

    Versions in use:
    KeePass: 2.22
    GoogleSyncPlugin: 1.5.1 (KeePass says v1.1.0.0)
    Xubuntu: 12.04

    Does anyone have any ideas? Thanks!

     
  • FullMoonMadness

    FullMoonMadness - 2013-07-19

    I realize my last post is still under review by the administrator, but I'll add more info...

    I ran accross a post online suggesting the user run a particular command, I tried it, and it yielded more information.

    Command:

    MONO_LOG_LEVEL=debug mono /usr/lib/keepass2/KeePass.exe | grep gluezilla

    Results:

    SendMessage (58720289, 0x101f, (nil), (nil))
    SendMessage (0, 0x1203, (nil), 0xbf9618f0)
    SendMessage (0, 0x1204, (nil), 0xbf9618f0)
    SendMessage (0, 0x1203, 0x1, 0xbf9618f0)
    SendMessage (0, 0x1204, 0x1, 0xbf9618f0)
    SendMessage (0, 0x1203, 0x2, 0xbf9618f0)
    SendMessage (0, 0x1204, 0x2, 0xbf9618f0)
    SendMessage (0, 0x1203, 0x3, 0xbf9618f0)
    SendMessage (0, 0x1204, 0x3, 0xbf9618f0)
    SendMessage (0, 0x1203, 0x4, 0xbf9618f0)
    SendMessage (0, 0x1204, 0x4, 0xbf9618f0)
    SendMessage (58720289, 0x101f, (nil), (nil))
    SendMessage (0, 0x1203, (nil), 0xbf9618b0)
    SendMessage (0, 0x1204, (nil), 0xbf9618b0)
    SendMessage (0, 0x1203, 0x1, 0xbf9618b0)
    SendMessage (0, 0x1204, 0x1, 0xbf9618b0)
    SendMessage (0, 0x1203, 0x2, 0xbf9618b0)
    SendMessage (0, 0x1204, 0x2, 0xbf9618b0)
    SendMessage (0, 0x1203, 0x3, 0xbf9618b0)
    SendMessage (0, 0x1204, 0x3, 0xbf9618b0)
    SendMessage (0, 0x1203, 0x4, 0xbf9618b0)
    SendMessage (0, 0x1204, 0x4, 0xbf9618b0)
    SendMessage (58720289, 0x101f, (nil), (nil))
    SendMessage (0, 0x1203, (nil), 0xbf962410)
    SendMessage (0, 0x1204, (nil), 0xbf962410)
    SendMessage (0, 0x1203, 0x1, 0xbf962410)
    SendMessage (0, 0x1204, 0x1, 0xbf962410)
    SendMessage (0, 0x1203, 0x2, 0xbf962410)
    SendMessage (0, 0x1204, 0x2, 0xbf962410)
    SendMessage (0, 0x1203, 0x3, 0xbf962410)
    SendMessage (0, 0x1204, 0x3, 0xbf962410)
    SendMessage (0, 0x1203, 0x4, 0xbf962410)
    SendMessage (0, 0x1204, 0x4, 0xbf962410)
    Mono: Assemblibgluezilla not found. To have webbrowser support, you need libgluezilla installed
    Mono: DllImport attempting to load: 'libgluezilla.so.0'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0'.
    Mono: DllImport error loading library: 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0.so'.
    Mono: DllImport error loading library: 'libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading: 'libgluezilla.so.0'.
    Mono: DllImport error loading library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport unable to load library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport attempting to load: 'libgluezilla.so.0'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0'.
    Mono: DllImport error loading library: 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0.so'.
    Mono: DllImport error loading library: 'libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading: 'libgluezilla.so.0'.
    Mono: DllImport error loading library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport unable to load library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport attempting to load: 'libgluezilla.so.0'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0'.
    Mono: DllImport error loading library: 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0.so'.
    Mono: DllImport error loading library: 'libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading: 'libgluezilla.so.0'.
    Mono: DllImport error loading library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport unable to load library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport attempting to load: 'libgluezilla.so.0'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0'.
    Mono: DllImport error loading library: 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0.so'.
    Mono: DllImport error loading library: 'libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading: 'libgluezilla.so.0'.
    Mono: DllImport error loading library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport unable to load library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport attempting to load: 'libgluezilla.so.0'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0'.
    Mono: DllImport error loading library: 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading location: 'libgluezilla.so.0.so'.
    Mono: DllImport error loading library: 'libgluezilla.so.0.so: cannot open shared object file: No such file or directory'.
    Mono: DllImport loading: 'libgluezilla.so.0'.
    Mono: DllImport error loading library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    Mono: DllImport unable to load library 'libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    

    This part stood out the most:

    Mono: DllImport loading library: '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0'.
    Mono: DllImport error loading library '/usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/libgluezilla.so.0: cannot open shared object file: No such file or directory'.
    

    So I looked into the directory and libgluezilla.so.0 isn't in there. I don't find it anywhere in my file system when doing a search. Unfortunately, that package is not listed in Synaptic Package Manager.

    So... I'm not sure where to get libgluezilla.so.0 for Xubuntu 12.04.

     
  • Danyal

    Danyal - 2013-08-19

    Hi,

    I developed this plugin for Windows only as that is where I use KeePass most of the time. Since KeePass is developed in .NET, I decided to write the plugin in .NET as well. The Google Drive DLLs I am using were downloaded from https://developers.google.com/drive/downloads. I have included them inside the plugin so people do not have to go through an extra step of downloading and installing it themselves.

    The plugin was developed with .NET 3.5 as the target environment and I am surprised to see many posts where people had to download .NET 4 or even .NET 4.5.

    I have no experience with Mono package so I hope the above information might be useful to someone more experienced with running Windows applications on Linux.

    Sorry I could not be of much help - Good luck!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.