[GRASS-user] Re: Windows 2000 cygwin troubles

Teague O'Mara teague.omara at asu.edu
Sat May 20 20:11:21 EDT 2006


Hi Brandon.  I used to have similar problems, and occasionally do when
starting directly under Cygwin.  I have been using a script from Huidae Cho
that starts cygwin, starts and Xwindow and then starts grass with one click.
I have attached the script as "grass61.txt" so it doesn't get nabbed by
email filters.  Rename it "grass61.bat" drop it in the cywin folder and
grass should start after a double click.  If you are running a different
version of grass you can edit the script with the appropriate file name.

Good luck.

Teague

Teague O'Mara
School of Human Evolution and Social Change
Arizona State University
Box 872402
Tempe, AZ 85287-2402
480.965.6213
teague.omara at asu.edu
 



 

-----Original Message-----
From: grassuser-bounces at grass.itc.it [mailto:grassuser-bounces at grass.itc.it]
On Behalf Of grassuser-request at grass.itc.it
Sent: Saturday, May 20, 2006 1:24 PM
To: grassuser at grass.itc.it
Subject: grassuser Digest, Vol 1, Issue 1859

Send grassuser mailing list submissions to
	grassuser at grass.itc.it

To subscribe or unsubscribe via the World Wide Web, visit
	http://grass.itc.it/mailman/listinfo/grassuser
or, via email, send a message with subject or body 'help' to
	grassuser-request at grass.itc.it

You can reach the person managing the list at
	grassuser-owner at grass.itc.it

When replying, please edit your Subject line so it is more specific than
"Re: Contents of grassuser digest..."


Today's Topics:

   1. [GRASSLIST:1075] Re: [GRASS-user] Trento3D screenshots redone
      (ivan marchesini)
   2. Windows 2000 cygwin troubles (Brandon M. Gabler)
   3. Re: Windows 2000 cygwin troubles (Jachym Cepicky)
   4. RE: Windows 2000 cygwin troubles (Brandon M. Gabler)


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

Message: 1
Date: Sat, 20 May 2006 16:00:05 +0200
From: ivan marchesini <marchesini at unipg.it>
Subject: [GRASSLIST:1075] Re: [GRASS-user] Trento3D screenshots redone
To: GRASS Users list <grasslist at baylor.edu>
Message-ID: <1148133605.7112.19.camel at geologia5.agora.ing.unipg.it>
Content-Type: text/plain

Dear all...
I have done, in the past, an application of flooding inundation using
HEC-RAS and GRASS...
it was quite simple...
I have performed the simulation inside HEC-RAS and then I have put the water
level surface obtained at each river cross-section into GRASS (simply
drawing a line and adding the water level surface as an
attribute)
then v.surf.rst with correct tension values and I have obtained the
simulated water surface!!!
then r.mapcalc with the DEM to obtain the water level over the ground!!!

what about r.hydro.casc2d??? it was a module of grass5.4 I remember it was
able to simulate flood-routing!!
the problem is it wasn't able to simulate bridge, culvert, ecc...
it would be nice if someone could improve it!!!  :-) I'm not sufficiently
experienced!!

bye
Ivan
 



Il giorno ven, 19/05/2006 alle 09.49 -0400, Thomas Adams ha scritto:
> . Actually, the modeling would
> be done outside of GRASS and then have the appropriate water surface 
> elevation data imported into GRASS to show the inundated areas. The 
> hydraulic modeling *could* be done withing GRASS, but a better first 
> step probably would be to do the modeling outside of GRASS and then 
> import the data. An additional advantage to this is that there are 
> many hydraulic models and one may have a preference as to which to use 
> or, not be restricted to a particular model, thereby retaining more 
> flexibility.
> 
> Tom
--
Ivan Marchesini
Department of Civil and Environmental Engineering University of Perugia Via
G. Duranti 93/a
06125
Perugia (Italy)
e-mail: marchesini at unipg.it
        ivan.marchesini at gmail.com
