cvs commit: hints xfree86-superhint.txt

timothy at linuxfromscratch.org timothy at linuxfromscratch.org
Sun Jan 5 15:54:53 PST 2003


timothy     03/01/05 18:54:53

  Modified:    .        xfree86-superhint.txt
  Log:
  Updates by author.
  
  Revision  Changes    Path
  1.3       +61 -58    hints/xfree86-superhint.txt
  
  Index: xfree86-superhint.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/xfree86-superhint.txt,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- xfree86-superhint.txt	17 Dec 2002 01:27:33 -0000	1.2
  +++ xfree86-superhint.txt	5 Jan 2003 23:54:53 -0000	1.3
  @@ -28,9 +28,7 @@
   0.02	suggestions by Matthias Benkmann.
   0.03	suggestions by Marc Heerdink.
   0.04	building of glut added, more from Matthias Benkmann.
  -0.05	changed AUTHOR section by request of older maintainers,
  -	notes on Dagmar's concise hint which compiles freetype,
  -	other small fixes.
  +0.05	updated ttmkfdir, cleaned configuration, better xfs initscript.
   
   HINT:
   
  @@ -58,8 +56,8 @@
   up by more recent versions of bison. It is a good idea to use this patch, even
   if you have an older version of bison.
   
  -The ageing ttmkfdir tool
  -http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz
  +The ttmkfdir tool, soon to be obsoleted in XFree86-4.3
  +http://people.redhat.com/yshao/ttmkfdir2.20021109.tar.bz2
   	This is needed for making a fonts.scale file for TTF fonts.
   
   MesaLib and MesaDemos (for glut)
  @@ -76,7 +74,7 @@
   560899e175a02ab592185b69756f539e  X420src-3.tgz
   38adc94a4953a6b29e8619c25dda4887  4.2.0-4.2.1.diff.gz
   18eb56110c7f66895111bd9f3513b54e  4.2.1-mit-shm-security.patch
  -dcf6aa4d28f5c52acf2bb57f49f53089  ttmkfdir.tar.gz
  +79e0401393c9728865aa73bb2bd68dd4  ttmkfdir2.20021109.tar.bz2
   ebfac20c7fe7943243bc54a4b755f50d  MesaDemos-5.0.tar.bz2
   df44d99ae97c5c0df631575757a96d86  MesaLib-5.0.tar.bz2
   
  @@ -93,13 +91,6 @@
   appears in several sections; standard DRI, bleeding edge DRI, bad news about
   voodoo cards and finally setting up NVidia cards.
   
  -LFS'ers may also choose to use the xfree-freetype hint which compiles
  -freetype and zlib serperately. My personal experience has been that
  -the internal XFree86-4.2.1 version of Freetype2 works just fine and
  -we specifically tell X to compile dynamically linked to the zlib we
  -install in LFS. Beware of using other LFS x-hints as they are mostly
  -not maintained.
  -
   
   Building XFree86
   ================
  @@ -122,8 +113,7 @@
   modules you require if you are sure about your choice. If your card is not
   supported under DRI (graphics acceleration), then you should say NO to
   BuildXF86DRI and BuildXF86DRM. Please note this is a C header file not a
  -bash script, so the # are not comments but the /* comments */ are. Please
  -READ this setup file before typing it in blindly.
  +bash script, so the # are not comments but the /* comments */ are.
   
   cat > config/cf/host.def << "EOF"
   /* LFS HINT XFree86-4.2.1 0.01 */
  @@ -136,13 +126,7 @@
   #define HasMMXSupport          NO       /* Any i586 or above                */
   #define HasKatmaiSupport       NO       /* PIII SSE instuctions             */
   #define Has3DNowSupport        NO       /* AMD instructions                 */
  -#define XInputDrivers          /*
  -				  We omit compiling rarely used input devices.
  -				  If you do have a non-standard input device,
  -				  browse config/cf/xfree86.cf for a complete
  -				  list.
  -			       */
  -			       mouse void
  +#define XInputDrivers          mouse void
   #define XF86CardDrivers        /* build all drivers available */
                                  mga glint nv tga s3 s3virge sis rendition
                                  neomagic i740 tdfx savage cirrus vmware
  @@ -218,7 +202,7 @@
   
   and after browsing it, test it by typing
   
  -        XFree86 -xf86config $PWD/XF86Config.new
  +        XFree86 -xf86config /root/XF86Config.new
   
   You won't get anything but a flimmering 640 x 480 screen with an
   annoying pattern and an X-shaped mouse cursor that you can move (if
  @@ -286,8 +270,10 @@
    VertRefresh  50-160
   EndSection
   
  -Of course you will need to enter the correct values for your monitor. If 
  -you set the right values you don't need to fiddle with modelines anymore 
  +Of course you will need to enter the correct values for your monitor. You
  +should check the labels on the back of the monitor if you do not know the
  +exact model, then go to your manufacturer's website and get the Horz/Vert
  +rates. If you set the right values you don't need to fiddle with modelines
   (what a relief!) because XFree86 will choose an appropriate VESA mode with 
   a high refresh rate. Just specify what mode you want like this:
   
  @@ -300,13 +286,10 @@
    SubSection "Display"
     Depth     16
     Modes   "1024x768"
  -  Virtual 1280 960
    EndSubSection
   EndSection
   
  -This is all it takes to get a nice virtual screen of 1280x960 with a real 
  -resolution of 1024x768 with eye-friendly 85Hz (on my system, it depends on 
  -your monitor's capabilities of course).
  +This is all it takes to get a nice screen of 1024x768!
   
   After finishing off the X configuration and optional sections, your next
   task will be finding a Window Manager you like using. XFree86 comes with a
  @@ -322,11 +305,8 @@
   
   The best way to utilise fonts under XFree86 is with a font server, which
   handles all the font aliases and matching instead of the actual X server
  -itself. The font server is however, an extra overhead on your system, but
  -for todays machines, it is a negligable amount... the memory and CPU usage
  -on my machine never amounts to more than 0.1% and 0%. This server should
  -be started in the initscripts, and it is left to your own discression as
  -to when to load the font server.
  +itself. This server should be started in the initscripts, and it is left
  +to your own discression as to when to load the font server.
   
   cat > /etc/rc.d/init.d/xfs << "EOF"
   #!/bin/bash
  @@ -336,30 +316,36 @@
   
   case "$1" in
           start)
  -             echo "Starting X font server..."
  -             rm -fr /tmp/.font-unix
  -             loadproc /usr/X11R6/bin/xfs -port -1 -daemon -droppriv -user xfs
  -             ;;
  +                echo "Starting X font server..."
  +                rm -fr /tmp/.font-unix
  +                loadproc /usr/X11R6/bin/xfs -port -1 -daemon -droppriv -user xfs
  +                ;;
   
           stop)
  -             echo "Stopping X font server..."
  -             killproc xfs
  -             ;;
  +                echo "Stopping X font server..."
  +                killproc xfs
  +                ;;
   
           restart)
  -             $0 stop
  -             sleep 1
  -             $0 start
  -             ;;
  +                echo "Sending reload signal to X font server..."
  +		kill -s SIGHUP `pidof xfs`
  +		evaluate_retval
  +                ;;
  +
  +        reload)
  +                $0 stop
  +                sleep 1
  +                $0 start
  +                ;;
   
           status)
  -             statusproc xfs
  -             ;;
  +                statusproc xfs
  +                ;;
   
           *)
  -             echo "Usage: $0 {start|stop|restart|status}"
  -             exit 1
  -             ;;
  +                echo "Usage: $0 {start|stop|restart|reload|status}"
  +                exit 1
  +                ;;
   esac
   EOF
   chmod 755 /etc/rc.d/init.d/xfs
  @@ -382,18 +368,35 @@
   TrueType Fonts (optional)
   ==============
   
  -This has recently become trivial to set up, all you require are some ttf fonts,
  -and the tool ttmkfdir (or the mkttfdir perl script, provided by fttools).
  -As you will only require the ttmkfdir program once, you may just use the binary
  -in the tarball. [I cannot get this package to compile under gcc-3.2.1.] All this
  -program does is make a fonts.scale file (I hope you read the man pages as
  -suggested earlier!). Use it by
  +This is trivial to set up, all you require are some ttf fonts, and the tool
  +ttmkfdir. Build and install the ttmkfdir (version 2) tool with:
  +
  +	make CXX=$CXX CXXFLAGS="$CXXFLAGS -pedantic \
  +		-I/usr/X11R6/include/freetype2" FREETYPE_BASE=/usr/X11R6 \
  +		FREETYPE_LIB="-L/usr/X11R6/lib -lfreetype"
  +	install ttmkfdir /usr/X11R6/bin/
  +
  +(NOTE: on building, you may get an error related to exceptions, in which case
  +retype the above with -fno-exceptions just after -pedantic). You may now
  +prepare any ttf folder for XFree86 by typing entering it and typing
   
  -	cd (your ttf directory)
   	ttmkfdir -o fonts.scale
   	mkfontdir 
   
  -And your fonts should be ready to use. Just make sure your X config has the
  +In order to preserve cleanliness, you may wish to lower-case the names of all
  +your ttf fonts. You may lower-case the names of all .ttf/.TTF files in the
  +current directory by typing (use with care)
  +
  +	for A in *.TTF *.ttf
  +	do
  +	 echo "Renaming $A"
  +	 echo -n "      to "
  +	 NEWNAME=`echo $A |  tr [:upper:] [:lower:]`
  +	 echo "$NEWNAME"
  +	 /bin/mv -i "$A" "$NEWNAME" 2>/dev/null ;
  +	done
  +
  +Now your fonts should be ready to use. Just make sure your X config has the
   freetype module loaded, something like
   
   Section "Module"
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe hints' in the subject header of the message



More information about the hints mailing list