[GRASS-dev] m.nviz.image - Bad server connection
Hamish
hamish_b at yahoo.com
Fri Feb 7 19:11:02 PST 2014
epi wrote:
>> i'm tring to generate a 3d image with m.nviz.image,
>> the following command works fine form a 'standard'
>> GRASS session in text mode on my laptop but if try
>> to run the same command on a sever while i'm connected
>> via SSH i got the error : Bad server connection
MarkusN:
> Many grass power users work like this, so that's well
> tested in general.
I was doing it with m.nviz.image last weekend actually.
Note wrt running remotely on a server, m.nviz.image is special.
>> Have you any clue on how to fix this ?
>> is there any environment var that needs to be exported
>> in order to have m.nviz.image running during an SSH session ?
>>
>> GRASS 7.0.svn (nc_spm_08_grass7):~ > m.nviz.image \
>> elevation_map=elevation \
>> output=elevation_3d \
>> perspective=15 \
>> height=2000 \
>> color_map=elevation \
>> resolution_fine=1 \
>> resolution_coarse=1 \
>> format=tif
>>
>>
>> ERROR: Bad server connection
>
>
> Did you redirect the Display stream?
>
> ssh -Y yourserver
>
> Perhaps that solving the issue.
Depending on if it's a local gigabit network or if you are calling in from home, I'd strongly suggest to use 'ssh -C' as well, since m.nviz.image will want to do about half of its processing on the *local* X server, not the remote computer, and that's a lot of network traffic!
Last weekend's task was running m.nviz.image many times in a loop for an animation, and trying to do it remotely from my netbook via a GNU Screen session. But the network connection out at the farm wasn't that good and the several years old netbook's graphics hardware is pretty poor compared to the graphics card in the remote workstation. It took ~10 times as long running it remotely, but it did get there.
m.nviz.image didn't work (entirely from the command line) when the DISPLAY enviro var wasn't set correctly in GNU Screen though, I had to reestablish the session to fix that first.
good luck,
Hamish
More information about the grass-dev
mailing list