Saturday, 25 July 2015

Dockerizing Evernote

Running Evernote in Docker using wine

There are a number of alternatives to accessing Evernote on Linux like Nevernote, Geeknote and Everpad.
As a long time user of Evernote and a Docker enthusiast it made sense to combine the two.
Disclaimer : I am not a power user of Evernote so people may find issues with webcam and sound functionality.

Usage :

docker run -d -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY –name evernote thshaw/evernote
** If you copy and paste the above please be sure to replace the -name with --name **
The first time this runs it will run the Evernote setup. Just login and the sync will start.
To stop the container :
docker stop evernote
To start the container :
docker start evernote

Versions
Ubuntu : 14:04

Evernote : 5.8.13

The Evernote image is built using : https://registry.hub.docker.com/u/thshaw/evernote/dockerfile/
Wine : 1.7.4

8 comments:

  1. Hi Tom. I pulled both images but Ican't seem to start evernote. I'm really new at this docker thing, what am I missing?

    Thanks in advance.

    ReplyDelete
  2. Hey Mau, if you cut and paste the command be sure that the --name part is right. Also be sure to run xhost + as root before the docker run command. Can you try that and if it doesn't work then paste the error message in here and I'll take a look. Tom

    ReplyDelete
  3. With the `docker run ..` command, the evernote install screen comes up, after installing and hitting "finish", evernote does not start up. Also tried "sudo xhost +" or restarting the "container". Can this be resolved, unfortunatly is does not show any error|warning messages ?

    ReplyDelete
    Replies
    1. Hey Freedom. I tried to reproduce this. My setup is Ubuntu 15.10, docker 1.10 and pulled the image fresh and ran : xhost +;docker run -d -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY --name evernote thshaw/evernote

      Started fine. Clicked install, entered login details and it's just syncing at the moment. Can you have a look in /root/wine in the container or use docker logs to try and find some more details? You running in a VM or baremetal?

      Delete
    2. Hi Tom, I am running everything on my laptop on ubuntu 14.04. Ok here are the errors, I get with `docker run -it ...` ... just to capture the errors. I am using a slight different version of ever note, though it could be the problem, however, the same behaviour recurs with the version you are using as-well.

      The main issue is the app install comes through with `sudo xhost +; docker run ...` and after clicking on "Finish", I don't get the next login screen for the sync. However the docker container is still running.

      Here is some err/messages:
      Starting Evernote 5.9.6.9494
      Wine version
      wine-1.7.55
      wine: created the configuration directory '/root/.wine'
      err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
      err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
      err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
      err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
      err:ole:get_local_server_stream Failed: 80004002
      err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
      err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
      err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
      err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
      err:ole:get_local_server_stream Failed: 80004002
      wine: configuration in '/root/.wine' has been updated.
      wine: configuration in '/root/.wine' has been updated.
      Evernote is running
      err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
      fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
      fixme:msi:check_transform_applicable unsupported validation flags 0x003f
      err:mscoree:LoadLibraryShim error reading registry key for installroot
      err:mscoree:LoadLibraryShim error reading registry key for installroot
      err:mscoree:LoadLibraryShim error reading registry key for installroot
      err:mscoree:LoadLibraryShim error reading registry key for installroot
      fixme:msi:event_spawn_wait_dialog doing nothing
      fixme:authz:AuthzInitializeResourceManager (0x1,(nil),(nil),(nil),(null),0xe0e5f4): stub
      fixme:msi:ITERATE_CreateShortcuts poorly handled shortcut format, advertised shortcut

      Delete
  4. 3 Ways to Maximize Productivity With Evernote
    http://masteryournotes.com/books/master-note-system-new-way-use-evernote-organize-life/

    ReplyDelete