I gave a try at compiling the small version of GRASS, Cutgrass4.2, for
my mklinux Mac. I have it running, but no graphics (I did compile
XDRIVER and fix monitorcap). When I try d.mon start=x0 or whatever, I
get the message "Graph_Set: Can't open." Any advice would be most
welcome! tom@bluesky.org
On Sat, 30 Jan 1999, Tom Gewecke wrote:
I gave a try at compiling the small version of GRASS, Cutgrass4.2, for
my mklinux Mac. I have it running, but no graphics (I did compile
XDRIVER and fix monitorcap). When I try d.mon start=x0 or whatever, I
get the message "Graph_Set: Can't open." Any advice would be most
welcome! tom@bluesky.org
One reason for this, I have learned, is that if you 'su - <user>' you do
not get the DISPLAY environment variable in your new shell.
So after suing and before running grass do a (in bash)
export DISPLAY=:0.0
and it should work. (Or just do not run grass from a su shell).
regards
Morten
One reason for this, I have learned, is that if you 'su - <user>' you do
not get the DISPLAY environment variable in your new shell.
So after suing and before running grass do a (in bash)export DISPLAY=:0.0
and it should work. (Or just do not run grass from a su shell).
Thanks much for your response! I gave it a try, but the message just
changes to "Graph_Set: Can't open :0.0". I'm wondering if there is some
kind of permission problem. But I have been running GRASS as root to
minimize that. My understanding of what to check the permissions of is
rather limited, unfortunately... Regards, Tom
If you are logged on as one user and then su'd to root, then you will
cause a permissions problem with the X display.
Try running grass as the user that logged in. If you prefer for other
reasons, you could try the xhost command, which describes to the X display
who can put a window up. To make it open to anyone (Yes- don't do this,
it's a security risk over the long term) try the command "xhost +" by the
logged-in user.
Enjoy!
Angus.
On Sun, 31 Jan 1999, Tom Gewecke wrote:
>One reason for this, I have learned, is that if you 'su - <user>' you do
>not get the DISPLAY environment variable in your new shell.
>So after suing and before running grass do a (in bash)
>
>export DISPLAY=:0.0
>
>and it should work. (Or just do not run grass from a su shell).Thanks much for your response! I gave it a try, but the message just
changes to "Graph_Set: Can't open :0.0". I'm wondering if there is some
kind of permission problem. But I have been running GRASS as root to
minimize that. My understanding of what to check the permissions of is
rather limited, unfortunately... Regards, Tom
Thanks to various suggestions, I got the graphics working! But not
completely: When I do d.mon, it says "can't set color 0" a couple times.
Using the "leics" data set from that tutorial, doing "d.rast image" gives a
totally white picture, while doing "d.rast roads" or anything else yields
"segmentation fault." Perhaps I have the data in the wrong place?
Any additional help most appreciated! tom@bluesky.org
>One reason for this, I have learned, is that if you 'su - <user>' you do
>not get the DISPLAY environment variable in your new shell.
>So after suing and before running grass do a (in bash)
>
>export DISPLAY=:0.0
>
>and it should work. (Or just do not run grass from a su shell).
Thanks much for your response! I gave it a try, but the message just
changes to "Graph_Set: Can't open :0.0". I'm wondering if there is some
kind of permission problem. But I have been running GRASS as root to
minimize that. My understanding of what to check the permissions of is
rather limited, unfortunately... Regards, Tom
1. DO NOT use the root accound unneeded. This is extreemly dangerous,
and stupid as well. You can do anything as root, and if you type
one wrong command it will be infinitly more fatal if you do it as
root)
2. Log in as yourself from the start. If you cannot do this your machine
is set up wrong. Seek advice from a Linux community.
3. It will work once you log in as yourself.
Nicolai