tel: +39(0)755853760
fax: +39(0)755853756
jabber: geoivan73 at jabber.org




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

Message: 2
Date: Sat, 20 May 2006 10:53:43 -0700
From: "Brandon M. Gabler" <bgabler at email.arizona.edu>
Subject: [GRASS-user] Windows 2000 cygwin troubles
To: <grassuser at grass.itc.it>
Message-ID: <DPEPJEPICCILPOGODOKJKEEFCBAA.bgabler at email.arizona.edu>
Content-Type: text/plain;	charset="iso-8859-1"

Hey all,

I'm 100% new to GRASS, and just installed it via Cygwin onto my Windows 2000
system.

The problem is, after installing the Xfree86 base package for cygwin, the
grass package, and copying over the grass60.bat file for startup, it's not
working. The cygwin/X server system tray icon appears, the black command
window pops up stating "Startxwin.bat - starting on windows 98/2000/xp",
then a grass60 black window pops up and immediately disappears. That's the
end of it. The cygwin/X server remains in the systray still functioning, but
GRASS does nothing.

I have been using Cygwin for a few months now on this machine to run Swarm
2.2, with no problems at all.

Does anyone have any suggestions?

I thank you all in advance,
Cheers,
Brandon

Brandon M. Gabler
Research Associate
Doctoral Student
Department of Anthropology
University of Arizona
Tucson, Arizona 85721



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

Message: 3
Date: Sat, 20 May 2006 21:50:54 +0200
From: Jachym Cepicky <jachym.cepicky at centrum.cz>
Subject: Re: [GRASS-user] Windows 2000 cygwin troubles
To: "Brandon M. Gabler" <bgabler at email.arizona.edu>
Cc: grassuser at grass.itc.it
Message-ID: <20060520195053.GB6946 at gdf-hannover.de>
Content-Type: text/plain; charset="iso-8859-2"

hallo,
on windows, I use following approach:

1)  start cygwin
2) write command "startxwin.bat" end press <Return>
   The X logo should appear in the systray, new "white" x-terminal
   should appear

3) you can close the "black" cygwin window
4) grass61 in the new "white" x-terminal

jachym

On Sat, May 20, 2006 at 10:53:43AM -0700, Brandon M. Gabler wrote:
> Hey all,
> 
> I'm 100% new to GRASS, and just installed it via Cygwin onto my 
> Windows 2000 system.
> 
> The problem is, after installing the Xfree86 base package for cygwin, 
> the grass package, and copying over the grass60.bat file for startup, 
> it's not working. The cygwin/X server system tray icon appears, the 
> black command window pops up stating "Startxwin.bat - starting on 
> windows 98/2000/xp", then a grass60 black window pops up and 
> immediately disappears. That's the end of it. The cygwin/X server 
> remains in the systray still functioning, but GRASS does nothing.
> 
> I have been using Cygwin for a few months now on this machine to run 
> Swarm 2.2, with no problems at all.
> 
> Does anyone have any suggestions?
> 
> I thank you all in advance,
> Cheers,
> Brandon
> 
> Brandon M. Gabler
> Research Associate
> Doctoral Student
> Department of Anthropology
> University of Arizona
> Tucson, Arizona 85721
> 
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser

--
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------   
OFFICE:                                     
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky at gdf-hannover.de
URL:    http://gdf-hannover.de
Tel.:   +49 511-39088507
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url :
http://grass.itc.it/pipermail/grassuser/attachments/20060520/8d2ca81e/attach
ment-0001.bin

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

Message: 4
Date: Sat, 20 May 2006 13:22:58 -0700
From: "Brandon M. Gabler" <bgabler at email.arizona.edu>
Subject: RE: [GRASS-user] Windows 2000 cygwin troubles
To: "Jachym Cepicky" <jachym.cepicky at centrum.cz>
Cc: grassuser at grass.itc.it
Message-ID: <DPEPJEPICCILPOGODOKJAEEICBAA.bgabler at email.arizona.edu>
Content-Type: text/plain; charset="iso-8859-2"

Thanks for the tip, Jachym. Unfortunately, that yielded the exact same
result. I have attached a jpg image of the last screen I see. Grass starts
to load, but then goes blank and then quits, within a few seconds.

Thanks again all,
Brandon

-----Original Message-----
From: Jachym Cepicky [mailto:jachym.cepicky at centrum.cz]
Sent: Saturday, May 20, 2006 12:51 PM
To: Brandon M. Gabler
Cc: grassuser at grass.itc.it
Subject: Re: [GRASS-user] Windows 2000 cygwin troubles


hallo,
on windows, I use following approach:

1)  start cygwin
2) write command "startxwin.bat" end press <Return>
   The X logo should appear in the systray, new "white" x-terminal
   should appear

3) you can close the "black" cygwin window
4) grass61 in the new "white" x-terminal

jachym

On Sat, May 20, 2006 at 10:53:43AM -0700, Brandon M. Gabler wrote:
> Hey all,
>
> I'm 100% new to GRASS, and just installed it via Cygwin onto my 
> Windows
2000
> system.
>
> The problem is, after installing the Xfree86 base package for cygwin, 
> the grass package, and copying over the grass60.bat file for startup, 
> it's not working. The cygwin/X server system tray icon appears, the 
> black command window pops up stating "Startxwin.bat - starting on 
> windows 98/2000/xp", then a grass60 black window pops up and 
> immediately disappears. That's the end of it. The cygwin/X server 
> remains in the systray still functioning,
but
> GRASS does nothing.
>
> I have been using Cygwin for a few months now on this machine to run 
> Swarm 2.2, with no problems at all.
>
> Does anyone have any suggestions?
>
> I thank you all in advance,
> Cheers,
> Brandon
>
> Brandon M. Gabler
> Research Associate
> Doctoral Student
> Department of Anthropology
> University of Arizona
> Tucson, Arizona 85721
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser

--
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky at gdf-hannover.de
URL:    http://gdf-hannover.de
Tel.:   +49 511-39088507
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grass_window.jpg
Type: image/jpeg
Size: 21890 bytes
Desc: not available
Url :
http://grass.itc.it/pipermail/grassuser/attachments/20060520/1a8a7251/grass_
window.jpg

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

_______________________________________________
grassuser mailing list
grassuser at grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser


End of grassuser Digest, Vol 1, Issue 1859
******************************************
-------------- next part --------------
@echo off
SET DISPLAY=:0.


REM 
REM The path in the CYGWIN_ROOT environment variable assignment assume
REM that Cygwin is installed in a directory called 'cygwin' in the root
REM directory of the current drive.  You will only need to modify
REM CYGWIN_ROOT if you have installed Cygwin in another directory.  For
REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need 
REM to change \cygwin to \foo\bar\baz\cygwin.
REM 
REM This batch file will almost always be run from the same drive (and
REM directory) as the drive that contains Cygwin/X, therefore you will
REM not need to add a drive letter to CYGWIN_ROOT.  For example, you do
REM not need to change \cygwin to c:\cygwin if you are running this
REM batch file from the C drive.
REM 

SET CYGWIN_ROOT=\cygwin

SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%

SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
SET XNLSPATH=/usr/X11R6/lib/X11/locale


REM
REM Cleanup after last run.
REM

if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix


REM
REM The error "Fatal server error: could not open default font 'fixed'" is
REM caused by using a DOS mode mount for the mount that the Cygwin/X
REM fonts are accessed through.  See the Cygwin/X FAQ for more 
REM information:
REM http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof
REM

if "%OS%" == "Windows_NT" goto OS_NT

REM Windows 95/98/Me
echo startxwin.bat - Starting on Windows 95/98/Me

goto STARTUP

:OS_NT

REM Windows NT/2000/XP/2003
echo startxwin.bat - Starting on Windows NT/2000/XP/2003

:STARTUP

