Re: [GRASS-user] Change gisdbase in GRASS 8.x

2022-08-30 Thread Thomas Adams
Hi Wolf,

Thank you for your help with switching the GRASSDBASE!

Best,
Tom

On Tue, Aug 30, 2022 at 12:10 AM Wolf Bergenheim 
wrote:

> Hi Tom,
>
> 1) To point GRASS to the GISDBASE on the external drive, simply start
> GRASS once with
>
> grass /external_ntfs_mount/some_location/mapset
>
> Meaning that you give as argument the path to a mapset that you want to
> use in the GISDBASE on the external btfs drive. GRASS will remember this
> then is subsequent runs so you only will need to do it once.
>
> 2) For the external NTFS drive and permissions. How do you mount it? It
> does seem to me that the user mapping is incorrect if everything is mapped
> to the root user. Either you can use the options to mount it as your user
> (at which point it will work on linux, but I don't know what windows user
> they will be mapped to (probably the administrator). Alternatively you can
> provide a mapping file which maps your linux username to a windows user id
> as shown for example here:
> https://linux.die.net/man/8/mount.ntfs-3g
>
> For ease of use in the long term, I'd probably go with the default mapping
> file. Hope this helps!
>
> *-- *
> * ^.___*
>
> *( ,__// / Wolf Bergenheim*
>
>
>
> On Mon, 29 Aug 2022 at 17:39, Thomas Adams  wrote:
>
>> Hi all,
>>
>> I recently started using GRASS 8.1 on an Ubuntu 22.04 laptop. Although I
>> have a 2TB solid state  internal drive, I want to keep all my GRASS files
>> on an external NTFS drive. Somehow all of the files have root ownership,
>> including all my GRASS files copied on to it from my Mac. This is causing
>> all sorts of problems, including not being able to access any of the data
>> within GRASS due to permissions. After installing GRASS 8.1 on my Ubuntu
>> computer, my default GRASS database is
>>
>> GISDBASE: /home/teaiii/grassdata
>>
>> how can I either:
>>
>> (1) point to the grass data on my external drive as the (working) default
>> GISDBASE or
>> (2) access the data from the default GISDBASE -- permissions don't seem
>> to allow this even though all files are universally rw
>>
>> Best,
>> Tom
>>
>> ___
>> grass-user mailing list
>> grass-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>
>

-- 
Thomas E Adams, III
207 Chowning Place
Blacksburg, VA 24060
tea...@gmail.com (personal)
t...@terrapredictions.org (work)

1 (513) 739-9512 (cell)
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Change gisdbase in GRASS 8.x

2022-08-30 Thread Thomas Adams
Hi Māris,

Thank you for your help and suggestions… but, how, within the GUI do I set
GISDBASE… I have looked but cannot find how to do this…

Regards,
Tom

On Tue, Aug 30, 2022 at 1:33 AM Maris Nartiss  wrote:

> otrd., 2022. g. 30. aug., plkst. 07:10 — lietotājs Wolf Bergenheim
> () rakstīja:
> >
> > Hi Tom,
> >
> > 1) To point GRASS to the GISDBASE on the external drive, simply start
> GRASS once with
> >
> > grass /external_ntfs_mount/some_location/mapset
> >
> > Meaning that you give as argument the path to a mapset that you want to
> use in the GISDBASE on the external btfs drive. GRASS will remember this
> then is subsequent runs so you only will need to do it once.
>
> It is possible to switch GISDBASE from GUI after starting GRASS in
> different GISDBASE.
>
> > 2) For the external NTFS drive and permissions. How do you mount it? It
> does seem to me that the user mapping is incorrect if everything is mapped
> to the root user. Either you can use the options to mount it as your user
> (at which point it will work on linux, but I don't know what windows user
> they will be mapped to (probably the administrator). Alternatively you can
> provide a mapping file which maps your linux username to a windows user id
> as shown for example here:
> > https://linux.die.net/man/8/mount.ntfs-3g
>
> NTFS is a tricky beast as mount on Linux will just set a single owner
> for all files. If nothing is specified, it will be the user mounting
> disk (=root). To get NTFS permissions right, you should pass -o
> uid=XX,gid=XX parameters to the mount command where XX is your UID and
> GID. If disk is automounted, you should look into automounter
> documentation how to get things right (fstab entry or enabling user
> mount, ...).
>
> Good luck,
> Māris.
>


-- 
Thomas E Adams, III
207 Chowning Place
Blacksburg, VA 24060
tea...@gmail.com (personal)
t...@terrapredictions.org (work)

1 (513) 739-9512 (cell)
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Running r-grass examples when building a R package

2022-08-30 Thread Bernardo Santos via grass-user
 Hi Stefan,(and thanks Roger and Floris for replying as well)
Your solution worked perfectly, Stefan. Thanks a lot!In the case of continuous 
integration within Github as it is the case, it seems we must ask GRASS to be 
installed in the virtual machine.
This could be done with Stefan's suggestion, adding these lines to the yaml 
file within .github/workflows:
- name: Install GRASS GIS and other dependencies        run: |          sudo 
apt-get update -qq          sudo apt-get install -y -qq grass grass-dev 
grass-doc wget
You can also see it here: Install GRASS for CI by ninsbl · Pull Request #11 · 
NINAnor/oneimpact (github.com)
I guess this could be documented for GRASS/R users somewhere? Maybe in some 
wiki?Any suggestion on where to add this?

BestBernardo

Em sexta-feira, 26 de agosto de 2022 13:27:46 GMT+2, Stefan Blumentrath 
 escreveu:  
 
  
Hi Bernardo,
 
  
 
Seems like GRASS GIS isn`t installed on the CI VM.
 
  
 
Please see:
 
https://github.com/NINAnor/oneimpact/pulls
 
  
 
You may add UbuntuGIS PPAs if you want other versions than shipped by plain 
Ubuntu.
 
  
 
Cheers
 
Stefan
 
  
 
From: grass-user On Behalf Of Bernardo 
Santos via grass-user
Sent: fredag 26. august 2022 12:56
To: grass-st...@lists.osgeo.org; GRASS User List 
Subject: [GRASS-user] Running r-grass examples when building a R package
 
  
 
Dear all,
 
  
 
I am building a R package and some of the functions use rgrass to connect to a 
GRASS project and run thingfs within GRASS.
 
I have now set up a webpage for the package using pkgdown in integrated to 
Github actions. This means when I push new commits all the examples of R 
functions are run again and the webpage is updated with the results of the 
examples. Here is the webpage: https://ninanor.github.io/oneimpact/
 
  
 
All works fine, except the functions calling GRASS. When I run the examples 
form my local computer everything works, but in the Github actions it does not 
run, apparently because the command
 
  
 system("grass78 --config path", intern = T) 
to find the GRASS folder and use within rgrass::initGRASS does not work, so the 
connection between R and GRASS do not exist.
 
  
 
Does someone in the group has experience with that and could help with hints to 
solve it?
 
Is there a recommended way to make sure Github actions know where GRASS is and 
use it?
 
  
 
Best
 
Bernardo
   ___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user