Gramps on WSL (Win10/Ubuntu 14.04/VcXsvr)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Gramps on WSL (Win10/Ubuntu 14.04/VcXsvr)

James Sherring-2
I don't know if anyone else has tried it, but I can report successfully running Gramps under the new windows subsystem for linux.

This is the Linux distribution of Gramps running under WSL (Ubuntu Trusty) on Windows 10, NOT under a VM. Ie the Ubuntu userspace without a linux kernel.

It seems to work fine - it should work the same as under Ubuntu 14.04. I haven't identified any benefit for regular users over the AIO gramps build, but the ability to access the apt packages and linux tools may be useful for gramps development on windows, as an alternative to gramps in a linux VM.
  1. Install the Windows 10 Anniversary update and WSL, eg see http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
  2. Install (and run) X server eg VcXsvr 
  3. From the WSL bash prompt:
  4. DISPLAY=:0.0 (or for persistent setting: echo "export DISPLAY=:0.0" >> ~/.bashrc )
  5. sudo apt-get install gramps
  6. gramps
That gets you gramps 4.0.3-1, because WSL is currently Ubuntu Trusty.

Warnings reported launching gramps 4.0.3-1:

** (gramps:6630): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
2016-09-06 10:36:53.366: WARNING: grampsgui.py: line 262: GTK translations missing, GUI will be broken, especially for RTL languages!

Pop-up 1: Gramps detected an incomplete GTK installation

GTK translations for the current language (en_AU) are missing.
Gramps will proceed nevertheless...

Pop-up 2: GExiv2 module not loaded.
Pop-up 3: OsmGpsMap module not loaded.

Gramps 4.0.3-1 seems to run fine but i have not tested further.

Errors while trying to install python3-gramps_4.2.4_all.deb:

Selecting previously unselected package python3-gramps.
(Reading database ... 138856 files and directories currently installed.)
Preparing to unpack python3-gramps_4.2.4_all.deb ...
Unpacking python3-gramps (4.2.4) ...
dpkg: error processing archive python3-gramps_4.2.4_all.deb (--install):
 trying to overwrite '/usr/share/mime/packages/gramps.xml', which is also in package gramps 4.0.3+dfsg-2ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...

So I uninstalled gramps 4.0 (sudo apt-get remove gramps) and retried, with warnings:

dpkg: dependency problems prevent configuration of python3-gramps:
 python3-gramps depends on python3-bsddb3; however:
  Package python3-bsddb3 is not installed.

Then fix missing bsddb3 dependency with sudo apt-get install python3-bsddb3

Gramps 4.2.4 then runs fine (with same warnings as above for 4.0.3-1).



James



------------------------------------------------------------------------------

_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gramps on WSL (Win10/Ubuntu 14.04/VcXsvr)

manzi.sam
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Gramps on WSL (Win10/Ubuntu 14.04/VcXsvr)

Michel Vuijlsteke
Tried it our last week, works as advertised!

The All-In-One Windows version *looks* a lot better though -- compare http://blog.zog.org/images/Capture8.png and http://blog.zog.org/images/Capture8b.png.

Michel

On 13 September 2016 at 01:21, Sam Manzi <[hidden email]> wrote:
Hi James,

Thank you for working this out.

When I get a moment I'll try it out.

Regards
Sam

On 6 September 2016 at 16:19, James Sherring <[hidden email]> wrote:
I don't know if anyone else has tried it, but I can report successfully running Gramps under the new windows subsystem for linux.

This is the Linux distribution of Gramps running under WSL (Ubuntu Trusty) on Windows 10, NOT under a VM. Ie the Ubuntu userspace without a linux kernel.

It seems to work fine - it should work the same as under Ubuntu 14.04. I haven't identified any benefit for regular users over the AIO gramps build, but the ability to access the apt packages and linux tools may be useful for gramps development on windows, as an alternative to gramps in a linux VM.
  1. Install the Windows 10 Anniversary update and WSL, eg see http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
  2. Install (and run) X server eg VcXsvr 
  3. From the WSL bash prompt:
  4. DISPLAY=:0.0 (or for persistent setting: echo "export DISPLAY=:0.0" >> ~/.bashrc )
  5. sudo apt-get install gramps
  6. gramps
That gets you gramps 4.0.3-1, because WSL is currently Ubuntu Trusty.

Warnings reported launching gramps 4.0.3-1:

** (gramps:6630): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
2016-09-06 10:36:53.366: WARNING: grampsgui.py: line 262: GTK translations missing, GUI will be broken, especially for RTL languages!

Pop-up 1: Gramps detected an incomplete GTK installation

GTK translations for the current language (en_AU) are missing.
Gramps will proceed nevertheless...

Pop-up 2: GExiv2 module not loaded.
Pop-up 3: OsmGpsMap module not loaded.

Gramps 4.0.3-1 seems to run fine but i have not tested further.

Errors while trying to install python3-gramps_4.2.4_all.deb:

Selecting previously unselected package python3-gramps.
(Reading database ... 138856 files and directories currently installed.)
Preparing to unpack python3-gramps_4.2.4_all.deb ...
Unpacking python3-gramps (4.2.4) ...
dpkg: error processing archive python3-gramps_4.2.4_all.deb (--install):
 trying to overwrite '/usr/share/mime/packages/gramps.xml', which is also in package gramps 4.0.3+dfsg-2ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...

So I uninstalled gramps 4.0 (sudo apt-get remove gramps) and retried, with warnings:

dpkg: dependency problems prevent configuration of python3-gramps:
 python3-gramps depends on python3-bsddb3; however:
  Package python3-bsddb3 is not installed.

Then fix missing bsddb3 dependency with sudo apt-get install python3-bsddb3

Gramps 4.2.4 then runs fine (with same warnings as above for 4.0.3-1).



James



------------------------------------------------------------------------------

_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel



------------------------------------------------------------------------------

_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel



------------------------------------------------------------------------------

_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel