How to set up X font server on solaris box
[root@avon /]# cat /usr/X/lib/X11/fontserver.cfg
# font server configuration file
# $XConsortium: config.cpp,v 1.7 91/08/22 11:39:59 rws Exp $
clone-self = on
use-syslog = off
catalogue = /usr/openwin/lib/X11/fonts/F3bitmaps/,/usr/openwin/lib/X11/fonts/Type1/,/usr/openwin/lib/X11/fonts/Speedo/,/usr/openwin/lib/X11/fonts/misc/,/usr/openwin/lib/X11/fonts/75dpi/,/usr/openwin/lib/X11/fonts/100dpi/,/usr/openwin/lib/X11/fonts/75-DW-DEC,/usr/openwin/lib/X11/fonts/83-DW-DEC
# in decipoints
default-point-size = 120
default-resolutions = 75,75,100,100
[root@avon /]# cat /etc/init.d/xfs
#!/bin/sh
#
# Start or shut down the font server..
#
XLOC=/usr/X
case "$1" in
'start')
if [ -f ${XLOC}/bin/xfs -f /usr/openwin/lib/X11/fontserver.cfg ] ; then
echo "starting X font server..."
${XLOC}/bin/xfs 1>/dev/console 2>&1 &
fi
;;
'stop')
PID=`/usr/bin/ps -ef | grep xfs | awk '{print $2}'`
if [ ! -z "$PID" ] ; then
echo "stoping X font server..."
/usr/bin/kill ${PID} 1> /dev/null 2>&1
fi
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
[root@avon /]# ls -al /etc/rc2.d/S99xfs
lrwxrwxrwx 1 root other 13 May 5 17:30 /etc/rc2.d/S99xfs -> ../init.d/xfs
|