Auto start TT font server?

Auto start TT font server?

Post by stevecanfi.. » Sun, 31 Dec 1899 09:00:00



I'm using RedHat 6.0.  To get more fonts in The Gimp and Netscape, I
installed a true-type font server along with a bunch of fonts.  It works
great but I have to manually start it each time:
xfstt&
xset fp+ unix/:7100
xset fp rehash

How do I get this to be executed right after X is started (not after I
log in)?  I tried putting the commands at the top of my xinitrc, but
that didn't work.  Please help!

-steve

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Auto start TT font server?

Post by stevecanfi.. » Sun, 31 Dec 1899 09:00:00


It seems a little wierd for me to be replying to my own post, but I
thought my findings might interest somebody else someday.

I got my true type font server to start every time by putting the
following line:
/usr/X11R6/bin/xfstt &
at the end of my /etc/rc.d/rc.local file.

I then added
/usr/X11R6/bin/xset fp+ unix/:7100
/usr/X11R6/bin/xset fp rehash
to the end of my .bash_profile file.  There may be a better place for
these lines (putting them at the end of my rc.local file didn't work),
but this seems to work reliably for me.

Thanks to those who emailed me their thoughts on this problem.

-steve



> I'm using RedHat 6.0.  To get more fonts in The Gimp and Netscape, I
> installed a true-type font server along with a bunch of fonts.  It
works
> great but I have to manually start it each time:
> xfstt&
> xset fp+ unix/:7100
> xset fp rehash

> How do I get this to be executed right after X is started (not after I
> log in)?  I tried putting the commands at the top of my xinitrc, but
> that didn't work.  Please help!

> -steve

> Sent via Deja.com http://www.deja.com/
> Before you buy.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Auto start TT font server?

Post by Eggert.Eh.. » Sun, 31 Dec 1899 09:00:00



>I'm using RedHat 6.0.  To get more fonts in The Gimp and Netscape, I
>installed a true-type font server along with a bunch of fonts.  It works
>great but I have to manually start it each time:
>xfstt&
>xset fp+ unix/:7100
>xset fp rehash

Hello Steve,

I have the script attached below in my /etc/rc.d/init.d/xfstt file, and two
links to it in runlevel 2 named S20xfstt, K20xfstt. Works perfect. Adjust the
path assignments for your needs. Remember if you install the newest version of
xfstt the port has changed to 7101.

The font path can be set in your /etc/Xf86Config file, section "Files":
FontPath "unix/:7101"

Try it !

---------------------------- /etc/rc.d/init.d/xfstt -------------------
#!/bin/sh
#
# /sbin/init.d/xfstt
#
# Script to start and stop font-server xfstt
#
#
#

. /etc/rc.config

XFSTT=/usr/X11R6/bin/xfstt
PORT=7101
TTDIR=/usr/share/fonts/truetype

test -x $XFSTT || exit 0

return=$rc_done

case "$1" in
        start)
              echo -n "Start Font Server Xfstt"
              startproc $XFSTT --dir $TTDIR --port $PORT  ||
return=$rc_failed

              echo -e "$return"
        ;;
        stop)
              echo -n "Stop Font Server Xfstt"
              killproc $XFSTT || return=$rc_failed
              echo -e "$return"
        ;;
        restart)
              $0 stop
              $XFSTT --dir $TTDIR --sync
              $0 start
        ;;
        *)
              echo "Usage: /sbin/init.d/xfstt {start|stop|restart}"

              exit 1
        ;;
esac
test "$return" = "$rc_done" || exit 1

exit 0

--
Eggert Ehmke

 
 
 

1. How can I auto-reboot a SUN, then auto-login, then auto-start a program?

My Sun (Solaris 2.6) server is running a program as a listener, when it
receives the "installation" command from remote user, it will call a
script which will automatically reboot the machine, then auto-login,
then automatically restart the listener to do the installation ...

Does anyone know how to implement this script,

Thanks a lot,

Hua.


2. List of all command in section

3. How to auto-reboot a SUN, then auto-login, then auto-start a program?

4. What is the purpose of root, bin, daemon, lp, ...

5. screwy font scaling with tt fonts

6. VIC with bt848 support

7. Why isn't char \222 (tt font server) available from X?

8. sendmail : AIX to another Email????

9. Mandrake 9 as Print Server, TT font problem

10. xfstt auto-start, and font configuration in KDE

11. How to Auto Start DHCP Server

12. RedHat-6.0 xfs-setup for TT-Fonts ?

13. TT Fonts in Netscape