[OS X TeX] sharing texmf trees between OS X and linux

Peter Dyballa Peter_Dyballa at Web.DE
Tue Mar 28 00:23:45 CEST 2006


Am 27.03.2006 um 19:40 schrieb Thomas A. Schmitz:

> OK, I'll have a look at it, but it sounds complex.

No, it's easy. First you need to install the NFS server software (nfs- 
utils? client is probably already installed). By activating this  
service automatically portmapd is registered and launched (and other  
daemons, could you need to edit /etc/hosts.allow). There's still, I  
think, a file like /etc/exportfs that lists what is shared how with  
whom. 'exportfs -a' starts to export all trees listed, using an entry  
name gives only this free.

> And you seem to remember that there's some limit to nested levels,  
> right?

It won't hit you when it does not hit you on Mac OS X. With NFS  
something like /mnt/osx/Users/tas/Library/texmf/fonts/tfm/adobe/ 
garamond/foo.tfm becomes exactly ~/texmf/fonts/tfm/adobe/garamond/ 
foo.tfm. The operating system won't see anything 'foreign' or  
'strange,' it will just see some more inodes.

/etc/exports has lines like:

	/mnt/osx/Users/tas/Library/texmf  <IP adr. or name>(rw) [another  
such client]

'exportfs /mnt/osx/Users/tas/Library/texmf' gives it free. On the  
client you invoke 'mount -t nfs <server>:/mnt/osx/Users/tas/Library/ 
texmf ~/texmf' -- well, ~/texmf needs to be an absolute path and you  
will need to be the superuser. To make the mounting happen  
automatically there is /etc/fstab:

	<server>:/mnt/osx/Users/tas/Library/texmf	~/texmf	nfs rw 0 0

There is a Linux NFS-HOWTO: http://nfs.sourceforge.net/nfs-howto/. I  
don't know whether NFS loopback mountain is mentioned there, this  
would be the optimum solution since server and client are the same.



It's really not that complicated to set up some dot files for more  
that one architecture. Many things get prepared the same way. Special  
adaptations can be treated via the the value of uname -s, in Emacs  
via emacs-version.


--
Mit friedvollen Grüßen

   Pete

Macht kaputt, was Afghanistan kaputt macht!


------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list