REM Brief descriptions of XWin-specific options:
REM
REM -screen scr_num [width height]
REM      Enable screen scr_num and optionally specify a width and
REM      height for that screen.
REM      Most importantly, any parameters specified before the first -screen
REM      parameter apply to all screens.  Any options after the first -screen
REM      parameter apply only to the screen that precedes the parameter.
REM      Example:
REM          XWin -fullscreen -screen 0 -screen 1 -depth 8 -screen 2
REM      All screens will be fullscreen, but screen 2 will be depth 8, while
REM      screens 0 and 1 will be the default depth (whatever depth Windows
REM      is currently running at).
REM -multiwindow
REM      Start an integrated Windows-based window manager.  Not to be used
REM      with -rootless nor -fullscreen.
REM -rootless
REM      Use a transparent root window with an external window manager
REM      (such as twm).  Not to be used with -multiwindow nor
REM      with -fullscreen.
REM -fullscreen
REM      Use a window as large as possible on the primary monitor.
REM -multiplemonitors
REM      Create a root window that covers all monitors on a
REM      system with multiple monitors.
REM -clipboard
REM      Enable the integrated version of xwinclip.  Do not use in
REM      conjunction with the xwinclip program.
REM -depth bits_per_pixel
REM      Specify the screen depth to run at (in bits per pixel) using a
REM      DirectDraw-based engine in conjunction with the -fullscreen
REM      option, ignored if the -fullscreen option is not specified.
REM      By default, you will be using a DirectDraw based engine on any
REM      system that supports it.
REM -unixkill
REM      Trap Ctrl+Alt+Backspace as a server shutdown key combination.
REM -nounixkill
REM      Disable Ctrl+Alt+Backspace as a server shutdown key combination (default).
REM      Example:
REM          XWin -unixkill -screen 0 -screen 1 -screen 2 -nounixkill
REM      Screens 0 and 1 will allow Ctrl+Alt+Backspace, but screen 2 will not.
REM -winkill
REM      Trap Alt+F4 as a server shutdown key combination (default).
REM -nowinkill
REM      Disable Alt+F4 as a server shutdown key combination.
REM -scrollbars
REM      Enable resizing of the server display window.  Do not use in conjunction
REM      with -multiwindow nor with -rootless.
REM -nodecoration
REM      Draw the server root window without a title bar or border.
REM      Do not use with -mutliwindow nor with -rootless.
REM -lesspointer
REM      Hide the Windows mouse cursor anytime it is over any part of the
REM      window, even if Cygwin/X is not the window with the focus.
REM -refresh rate_in_Hz
REM      Specify a refresh rate to use when used with the -fullscreen option.
REM -trayicon
REM      Enable the tray icon (default).
REM -notrayicon
REM      Disable the tray icon.
REM      Example:
REM          XWin -notrayicon -screen 0 -screen 1 -screen 2 -trayicon
REM      Screens 0 and 1 will not have tray icons, but screen 2 will.
REM -emulate3buttons [timeout]
REM      Emulate 3 button mouse with an optional timeout in milliseconds.
REM -xf86config
REM      Specify an XF86Config-style configuration file.
REM -keyboard
REM      Specify a keyboard device from the configuration file.


REM
REM Startup the programs
REM


REM Startup the X Server with the integrated Windows-based window manager.
REM WARNING: Do not use 'xwinclip' in conjunction with the ``-clipboard''
REM command-line parameter for XWin.  Doing so would start two clipboard
REM managers, which is never supposed to happen.

run XWin -multiwindow -clipboard -silent-dup-error


REM Startup an xterm, using bash as the shell.

run xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e /usr/bin/bash -l grass61


REM
REM Startup the twm window manager.
REM WARNING: Do not use an external window manager in conjunction with
REM the ``-multiwindow'' command-line parameter for XWin.  Doing so
REM would start two window managers, which is never supposed to happen.
REM

REM run twm


REM Set a background color.  Only needed when not using -multwindow for XWin.

REM run xsetroot -solid aquamarine4


More information about the grass-user mailing list