Installing Mathematica Fonts Locally for Remote Access on Odyssey
Don't like RCNX? Want to get a Mathematica GUI over ssh? Then this is for you, because you need to install all of the Mathematica fonts on your local machine.
Disclaimer: Ripped shamelessly from here. I've made it Odyssey-specific. This worked for me with Ubuntu 8.04... it may not work for your obscure version of cygwin.
- First you will need to download the following mathematica fonts archive:
[http://support.wolfram.com/mathematica/systems/linux/general/files/Math_6_Linux.tar.gz].
- Untar the Archive to some directory. Make sure X windows is running,
and issue the following commands in terminal:
mkdir ~/mathfonts
mv Math_6_Linux.tar.gz ~/mathfonts
cd ~/mathfonts
tar -xzvf Math_6_Linux.tar.gz
rm -f Math_6_Linux.tar.gz
|
- Rebuild the fonts.dir files.
Using the same terminal as in the previous step, issue the following
commands:
mkfontdir ~/mathfonts/BDF
mkfontdir ~/mathfonts/Type1
|
- Log in to Odyssey:
ssh -Y <username>@odyssey.fas.harvard.edu
|
- Generate a file to launch Mathematica and tell it where to find your
fonts. Using your favorite text editor, create a new file (in this
example, named mLinuxUser.sh) resembling the following with
<home_dir> replaced with the full path to your home directory on
your local (client) machine:
#!/bin/sh
xset fp+ /<home_dir>/mathfonts/Type1
xset fp+ /<home_dir>/mathfonts/BDF
mathematica $@
|
- Run Mathematica, telling it where your fonts are installed:
Documentation
Wolfram's documentation for making Mathematica fonts available for remote
execution can be found
here.