This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Jim, The command to run the Xvfb server is something that only needs to be run at startup by root. This establishes a server running as display :1 screen 0 (eg localhost:1.0). When you use the xvfb server, you will no longer send your gempak display to localhost:0 which is your console X server. Instead, send your display to localhost:1. You should verify that your Server is allowing connections from your system using something like: xterm -display localhost:1 If you are denied a connection, then you probably haven't configured your /etc/X1.hosts file for what machines will be allowed to connect to the display- this file lists machines 1 per line like: laraine.unidata.ucar.edu sunshine.unidata.ucar.edu zero.unidata.ucar.edu Steve Chiswell Unidta User Support >From: "Jim St. John" <address@hidden> >Organization: . >Keywords: 199906301552.JAA11462 >Sorry to keep bothering you with this. I'm not very familiar with Linux and I >was gone last week and Mark (our system guru) is gone this week. I'm still >having trouble getting GIF products out Gempak scripts. We got Xvfb as Chiz >suggested and I tried using it in the scripts but I still bomb out. > >Here is a script I've been trying to use: > >#! /bin/csh ># >#Script to plot meteogram ># > >cd /home/stjohn # go somewhere to do this >if(-e gempak.gif) then > rm gempak.gif >endif # remove old gempak.gif > >cd /home/httpd/html >if(-e metgram.gif) then > rm metgram.gif >endif > >setenv LD_LIBRARY_PATH /usr/X11R6/lib: >/usr/X11R6/bin/Xvfb :1 -screen 0 1280x1024x8 & >setenv DISPLAY localhost:0 >source /nawips/Gemenviron ># >set YMD = `date -u +%Y%m%d` >echo $YMD >set mfile = $SAO'/'$YMD'_sao.gem' >set d1 = `date -u '+%H'` >echo $mfile >echo $d1 >if($#argv == 0) then > set stn=ATL >else > set stn=$1 >endif > >echo $stn >echo $stn > > >sfgram << SFGRAM_EOF > SFFILE = $mfile > DATTIM = all > STATION = atl > TRACE1 = TMPF;DWPF:3/2;3//y0;10;20;30;40;50;60;70;80;90;100 > TRACE2 = PMSL/4 > TRACE3 = gust;brbk > TRACE4 = vsby/7 > TRACE5 = clds;;wsym/6 > NTRACE = 5 > TAXIS = $YMD/0000-$YMD/2359-3 > BORDER = 1 > MARKER = 0 > TITLE = 3 > CLEAR = y > DEVICE = gf | /home/httpd/html/metgram.gif | .5;.5 > PANEL = 0 > TEXT = 1/23//sw > > run > > exit >SFGRAM_EOF > >gpend > >____________________________________ > >Here is the output: >{11} % metgram >Setting to decmaps >[1] 3170 >Setting to decmaps >19990628 >/var/data/ldm/gempak/surface/19990628_sao.gem >17 >ATL >ATL > SFFILE Surface data file > /var/data/ldm/gempak/surface/19990616_sao.gem > DATTIM Date/time all > STATION Stations atl > TRACE1 Parms/colors/range/witness > TMPF;DWPF:3/2;3//y0;10;20;30;40;50;60;70;80;90;100 > TRACE2 Parms/colors/range/witness PMSL/4 > TRACE3 Parms/colors/range/witness gust;brbk > TRACE4 Parms/colors/range/witness vsby/7 > TRACE5 Parms/colors/range/witness clds;;wsym/6 > NTRACE Number of traces 5 > TAXIS Time1-time2-tinc;lbl;gln;tck 19990616/0000-19990616/2359-3 > BORDER Background color/dash/width 1 > MARKER Marker color/type/size/width/hw 0 > TITLE Title color/line/title 3 > CLEAR Clear screen flag y > DEVICE Device|name|x size;y size|color gf | /home/httpd/html/metgram.gif >| .5;.5 > PANEL Panel loc/color/dash/width/regn 0 > TEXT Text size/font/width/hw flag 1/23//sw > Parameters requested: SFFILE,DATTIM,STATION,TRACE1,TRACE2,TRACE3,TRACE4, > TRACE5,NTRACE,TAXIS,BORDER,MARKER,TITLE,CLEAR,DEVICE,PANEL,TEXT. > GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> >GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> >GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> >GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM> GEMPAK-SFGRAM>failed to set >default font path >'/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/li > b/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/1 > 00dpi/' >Fatal server error: >could not open default font 'fixed' >Creating process: gplt for queue 1409 >Creating process: gf for queue 1410 >_X11TransSocketINETConnect: Can't connect: errno = 111 >_X11TransSocketINETConnect: Can't connect: errno = 111 >_X11TransSocketINETConnect: Can't connect: errno = 111 >_X11TransSocketINETConnect: Can't connect: errno = 111 >_X11TransSocketINETConnect: Can't connect: errno = 111 >_X11TransSocketINETConnect: Can't connect: errno = 111 >^X^HInterrupt >Interrupt > > >___________________________________________________________________________ > >The Interrupt came when I used ^c to kill it, then ipcrm to remove the loose >queues. > >I have never seen the font problem before. Is Gempak looking for a specific >font file in the /program/nawips/gempak5.4/fonts directory? Should I add that >to the library path line in the script? > >I appreciate your help. As soon as I can get these scripts to work we can tur > n >off poor old louisxiv which needs rebooting twice a week or else it locks up. > >Jim St. John > >-- >********************************************************* >* Dr. Jim St. John * >* Research Scientist * >* School of Earth and Atmospheric Sciences * >* Georgia Institute of Technology * >* Phone: 404-894-1754 * >* Fax: 404-894-1106 * >* e-mail: address@hidden * >* Homepage: http://louisxiv.eas.gatech.edu/~stjohn * >********************************************************* >