Date: Thu, 1 Jan 1998 19:11:46 -0600 From: Paul Saab <paul@mu.org> To: Strobel <100730.3706@compuserve.com> Cc: FreeBSD <questions@FreeBSD.ORG> Subject: Re: X-Server under FreeBSD2.2.5 Message-ID: <19980101191146.12986@mu.org> In-Reply-To: <199801011930_MC2-2DBD-6979@compuserve.com>; from Strobel on Thu, Jan 01, 1998 at 07:27:23PM -0500 References: <199801011930_MC2-2DBD-6979@compuserve.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Has to do with the fact that the fonts are gzipped and Xig's server expects them in "compress" (.Z) format. run this script to fix the problem. #!/bin/bash # # NOTE: This is a completely unsupported shell script. # # HOW TO USE THIS SCRIPT: # # Either: # 1. Save this file, mark it executable, then run it; # 2. Save this file, then do "bash <filename>" to execute it. # # Please report any problems/odd behaviors with this script # to support@xig.com . # --Thank you for choosing Accelerated-X!-- # Cordially, Xi Graphics # # Read the Xaccel.ini file, parse it's fontpaths, and convert any # gzipped (.gz) fonts into compressed (.Z) fonts. # # Written for bash, though ksh should work too. sh might work depending on # your OS... # # JET 7/17/97 ######################################################################## # set -x # uncomment for debugging XACCELINI=/etc/Xaccel.ini GUNZIP="$(type -path gunzip)" COMPRESS="$(type -path compress)" # first get the list of fontpaths from XACCELINI FONTPATHS="" if [ ! -r $XACCELINI ] then echo "Cannot read $XACCELINI" exit 1 fi if [ ! -x "$COMPRESS" -o ! -x "$GUNZIP" ] then echo "Can not locate either compress or gunzip." exit 1 fi infontp=0 done=0 while read theline do if [ $done -eq 1 ] then # no need to proceed, we're done (skip remaining lines) continue fi if echo "$theline" |fgrep '[FONTPATH]' >/dev/null 2>&1 then infontp=1 continue fi if [ $infontp -eq 1 ] then # we're reading fontpaths # see if we're at the end (a blank line) if [ -z "$theline" ] then done=1 fi tfp="$(echo $theline |tr -d '\",;')" FONTPATHS="$FONTPATHS $tfp" fi done <$XACCELINI # now we've got the font paths, lets go thru them and convert any gz's # into Z's echo "FONTPATHS=$FONTPATHS" if [ -z "$FONTPATHS" ] then echo "No fontpaths found...How strange..." exit 1 fi for i in $FONTPATHS do # we'll be extra cautious. It may be slow, but it should'nt # muck up your system for j in $i/*.gz do if [ ! -r "$j" ] then # can't read it? can't convert it continue fi cp $j /tmp base="$(basename $j .gz)" $GUNZIP -c /tmp/$base.gz |$COMPRESS -c >$(dirname $j)/$base.Z if [ $? -ne 0 ] then # something bad happened, rm .Z, report and continue echo "Problem converting $j - skipping" rm -f $(dirname $j)/$base.Z else # something good happened, rm old .gz file # COMMENT the next 2 lines if you want to keep # the gzipped version around... echo "$j converted, removing gzipped version." rm -f $j # cleanup chmod 644 $(dirname $j)/$base.Z rm -f /tmp/$base.gz fi done echo "Done with $i." done echo "Have a glorious day." exit 0 Strobel (100730.3706@compuserve.com) wrote: > Hi, > i want to run the FreeBSD 2.2.5 System, but there is a problem with the > Accelerated X-Server V2.1 i am using. The raw installation works fine, but > when i start the X-Server in test mode with: > /usr/X11R6/bin/Xaccel > i got the following error message: > > PCI (#1/1, 8000 000c) > Matrox,16: 2064,TVP3026 (8192k, @e2000000, [0,000 - 220,000Mhz]) > failed to set default font path 'here comes the default font path ....' > Fatal server error: > could not open default font 'fixed' > > On my old FreeBSD 2.1.5 everthing work fine. Can somebody help me with this > problem? > By the way, the same error occurs under FreeBSD 3.0 Snapshot. > > Thanks > > Andreas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980101191146.12986>