From owner-freebsd-questions Thu Jan 27 16:19:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from tetron02.tetronsoftware.com (ftp.tetronsoftware.com [208.236.46.106]) by hub.freebsd.org (Postfix) with ESMTP id 73E4A15976 for ; Thu, 27 Jan 2000 16:19:07 -0800 (PST) (envelope-from zeus@tetronsoftware.com) Received: from tetron02.tetronsoftware.com (tetron02.tetronsoftware.com [208.236.46.106]) by tetron02.tetronsoftware.com (8.9.3/8.9.3) with ESMTP id SAA00605; Thu, 27 Jan 2000 18:22:41 -0600 (CST) (envelope-from zeus@tetronsoftware.com) Date: Thu, 27 Jan 2000 18:22:41 -0600 (CST) From: Gene Harris To: "James A. Mutter" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: More on XFSTT & Linux Emulation In-Reply-To: <3890DC36.14C5FEBB@ds.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On my system, I did have to make one change to your script. The --dir /usr/.../TrueType option needs to be present. On my system, I get a core dump without it. I also took the PORT out, because this is the default. Great Work! *==============================================* *Gene Harris http://www.tetronsoftware.com* *FreeBSD Novice * *==============================================* On Thu, 27 Jan 2000, James A. Mutter wrote: > Not only does it work, it seems to work rather well. I must say that > I'm pretty happy, this has saved me the trouble of building another box > just to serve fonts. > > Gene Harris wrote: > > > > Yep, this does indeed work. And, against my better > > judgement, the upgrade to rh 6.1 didn't break my StarOffice! > > It is nice to use my FreeBSD server to feed my truetype > > fonts to netscape. > > > > *==============================================* > > *Gene Harris http://www.tetronsoftware.com* > > *FreeBSD Novice * > > *==============================================* > > > > On Thu, 27 Jan 2000, James A. Mutter wrote: > > > > > After looking a bit deeper into this I've managed to come up with some > > > basic instructions for getting this accomplished: > > > > > > First and foremost - you'll need the latest Linux Emulation system. > > > cd /usr/ports/emulators/linux_base && make install > > > > > > grab the xfstt rpm from: > > > ftp://ftp.calderasystems.com/pub/openlinux/contrib/RPMS/libc6/xfstt-1.0-1.i386.rpm > > > > > > mkdir xfstt > > > mv xfstt-1.0-1.i386.rpm xfstt > > > cd xfstt > > > rpm2cpio < xfstt-1.0-1.i386.rpm | cpio -id > > > > > > cp usr/X11R6/bin/xfstt /usr/compay/linux/usr/X11R6/bin > > > cp usr/doc/xfstt-1.0 /usr/share/doc > > > cp usr/X11R6/man/xfstt.1x /usr/X11R6/man/man1/ > > > > > > mkdir -p /usr/compat/linux/var/cache/xfstt > > > > > > add the following script to /usr/local/etc/rc.d > > > > > > < -- begin -- > > > > XFSTT=/usr/compat/linux/usr/X11R6/bin/xfstt # the executable > > > CACHE=/usr/compat/linux/var/cache/xfstt # the cache directory > > > TTFONTS=/usr/X11R6/lib/X11/fonts/TrueType # keep fonts here > > > PORT=7101 # port number > > > USER=nobody # you don't want this running as root, do you? > > > RES=120 # if the fonts are too large try 90 > > > > > > if [ -x /usr/compat/linux/usr/X11R6/bin/xfstt ]; then > > > $XFSTT --cache $CACHE --dir $TTFONTS --sync > > > $XFSTT --port $PORT --user $USER --dir $TTFONTS --cache $CACHE --res > > > $RES --daemon > > > fi > > > < -- end -- > > > > > > > Add the following line to /etc/XF86Config: > > > FontPath "unix/:7101" > > > > > > If you can't figure out where to add this line you probably shouldn't be > > > messing > > > with this in the first place. > > > > > > Copy a bunch of TT fonts to /usr/X11R6/lib/X11/fonts/TrueType. I copied > > > all of > > > Windows fonts (C:\Windows\Fonts\*) - If nothing else, Windows fonts are > > > nice to > > > look at. > > > > > > that's about it - start the font server with "sh /usr/local/etc/rc.d" or > > > if you're feeling so inclined you can just restart your machine. > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message