Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-30 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  svn-trunk
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by rbarnes):

 These changes look quite reasonable to me. Thanks so much!

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-30 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  svn-trunk
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by neteler):

 Replying to [comment:20 mlennert]:
 > In r68808 I've added a section on text-based startup with location
 creation.

 Minor adjustments in r68809 (consistency with graphical part).

 All backported to 7.2.svn in r68810 and to 7.0.svn in r68811.

 @morenocomelli: is it ok now like this and the ticket can be closed?

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-30 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  svn-trunk
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by mlennert):

 In r68808 I've added a section on text-based startup with location
 creation.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-29 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  svn-trunk
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by wenzeslaus):

 In [changeset:"68797" 68797]:
 {{{
 #!CommitTicketReference repository="" revision="68797"
 init: advise user about --help and -c

 make messages shorter
 follows r68795, see #2683
 }}}

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-29 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  svn-trunk
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-
Changes (by neteler):

 * version:  7.0.0 => svn-trunk


Comment:

 Replying to [comment:17 rbarnes]:
 > Thanks. But I'm not sure how someone new to GRASS is supposed to know
 the foregoing. Perhaps by searching they will find this info here.

 Sure, the idea is to improve the message. Now (r68795) it reads:

 {{{
 grass73
 ERROR: Unable to start GRASS GIS. You have the choice to:
  - Launch the GRASS GIS interface with the '-gui' switch (`grass73 -gui`)
  - Launch GRASS GIS directly with path to the location/mapset as an
 argument (`grass73 /path/to/location/mapset`)
  - Create manually the GISRC file (/home/user/.grass7/rc)
 See also: https://grass.osgeo.org/grass73/manuals/helptext.html
 Exiting...
 }}}

 (manual page URL added).

 Any missing text from comment:16 should be added to that manual page.

 If this modified error message is ok, I'll backport it. Otherwise please
 suggest rephrasing.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-29 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by rbarnes):

 Thanks. But I'm not sure how someone new to GRASS is supposed to know the
 foregoing. Perhaps by searching they will find this info here.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-21 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by mlennert):

 Replying to [comment:14 neteler]:
 > Replying to [comment:13 rbarnes]:
 > > I'm running GRASS on a headless machine, so it wasn't possible for me
 to use a GUI on it.
 >
 > Right.
 >
 > On headless machines, use
 >
 > grass70 /path/to/location/mapset
 >
 >
 >
 > and the rc file will be generated.


 If you have no existing GRASS DATABASE, yet, on the machine, I would
 recommend starting by creating one:

 mkdir GRASSDATA

 Then, if you have no existing GRASS GIS data, you have to create a
 location and mapset first. Locations are defined by their projection
 system. Two options exist to define this projection: either you use an
 existing georeferenced file, or you use an EPSG code (see grass70 --help
 for details).

 grass70 -c EPSG:32630 /home/myuser/GRASSDATA/mylocation

 will create the location 'mylocation' (using WGS 84 / UTM zone 30N
 projection) and the mapset PERMANENT.

 If you want to enter the same location, but in a newly created mapset:

 grass70 -c /home/myuser/GRASSDATA/mylocation/mymapset

 If you want to create a new location (which always needs a PERMANENT
 mapset) and immediately enter another newly created mapset, you can
 combine these two steps

 grass70 -e -c EPSG:32630 /home/mlennert/gg/mylocation
 grass70 -c /home/myuser/GRASSDATA/mylocation/mymapset

 The '-e' flag tells GRASS to just create the new location (with its
 PERMANENT mapset), and then exit. The second call then creates and enters
 the new mapset mymapset.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-20 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by rbarnes):

 That resulted in:

 ERROR: ERROR:  is not a valid GRASS location

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-20 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by neteler):

 Replying to [comment:13 rbarnes]:
 > I'm running GRASS on a headless machine, so it wasn't possible for me to
 use a GUI on it.

 Right.

 On headless machines, use

 grass70 /path/to/location/mapset



 and the rc file will be generated.
 > I ended up installing GRASS on a spare machine, installing all the GUI
 packages, using the GUI, and then copying the contents of the resultant RC
 file and the associated directory structure to the headless machine.
 >
 > I have not found instructions for "Create manually GISRC file", but, if
 those existed somewhere and the help text referenced them, that would be
 ideal.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-20 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by rbarnes):

 I'm running GRASS on a headless machine, so it wasn't possible for me to
 use a GUI on it.

 I ended up installing GRASS on a spare machine, installing all the GUI
 packages, using the GUI, and then copying the contents of the resultant RC
 file and the associated directory structure to the headless machine.

 I have not found instructions for "Create manually GISRC file", but, if
 those existed somewhere and the help text referenced them, that would be
 ideal.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-20 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by neteler):

 Replying to [comment:11 rbarnes]:
 > Just wanted to note that I am trying to figure out how to use GRASS for
 the first time today. And I want to use it from the command line.
 >
 > I am getting:
 >
 >
 > {{{
 > ERROR: Unable to start GRASS. You can:
 >  - Launch GRASS with '-gui' switch (`grass70 -gui`)

 ... did you try this?

 See also:

 https://grass.osgeo.org/grass70/manuals/helptext.html

 How should we modify the message?

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2016-06-19 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.5
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by rbarnes):

 Just wanted to note that I am trying to figure out how to use GRASS for
 the first time today. And I want to use it from the command line.

 I am getting:


 {{{
 ERROR: Unable to start GRASS. You can:
  - Launch GRASS with '-gui' switch (`grass70 -gui`)
  - Create manually GISRC file (/home/my_user/.grass7/rc)
  - Launch GRASS with path to the location/mapset as an argument (`grass70
 /path/to/location/mapset`)
 Exiting...
 }}}

 and, from this text, have absolutely no idea what to do. Searching the
 internet based on these phrases has brought me here.

 Creating an empty rc file yields nothing. Trying to point GRASS at a
 directory results in it telling me that said directory (seemingly no
 matter what it is) is an invalid GRASS location.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2015-12-19 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.3
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by neteler):

 Replying to [comment:6 neteler]:
 > From a (new) user's point of view, the initial part of the message
 >
 >  "ERROR: Unable to start GRASS."
 >
 > is a bit scary. It needs to be expanded and more friendly. Especially
 the word "ERROR" must be removed. Proposal, let's change it into something
 like
 >
 >  "Welcome - You seem to run GRASS GIS the first time. Some settings need
 to be defined first. For this you can:"

 To be changed in

 lib/init/grass.py" line 1791

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2015-11-25 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.3
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by neteler):

 From a (new) user's point of view, the initial part of the message

  "ERROR: Unable to start GRASS."

 is a bit scary. It needs to be expanded and more friendly. Especially the
 word "ERROR" must be removed. Proposal, let's change it into something
 like

  "Welcome - You seem to run GRASS GIS the first time. Some settings need
 to be defined first. For this you can:"

 Any better suggestions?

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2015-11-24 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.3
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by morenocomelli):

 Same problem with GRASS 7.0.2 and GRASS 7.1.[[BR]]
 GRASS looks for location and mapset, and since there are none defined when
 starting the first time, the error appears (in text mode only).[[BR]]
 If mapset and location are created through gui, at next start in text mode
 they're the default settings. An other option is to create the
 /root/.grass7/rc file with proper parameters and the missing part of dir
 tree (the supposed dirs with database, location and mapset).



 Replying to [ticket:2683 morenocomelli]:
 > I'm trying to start grass 7 on CentOS 7 in text mode (Grass 6.4.4
 installed via yum works correctly).
 > On Centos with GUI:
 >
 > {{{
 > # grass70 -text
 > ERROR: Unable to start GRASS. You can:
 >  - Launch GRASS with '-gui' switch (`grass70 -gui`)
 >  - Create manually GISRC file (/root/.grass7/rc)
 >  - Launch GRASS with path to the location/mapset as an argument
 (`grass70 /path/to/location/mapset`)
 > Exiting...
 > }}}
 >
 > On CentOS without GUI:
 > {{{
 > # grass70 -text
 > WARNING: Searched for a web browser, but none found
 > ERROR: Unable to start GRASS. You can:
 >  - Launch GRASS with '-gui' switch (`grass70 -gui`)
 >  - Create manually GISRC file (/root/.grass7/rc)
 >  - Launch GRASS with path to the location/mapset as an argument
 (`grass70 /path/to/location/mapset`)
 > Exiting...
 > }}}
 >
 > {{{
 > #grass70
 > WARNING: Searched for a web browser, but none found
 > Starting GRASS GIS...
 > WARNING: It appears that the X Windows system is not active.
 > A graphical based user interface is not supported.
 > Switching to text based interface mode.
 >
 > Hit RETURN to continue
 >
 > ERROR: Path '/home/download/grass-7.0.0//' doesn't
 exist
 > Exiting...
 > }}}

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2015-05-21 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
---+-
 Reporter:  morenocomelli  |  Owner:  grass-dev@…
 Type:  defect | Status:  new
 Priority:  normal |  Milestone:  7.0.1
