Usage:
In version 4, the X-front-end mathematica requires new additional fonts, which can (but need not) be installed at the remote (i.e. your) machine. If the required fonts are not available at your machine, the "mathematica" script as modified by Martin Ertl lets your X-server fetch these files from the xfs running at the server. If you prefer to have the files locally, you need to do the following (on a Linux computer):
#Fonts f. Mathematica 3.0 Frontend xset fp+ /usr/local/mathematica/SystemFiles/Fonts/Type1 xset fp+ /usr/local/mathematica/SystemFiles/Fonts/X xset fp rehashThis is no longer necessary with version 4.
For Mathematica 4.2 repeat the above steps with math42fonts.tar!
#!/bin/sh
#
# Mathematica 4 command file
#
# Copyright 1988 - 1998 Wolfram Research, Inc.
#
# Changed to use xfs (X Font Server) when local Mma font dir
# is not available.
# ITP TU-Wien - Martin Ertl - 14.7.2000
topdir=/usr/local/mathematica
sysid=Linux
PATH=$topdir/Executables/$sysid:$PATH
export PATH
XFILESEARCHPATH=$topdir/SystemFiles/FrontEnd/SystemResources/X/%N:/SystemFiles/FrontEnd/SystemResources/X/%T/%N%S
export XFILESEARCHPATH
havefonts=`xlsfonts -fn '-wri-*-*-*-*-*-*-*-*-*-*-*-*-*' 2>&1 | grep -c "wri"`
font=$topdir/SystemFiles/Fonts/Type1,$topdir/SystemFiles/Fonts/X
fontserver=tcp/$(hostname -f):7100
[ $havefonts -lt 2 ] && { xset fp+ $font 2>/dev/null || xset fp+ $fontserver; }
xset fp rehash
bindir=$topdir/SystemFiles/FrontEnd/Binaries/$sysid
if [ ! -f $bindir/Mathematica ] ; then
echo "Mathematica front end executable"
echo "$bindir/Mathematica"
echo "not found. Your Mathematica installation may be incomplete"
echo "or corrupted."
exit
fi
exec $bindir/Mathematica -topDirectory $topdir "$@"