[GRASS-user] Running grass in virtualbox with shared folders

Hi all

I'm running grass7 in virtual box (tried both ubuntu mate and mint linux)
and trying to open a location/mapset located on a mounted shared folder.
Write permissions appear to work in the file browser, but I get an error
(pasted below) trying to start the grass gui. Any thoughts on how to fix?

THX

Launching <wxpython> GUI in the background, please wait...
GRASS 7.0.3 (NixonDemo):~ > ERROR: MAPSET lidartst - permission denied
Traceback (most recent call last):
  File "/usr/lib/grass70/gui/wxpython/wxgui.py", line 37, in <module>
    from lmgr.frame import GMFrame
  File "/usr/lib/grass70/gui/wxpython/lmgr/frame.py", line 50, in <module>
    from lmgr.layertree import LayerTree, LMIcons
  File "/usr/lib/grass70/gui/wxpython/lmgr/layertree.py", line 37, in
<module>
    from mapdisp.frame import MapFrame
  File "/usr/lib/grass70/gui/wxpython/mapdisp/frame.py", line 64, in
<module>
    class MapFrame(SingleMapFrame):
  File "/usr/lib/grass70/gui/wxpython/mapdisp/frame.py", line 70, in
MapFrame
    page = None, Map = Map(), auimgr = None, name = 'MapWindow', **kwargs):
  File "/usr/lib/grass70/gui/wxpython/core/render.py", line 414, in __init__
    self.mapfile = grass.tempfile(create = False) + '.ppm'
  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 736, in
tempfile
    return read_command("g.tempfile", flags=flags, pid=os.getpid()).strip()
  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 445, in
read_command
    return handle_errors(returncode, stdout, args, kwargs)
  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 312, in
handle_errors
    returncode=returncode)
grass.exceptions.CalledModuleError: Module run None ['g.tempfile', '-d',
'pid=2280'] ended with error
Process ended with non-zero return code 1. See errors in the (error) output.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Wed, May 30, 2018 at 1:10 AM, knussear <knussear@mac.com> wrote:

I'm running grass7 in virtual box (tried both ubuntu mate and mint linux)

Linux guest or host? What is the other OS? Or both Linux?

I've run GRASS in a linux guest on an OS X host. I had to use "sudo" when
accessing the OS X host.

  -k.

Linux VM, OSX Host. Shared folder work within the regular file system
operations, but not for running Grass locations.

Do you mean that you had to start grass with "sudo grass"?

--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On 30 May 2018, at 17.49, knussear <knussear@mac.com> wrote:

Do you mean that you had to start grass with "sudo grass"?

Yes.

  -k.

Please excuse brevity. Sent from pocket computer with tiny non-haptic feedback keyboard.

Ah yes - that works! Thanks! Wonder why I can't access as my regular user?

--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Wed, May 30, 2018 at 11:14 PM, knussear <knussear@mac.com> wrote:

Ah yes - that works! Thanks! Wonder why I can't access as my regular user?

On Linux one has to be member of the group "vboxusers", perhaps also on Mac?

Markus