Component:  Default|Version:  unspecified
 Keywords: |CPU:  Unspecified
 Platform:  Unspecified|
---+-
 I'm trying to start grass 7 on CentOS 7 in text mode (Grass 6.4.4
 installed via yum works correctly).
 On Centos with GUI:

 {{{
 # grass70 -text
 ERROR: Unable to start GRASS. You can:
  - Launch GRASS with '-gui' switch (`grass70 -gui`)
  - Create manually GISRC file (/root/.grass7/rc)
  - Launch GRASS with path to the location/mapset as an argument (`grass70
 /path/to/location/mapset`)
 Exiting...
 }}}

 On CentOS without GUI:
 {{{
 # grass70 -text
 WARNING: Searched for a web browser, but none found
 ERROR: Unable to start GRASS. You can:
  - Launch GRASS with '-gui' switch (`grass70 -gui`)
  - Create manually GISRC file (/root/.grass7/rc)
  - Launch GRASS with path to the location/mapset as an argument (`grass70
 /path/to/location/mapset`)
 Exiting...
 }}}

 {{{
 #grass70
 WARNING: Searched for a web browser, but none found
 Starting GRASS GIS...
 WARNING: It appears that the X Windows system is not active.
 A graphical based user interface is not supported.
 Switching to text based interface mode.

 Hit RETURN to continue

 ERROR: Path '/home/download/grass-7.0.0/UNKNOWN/UNKNOWN' doesn't exist
 Exiting...
 }}}

