Set Up Your Own Font Server

If you want to use mathematica via a nx server, you need to make the mathematica fonts available via xfs (X font server): note that there may be another way to load the fonts: http://forum.ubuntuusers.de/topic/freenx-automatische-installation-mit-fehler/#post-1053311

sudo aptitude install xfs

and change file /etc/X11/fs/config: at the end of catalogue:

catalogue = /usr/share/fonts/X11/misc/,
        /usr/share/fonts/X11/cyrillic/,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1/,
        /usr/share/fonts/X11/100dpi/,
        /usr/share/fonts/X11/75dpi/

add

        /usr/local/Wolfram/Mathematica/7.0/SystemFiles/Fonts/AFM/,
        /usr/local/Wolfram/Mathematica/7.0/SystemFiles/Fonts/BDM/,
        /usr/local/Wolfram/Mathematica/7.0/SystemFiles/Fonts/Type1/

and comment out the line no-listen = tcp:

#no-listen = tcp

then restart the X font server:

sudo /etc/init.d/xfs restart

to set up the client:

xset fp+ tcp/localhost:7100
xset fp rehash

or using a shell script:

#!/bin/bash
xset fp+ tcp/localhost:7100
xset fp rehash
/usr/NX/bin/nxclient
xset fp- tcp/localhost:7100
xset fp rehash

Comments