--
Ticket URL: http://trac.osgeo.org/grass/ticket/2683
GRASS GIS http://grass.osgeo.org

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2015-05-21 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.1
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-

Comment (by wenzeslaus):

 The behavior should be same for system with and without GUI if `-text` is
 used. Except for the warnings about browser and X. It seems that this is
 true. Perhaps the warnings shouldn't be there in the text mode since they
 are useless and probably annoying. Would you like to have them removed
 when `-text`? But note that the issue is that you //can// start with
 `-text` and then open some GUI (quite common usage) and in this case the
 warnings are quite useful.

 In both cases it prints the same message with suggestion what can be done
 to start GRASS GIS. This is perhaps the important difference to GRASS GIS
 6.4 where a text-based interface was started. There is none like this in
 7.0. The `-text` interface means command line parameters of `grass70` and
 command line inside GRASS session.

 I'm not sure with the other error you are getting. It seems that when you
 start for the second time on the same machine after unsuccessful first
 start, you get different error which does not have any suggestions how to
 fix it. I think this is wrong but I'm actually not sure how this happens.
 I'm not completely sure what is the purpose of `UNKNOWN` strings in the rc
 file and how they get there (there is a
 [source:grass/tags/release_20150220_grass_7_0_0/lib/init/grass.py#L501
 create_initial_gisrc()] function but I though the created file conntent is
 always used only internally by `grass.py`).

--
Ticket URL: http://trac.osgeo.org/grass/ticket/2683#comment:2
GRASS GIS http://grass.osgeo.org

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2683: grass 7 doesn't start in text mode on CentOS 7

2015-05-21 Thread GRASS GIS
#2683: grass 7 doesn't start in text mode on CentOS 7
+-
  Reporter:  morenocomelli  |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:  7.0.1
 Component:  Startup|Version:  7.0.0
Resolution: |   Keywords:  centos
   CPU:  Unspecified|   Platform:  Unspecified
+-
Changes (by neteler):

 * keywords:   = centos
 * version:  unspecified = 7.0.0
 * component:  Default = Startup


--
Ticket URL: http://trac.osgeo.org/grass/ticket/2683#comment:1
GRASS GIS http://grass.osgeo.org

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev